来自:http://doc.linuxpk.com/5256.html
联系:linuxmine#gmail.com
分类:[vi]
拷贝以下内容到 ~/.vimrc 或 ~/.gvimrc 中即可。
" multi-encoding setting
if has("multi_byte")
"set bomb
set fileencodings=ucs-bom,utf-8,cp936,big5,euc-jp,euc-kr,latin1
" CJK environment detection and corresponding setting
if v:lang =~ "^zh_CN"
" Use cp936 to support GB...