On Thursday, July 26, 2012 12:13:31 PM UTC-5, Lucas Sanner wrote:
> > What is your 'encoding' option set to? This controls Vim's 
> internal representation of character data.
> 
> In _gvimrc the encoding is set as follows:
> 
> set encoding=utf-8
> 
> Is it the correct encoding ?

It's the correct encoding, but it's probably too late in the scripts read at 
init.

It should go in the _vimrc, before pretty much anything else. Otherwise Vim 
will keep the same bytes in memory for mappings, registers, etc. made before 
the encoding change, but now interpret them (incorrectly) as if they were in 
the new encoding.

For example, here's the top few lines of my .vimrc:

" enable advanced Vim features
set nocompatible

if has('multi_byte')
  if &termencoding==""
    let &termencoding=&encoding
  endif
  set encoding=utf-8

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to