vimrc: show invisible chars & prefer to unix line endings & use utf-8 & nobomb.

This commit is contained in:
Mikaela Suomalainen 2014-05-14 14:38:29 +03:00
parent 30d9682828
commit c4624848d1

14
vimrc
View File

@ -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