gvim windows 下中文乱码的解决

 

安装gvim7.2后,装上中文文档,菜单栏变成乱码,

解决:

set encoding=utf-8
set fileencodings=utf-8,chinese,latin-1
if has("win32")
set fileencoding=chinese
else
set fileencoding=utf-8
endif
"解决菜单乱码
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
"解决consle输出乱码
language messages zh_CN.utf-8

posted on 2009-07-02 11:13  Chen Linghui  阅读(366)  评论(0编辑  收藏  举报