From c4624848d14f0ecdd51136800c67db798de908d3 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Wed, 14 May 2014 14:38:29 +0300 Subject: [PATCH] vimrc: show invisible chars & prefer to unix line endings & use utf-8 & nobomb. --- vimrc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/vimrc b/vimrc index d30dc5b7..64a8c42d 100644 --- a/vimrc +++ b/vimrc @@ -71,3 +71,17 @@ set visualbell if has('gui_running') set background=light endif + +" Show hidden characters via http://www.perturb.org/display/679_Make_Vim_show_hidden_characters.html +set invlist + +"Prefer to UNIX line endings, but understand DOS too. +set fileformats=unix,dos + +"Use UTF-8! +set encoding=utf-8 +set fileencoding=utf-8 + +" Remove BOMs. They broke things yesterday nd now they wasted my time +" at school! via http://techwelkin.com/how-to-remove-byte-order-mark-bom-characters +set nobomb