|
|
发表于 2006-3-15 19:16:37
|
显示全部楼层
set ffs=unix,dos,mac " support all three, in this order
set encoding=utf-8
set fileencodings=utf-8,cp936,big5,latin1
set fileencoding=utf-8
set termencoding=utf-8
我的 vimrc 里边有这些东西,好像可以自动检测到 gb2312 的文件并且自动转换。文件保存后还是 gb2312 charset的。 |
|