]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Recognize latin1 encoded files.
authorSimon Ruderich <simon@ruderich.org>
Mon, 8 Jun 2009 14:01:59 +0000 (16:01 +0200)
committerSimon Ruderich <simon@ruderich.org>
Mon, 8 Jun 2009 14:03:30 +0000 (16:03 +0200)
vimrc

diff --git a/vimrc b/vimrc
index 8b44898443ff757d432f04f9ae57400d4dc23023..b200fa4b63a2710da59db4995b0993cff65a8b47 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -32,8 +32,9 @@ if has('autocmd')
     filetype plugin indent on
 endif
 
-" Use UTF-8 file encoding for all files.
-set fileencodings=utf-8
+" Use UTF-8 file encoding for all files. Automatically recognize latin1 in
+" existing files.
+set fileencodings=utf-8,latin1
 
 " Wrap text after 78 characters.
 set textwidth=78