在~/.vimrc文件中添加如下两行即: set encoding=GB2312 set fileencoding=GB2312 转载于:https://blog.51cto.com/mooon/904960