sudo vim /etc/vim/vimrc
#末尾添加 set fileencodings=gb2312,utf-8,gbk,gb18030 set fileencoding=gb2312 set termencoding=utf-8 set encoding=prc