Thanks,

i wrote 'set isk=@,48-57,65-90,97-122,192-255,_' in my _vimrc and
'dw' begun work properly.

2009/5/25 Tony Mechelynck <[email protected]>:
>
> On 19/05/09 07:37, roman chechulin wrote:
>>
>> I'm using Vim 7.2 on Windows. The result of ':set enc ?' is 'cp1251'.
>> If i execute set enc=utf-8, then 'dw'-command work properly, but  in
>> status line and in dialog box (for example when delete buffer) i see
>> broken fonts.
>
> Windows-1251 is a single-byte encoding for Cyrillic. In order for the dw
> diw daw Normal-mode commands to work properly in that encoding, you have
> to set 'iskeyword' in such a way that all Cyrillic "letters" are
> included, which IIUC is not the default.
>
> Alternately, you can set 'encoding' to UTF-8, see
> http://vim.wikia.org/wiki/Working_with_Unicode -- I recommend to use
> gvim rather than Console Vim in that case, and you'll have to select a
> 'guifont' which supports Cyrillic, see...........................}

>
> In order to recognize non-Unicode files as Windows-1251 when your
> 'encoding' is set to utf-8, you should use
>
>        :set fileencodings=ucs-bom,utf-8,cp1251
>
> with s (very important) at the end of 'fileencodings'.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to