日期:2014-05-17 浏览次数:20820 次
在%VIM_HOME%/下有个_vimrc文件,打开后在最后添加:
?
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
?
参考链接:
http://dongyulong.blog.51cto.com/1451604/294576 (强烈推荐,说明了很多的配置)
http://www.cnblogs.com/LinKing/articles/1515324.html
http://blog.csdn.net/rehung/archive/2007/09/21/1794293.aspx
http://www.gracecode.com/archives/2402/
http://www.gracecode.com/archives/1545/
?
更多内容,请见我的博客:“地瓜哥”,http://www.diguage.com/
?
?
?