在/etc/vim/vimrc文件最后加入如下几行: set encoding=UTF-8 set langmenu=zh_CN.UTF-8 language message zh_CN.UTF-8 set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1 #这一句可以不加 set fileencoding=utf-
在/etc/vim/vimrc文件最后加入如下几行:
set encoding=UTF-8set langmenu=zh_CN.UTF-8
language message zh_CN.UTF-8
set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1 #这一句可以不加
set fileencoding=utf-8