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 http://vim.wikia.org/wiki/Setting_the_font_in_the_GUI . On Windows, I recommend the Courier_New font, which ought to be installed on every Windows system with an extensive set of glyphs. (Lucida_Console is prettier, but, alas, its Cyrillic bold glyphs are in fact one pixel wider than its Cyrillic non-bold glyphs, which makes it unusable with gvim.) If you don't yet have enough Cyrillic fonts, you may need to install the appropriate "language pack"(s); I don't know what is available for Vista, but when I was on XP I got it from the Windows Update site (by means of Internet Explorer, not Firefox, because Windows Update uses proprietary constructs unknown to Firefox).. 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'. In addition to the two vim-wiki articles mentioned above, and the help tags mentioned in them, see also :help 'iskeyword' :help mbyte.txt :help 'encoding' :help 'fileencodings' :help 'guifont' Best regards, Tony. -- hundred-and-one symptoms of being an internet addict: 38. You wake up at 3 a.m. to go to the bathroom and stop and check your e-mail on the way back to bed. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
