vim /etc/vimrc 在如下位置添加:utf-8 set fileencodings= utf-8 ,gb2312,gb18030,gbk,ucs-bom,cp936,latin1 set termencoding=utf-8 set fileformats=unix set encoding=prc