]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - vimrc
vimrc: Use UTF-8 for all internal data.
[config/dotfiles.git] / vimrc
diff --git a/vimrc b/vimrc
index 4699746ad9a4414a58c5abbabe5fae326d1f28f9..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
@@ -218,7 +222,7 @@ cmap <Down>  <Nop>
 cmap <Right> <Nop>
 cmap <Left>  <Nop>
 
-" Use Ctrl-P/Ctrl-N as replacement for <Up>/<Down> in command mode. Thanks to
+" Use <C-P>/<C-N> as replacement for <Up>/<Down> in command mode. Thanks to
 " abstrakt and grayw in #vim on Freenode (2010-04-12 21:20 CEST).
 cnoremap <C-P> <Up>
 cnoremap <C-N> <Down>
@@ -328,7 +332,7 @@ endif
 " vimgor (bot) in #vim on Freenode (2010-03-30 05:58 CEST).
 noremap <silent> <C-L> :nohlsearch<CR><C-L>
 
-" Ctrl-U in insert mode deletes a lot, break undo sequence before deleting the
+" <C-U> in insert mode deletes a lot, break undo sequence before deleting the
 " line so the change can be undone. Thanks to the vimrc_example.vim file in
 " Vim's source.
 inoremap <C-U> <C-G>u<C-U>