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

修改服务器端, 在/etc/vim/vimrc文件末尾加上

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

原文地址:https://www.cnblogs.com/shijiaoyun/p/10240322.html