]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Use UTF-8 for all internal data.
authorSimon Ruderich <simon@ruderich.org>
Tue, 3 Jan 2012 13:15:41 +0000 (14:15 +0100)
committerSimon Ruderich <simon@ruderich.org>
Tue, 3 Jan 2012 13:15:41 +0000 (14:15 +0100)
vimrc

diff --git a/vimrc b/vimrc
index 2bb1cafde603b8b967a338ac3750fd65241f4bc5..bf94896e63485c3890fff7a26eb902392222bac9 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -25,6 +25,10 @@ endif
 " Make sure Vim (and not Vi) settings are used.
 set nocompatible
 
+" Use UTF-8 for all internal data (buffers, registers, etc.). This doesn't
+" affect reading files in different encodings, see 'fileencodings' for that.
+set encoding=utf-8
+
 " Load my scripts from ~/.vim (my scripts) and ~/.vim/runtime (checkout of Vim
 " runtime files) if available.
 set runtimepath-=~/.vim