解决vim 中文乱码
1.打开vimrc
vim ~/.vimrc
2.添加几行设置编码
set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
set termencoding=utf-8
set encoding=utf-8
亲测vim 8.0.x
有效
3.参考
https://www.cnblogs.com/joeyupdo/archive/2013/03/03/2941737.html
vim ~/.vimrc
set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
set termencoding=utf-8
set encoding=utf-8
亲测vim 8.0.x
有效
https://www.cnblogs.com/joeyupdo/archive/2013/03/03/2941737.html