VIM解决编码及菜单乱码问题

修改_vimrc文件,加入以下内容:
if has('win32')
  source $VIMRUNTIME/mswin.vim
  behave mswin
endif

set encoding=utf-8
set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1
set fileencoding=utf-8 "新建文件的编码

"解决菜单乱码
set langmenu=zh_CN
let $LANG = 'zh_CN.UTF-8'
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim

即可~

你可能感兴趣的:(vim)