执行:
cd ~ vim .vimrc
将如下文本复制保存退出即可。
set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936 set termencoding=utf-8 set encoding=utf-8