如何解决vim中文乱码 vim ~/.vimrc 添加下面内容 set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936 set termencoding=utf-8 set encoding=utf-8 保存即可