On 16/01/09 19:39, Valery Kondakoff wrote: > Hi! > > If there is a 'set encoding=utf-8' line in my _vimrc gVim 7.2 hangs when > issuing ':h shortmess' command consuming ~50% of CPU usage. > Can anyone confirm this? > The ':h shortmess' command works as expected when I'm commenting the > 'set encoding=utf-8' line out and restarting gVim. On the other hand > gVim hangs on ':h shortmess' when 'set encoding=utf-8' is the only one > line in _vimrc. > > Is this a bug or am I doing smth wrong? > > I'm using gVim 7.2 in Win Vista HP SP1. > > Thanks. >
Works for me on SuSE Linux but my system locale (set by the OS) is en_US.UTF-8. Try the following instead: if has('multi_byte') if &enc !~? '^u' if &tenc == "" let &tenc = &enc endif set enc=utf-8 endif set fencs=ucs-bom,utf-8,latin1 setg bomb fenc=latin1 else echohl Error echomsg 'multi_byte not compiled-in, cannot use Unicode' echohl None endif See http://vim.wikia.com/wiki/Working_with_Unicode and the help tags mentioned there. Best regards, Tony. -- "Don't say yes until I finish talking." -- Darryl F. Zanuck --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---