The solution of the garbled problem of vim under Windows
Vim default encoding is GB2312, no utf-8 to choose for us, so we have to configure ourselves:
The specific configuration is as follows:
Open the VIM installation directory under the _VIMRC, add a few words in the header configuration statement can be done:
01
Set default encoding
02
Set Encoding=utf-8
03
Set fileencodings=utf-8,chinese,latin-1
04
If has ("Win32")
05
Set Fileencoding=chinese
06
Else
07
Set Fileencoding=utf-8
08
endif
09
10
Resolve Menu Garbled
11
SOURCE $VIMRUNTIME/delmenu.vim
12
SOURCE $VIMRUNTIME/menu.vim
13
14
Troubleshoot console output garbled
15
Language Messages Zh_cn.utf-8
1
Furthermore, we strongly recommend that you change its color, the default white too dazzling
2
Similarly, add a sentence configuration is good (this desert desert theme is looking at the most comfortable, do not like to change their own)
3
ColorScheme Desert
1
Some of the other useful
2
Add line number
3
: Set Number