[root@cctv setup]# vim /etc/vimrc //添加到配置文件最后
set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
set termencoding=utf-8
set encoding=utf-8
[root@cctv setup]# vim /etc/vimrc //添加到配置文件最后
set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
set termencoding=utf-8
set encoding=utf-8