VIM 解决中文乱码

$ vim ~/.vimrc

加入以下内容

  set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
  set termencoding=utf-8
  set encoding=utf-8
$ source ~/.vimrc

搞定

posted @ 2016-08-04 10:32  littlemonsters  阅读(538)  评论(0编辑  收藏  举报