views:

373

answers:

2

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.

A: 

Does this help?

Preet Sangha
Not sure, but will give it a try.
SeasonedCoder
+2  A: 

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.

Francis
I used these settings. But then ALT key changed its behavior. Now pressing ALT key with some letter key inserts an accented character. Is there a way to disable this? I asked this question in superuser forum: http://superuser.com/questions/154491/utf-8-option-makes-alt-key-to-insert-accented-characters-in-vim-how-to-disable-i
Mert Nuhoglu