通常都是改变用户目录下的.vimrc文件 set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1 set fileencoding=gb18030