centos 7.1

cd /etc/
vi virc
在最后面增加如下字段:

set fileencodings=utf-8,gb2312,gbk,gb18030  

set termencoding=utf-8  

set fileformats=unix  

set encoding=prc 

Over.

本文地址: http://xpleeandroid.github.io/2016/10/08/centos-vi-chinese-garbled/