Snucky 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?

Btw, i am running on a windows system

THANKS a million!

To see cyrillic characters in Console Vim you need a terminal with Cyrillic display, since Console Vim can only use whatever characters the underlying terminal offers.

In gvim, you can display Cyrillic characters on two conditions:
- 'encoding' must be set to some value which supports Cyrillic text. This can be an 8-bit encoding like koi8-r, cp1251 or ISO-8859-5, or a multibyte encoding like UTF-8. - Your 'guifont' must include Cyrillic glyphs. Lucida_Console has a problem in that its Cyrillic bold glyphs are slightly wider than its unbold glyphs. Courier_New is uglier but "saner".

So here is (a part of) a vimrc for gvim, to use Cyrillic characters:



if &enc !~? '^u'
        if &tenc == ''
                let &tenc = &enc
        endif
        set enc=utf-8
endif
set fencs=ucs-bom,utf-8,default,iso-8859-5
setglobal bomb fenc=utf-8
if has('gui_running')
        if has('gui_gtk2')
                set gfn=Courier\ New\ 10
        elseif has('gui_photon')
                set gfn=Courier\ New:s10
        elseif has('gui_kde')
                set gfn=Courier\ New/10/-1/5/50/0/0/0/1/0
        elseif has('x11')
                set gfn=*-courier-medium-r-normal-*-*-100-*-*-m-*-*
        else
                set gfn=Courier_New:h10:cDEFAULT
        endif
endif
language messages ru_RU.UTF-8
runtime vimrc_example.vim
" add additional customizations here




Best regards,
Tony.
--
"It's not Camelot, but it's not Cleveland, either."
                -- Kevin White, mayor of Boston

Reply via email to