分类:
2010-04-28 15:59:39
编辑vimrc文件
sudo vi /etc/vim/vimrc
在文件最后加上如下内容:
-------------------------------------------------------------------------------------------------------
" Encoding related
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-8
-------------------------------------------------------------------------------------------------------
保存退出。