vim正常显示gbk编码文件

来源:互联网 发布:钢琴的软件 编辑:程序博客网 时间:2024/06/01 21:08

 gedit ~/.vimrc

加入以下内容:

let &termencoding=&encoding
set fileencodings=utf-8,gb18030,gbk,gb2312,big5

 

原理说明,参考:

http://bigwhite.blogbus.com/logs/47259473.html (我没看过!)