Hi Snucky, On 16/05/07, Snucky <[EMAIL PROTECTED]> wrote:
Hi, i am pretty much a newbie among the VIM-configurations though love to type in this editor. I have tried to get through by using the help and such but soon realized that it takes some hours to learn out all basics - which i am not interested in, at least right now. So, i know that there is this _vimrc file on my harddisc... I created an utf-8 coded document in another editor and typed down some cyrillic chars. Do i now open this very file in my dear VIM it will not properly display. I have thought to set VI to also use utf-8 coding but already failed this task. Would somebody please just give me the commands i need to type in that config file "_vimrc" or is this not so easy?
If your file is already encoded in UTF-8, it should be quite trivial. If you are using the latest Windows gVim, this single line should do the magic: :set encoding=utf-8 Open your UTF-8 encoded file after executing the above line (put it in _vimrc will do), and all should be OK. BTW, what do you mean by "not properly display"? Please describe in more detail, so other people understand if it is a display issue or encoding issue. The above discussion addresses the encoding issue, i.e., the Cyrillic characters are displayed in Latin-1 or things like that. If some squares are in the place of the characters, but the number of characters are correct, it may be a font problem. Just check to ensure you have the Cyrillic support installed on your Windows system, and put this in your _vimrc: :set guifont=Courier_New:h10:cDEFAULT If you are courageous enough see a real-world example of complicated multi-language support, check my _vimrc at: http://wyw.dcweb.cn/download.asp?path=vim&file=_vimrc.txt (as text) or http://wyw.dcweb.cn/download.asp?path=vim&file=_vimrc.html (as HTML) Best regards, Yongwei -- Wu Yongwei URL: http://wyw.dcweb.cn/