Wednesday, August 21, 2013

Fix the gvim encoding problem on Windows

Files, created in Notepad with unicode won't display correctly in gvim unless explicitly set the encoding explicitly. To do that I mapped F6 key  in .vimrc as follows:


:map <F6> :set encoding=utf-8<CR>:e!<CR>