[EMAIL PROTECTED] wrote:
> "Yongwei Wu" <[EMAIL PROTECTED]> 写于 2006-10-30 10:41:21:
>> Alex, if you cannot display Chinese while choosing Courier New, you
>> may try setting your default locale (Control Panel > Regional and
>> Language Options > Advanced > Language for non-Unicode programs) to
>> Chinese (PRC). It should work. And then you will be able to edit
>> English, French, Greek, Russian, Chinese, Japanese, and Arabic
>> simultaneously.
>>
>> Best regards,
>>
>> Yongwei
>
> A little off-topic, but AFAIK this works perfect in Windows but not
> identical in Linux, since Windows do not connect the internal processing
> locale to the locale of user interfaces. The UI will never change when you
> change the locale. (That's a good design IMO)
>
> When you change the locale in Linux, the messages, menu texts are all
> changed to the targeting locale after reboot. So it is hard to have a
> Chinese UI and retain English locale, and it might be more difficult to
> have a Chinese locale while retain English UI.
>
> Alex's case is an example, if what he want is to display chinese correctly,
> set locale to chinese is an easy way, but he might be troubled if all the
> messages in the UI also changed into chinese.
>
> --
> Sincerely, Pan, Shi Zhu. ext: 2606
>
>
To keep English UI, add at the _top_ of your vimrc (before sourcing the
vimrc_example and before "filetype on" if you use either):
if has("unix")
language messages C
else
language messages en
endif
If, in addition, you want to force Chinese character locale regardless of what
was set by the OS, you may want to add also
if &tenc == ""
let &tenc = &enc
endif
set enc=utf-8
language ctype zh_CN.utf-8
(or something). The exact setting may or may not be OS-dependent, I didn't try
it (while I tested the "messages" setting on both WinXP and Linux -- not in a
Chinese locale but in a French one).
See ":help :language"
Best regards,
Tony.