编辑~/.vimrc文件,加上如下几行即可:
set
fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
termencoding=utf-8
encoding=utf-8