On 11/10/10 00:42, Hiroshi Iwatani wrote:
I have [set encoding=utf-8] for the _vimrc file on a Windows 7 environment, 
which is a requirement for my current work. Under this setting, texts on the 
gvim popup alert, messages displayed on the bottom line and current file name 
display are all garbled being unreadable. If enc is unset or set to cp932, 
which is a Windows derivative of Shift-JIS, those texts are normally displayed 
but then utf8 text from file is unreadable.

How could I read normally those texts from the gvim system under the 
'enc=utf-8' setting?

Thanks in advance.


Try (untested) adding either

        :language messages Japanese_Japan.932
or
        :language messages Japanese_Japan.10646

It probably also makes a difference whether you put it in your vimrc before or after setting 'encoding' to UTF-8: you will have to experiment, as I cannot test it myself (I don't have a Windows box anymore). In any case it should be before any of the following (only one of which is usually present):

        :filetype plugin on
        :filetype plugin indent on
        :runtime vimrc_example.vim
        :source $VIMRUNTIME/vimrc_example.vim


Another possibility is to have all messages and popups come out in English, by using

        :language messages English_United States.1252
or maybe
        :language messages English_United\ States.1252

(if one of them doesn't work, try the other).


Best regards,
Tony.
--
Kiss your keyboard goodbye!

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to