找到 vimrc 文件,我的是在/etc/vimrc  在最后添加


set fileencodings=utf-8,gb2312,gbk,gb18030

set termencoding=utf-8

set fileformats=unix

set encoding=prc