[vim]vim 在win下乱码解决

vim在win下遇到汉字乱码早就知晓,本以为通过如下设置即可解决乱码问题

set encoding=utf-8

set fileencoding=utf-8,chinese

这样设置是可以解决源码文件中的中文乱码问题但是菜单栏此时就变成了乱码, 肿么办? 网上查一解决方案 ,果断可行,摘录如下:

set encoding=utf-8
set fileencodings=utf-8,chinese,latin-1
if has("win32")
set fileencoding=chinese
else
set fileencoding=utf-8
endif
" 解决菜单乱码
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
"解决consle输出乱码
language message zh_Cn utf-8

转载于:https://www.cnblogs.com/AI-Algorithms/p/3751781.html

猜你喜欢

转载自blog.csdn.net/weixin_33962621/article/details/94506338
今日推荐