使用 vi ~/.vimrc.也就是用户进来的目录
vi ~/.vimrc
set encoding=utf-8 set fileencoding=utf-8
方法二 在文件内使用下面命令,实现文件内的字体变换
:set encoding=utf-8