1 vi ~/.vimrc
1 set fileencodings=utf-8,gb2312,gb18030,gbk,ucs-bom,cp936,latin1 2 set enc=utf8 3 set fencs=utf8,gbk,gb2312,gb18030