Under the current user's home directory .vimrcto add file
.vimrc
set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936 set termencoding=utf-8 set encoding=utf-8
Under the current user's home directory .bashrcto add or modify files
.bashrc
export LC_ALL="zh_CN.UTF-8"