解决vim中文乱码

[root@k8s-master1 ~]# vim /etc/vimrc
添加
set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
set termencoding=utf-8
set encoding=utf-8

你可能感兴趣的:(学习报错,vim)