天天看点

vim 编码设置

vim中对中文字符显示为乱码通过以下设置可以使中文字符正确的显示出来:

let &termencoding=&encoding

set fileencodings=utf-8,gbk,ucs-bom,cp936

继续阅读