Search code examples
vimutf-8internationalizationkeyboard-layout

Gvim in UTF8 with Russian keyboard layout


I am a big fan of vim and gvim. But whenever I write localization code in PHP and have to translate some strings (primarily in Russian), I have to open Notepad to translate all the entries. That kinda sucks, but so far I have not found out how to make gvim work in utf8 mode. Any ideas would be appreciated.


Solution

  • put these into your .vimrc:

    set encoding=utf-8
    set fileencodings=ucs-bom,utf-8
    

    you should now be able to play with the UTF8 files.