On 12/3/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:
Yakov Lerner wrote: > On 12/3/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote: >> Yakov Lerner wrote: >> [...] >> > My vim is build with +mbyte ('huge' build). gvim shows russian letters. >> > vim under console, no. The linux is FC5. >> > >> > Yakov >> > >> > >> >> +mbyte is required for Unicode support as well as for any 16-bit >> encoding. > Do you mean has('multi_byte') ? I have it.er, yes, indeed, I meant +multi_byte. > >> Russian letters in the konsole requires a UTF-8 (or Russian-localised) >> konsole >> and a console font (set outside of Vim) which includes the necessary >> glyphs. > I have russian in konsole which is confirmed by cat''ting the file in > konsole. > I see russian letters when I 'cat' the file. 'konsole' is set to utf8. Why > vim does not show russian then (enc and fenc are set to utf-8) ? > > Yakov > I wonder. Are they set so by default or do you have to ":set" them? What are they set to when your vimrc starts (or when running Vim with -u NONE)? Console Vim is more dependent than gvim upon your system's locale; that's why I always use gvim when dealing with non-Latin scripts (and most often even with Latin-1).
Thanks for the tip. This is totally non-obvious indeed. When I set 'enc' to utf-8 in vimrc this is ignored. When I do "vim --cmd 'set enc=utf8' rus-alphabet" though, I do see russian letters in konsole vim. I wonder now how do I add to vimrc this setting that vim wants to be set before vimrc ? ( the 'set enc=utf8' setting) ?:-) Do you know why exactly 'set enc=utf8' in vimrc is ignored ? Looks like a bug to me .... My problem is that I really want LANG to be C, on this stage. I could make sciprt or alilas utfvim with this --cmd 'enc=utf8'', but this does not seem convenient. Is this s bug in vim ? Besides, I see another weird problem. Width of lowercase russian letters is smaller than width of uppercase Russian letters Lucida Typewriter). This is strange because this is definitely monospace font. But this is not vim issue, the same width difference apepars in konsole without vim. Thanks Tony, Yakov
