服务器tail正常,cat正常,vim打开中文乱码

在/etc/vim/vimrc文件末尾加上

set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
set termencoding=utf-8
set encoding=utf-8

发布了108 篇原创文章 · 获赞 62 · 访问量 12万+

猜你喜欢

转载自blog.csdn.net/yzf279533105/article/details/104507267