在 LANG=zh_CN.UTF-8 的 locale 设置下,使 vim 自动识别中文编码的简单方法:在 .vimrc 里加上下面一行:
set fileencodings=utf8,gbk,big5
发表于 Tips | 没有评论 »