windows vim 不生成临时文件 中文乱码

1. 不生成临时文件

set nobackup

set nowritebackup

 

把这两行放在最后,

就是endfunction后面。

 

2. 乱码问题

set encoding=utf-8

set termencoding=utf-8

set fileencoding=chinese

set fileencodings=ucs-bom,utf-8,chinese

set langmenu=zh_CN.utf-

 

把上面的放到 set nocompatible 下面

猜你喜欢

转载自luyuwww.iteye.com/blog/1276601
今日推荐