In gvim, you can set the display font for English and Chinese characters (in fact, set single-byte characters and double-byte characters to display separately) respectively. Set guifont =: set guifontwide = Statement. However, the guifontwide setting takes effect only when encoding = UTF-8. Therefore, before the two statements, you must set encoding with encoding, garbled characters are displayed in the menu bar and command line. Therefore, you need to reset these parameters: the overall font settings are as follows: Code, Add it to vimrc. In this example, the English font uses menlo, and the Chinese font uses the young circle (bold ):
"Set encoding = UTF-8" sets the internal character encoding used by VIM to solve the problem of Chinese display and corresponding prompts and menu garbled characters, the original is cp936lang messages zh_CN.UTF-8 "to solve consystemic output garbled" to solve the menu garbled source $ vimruntime/delmenu. vim source $ vimruntime/menu. vim set guifont = Menlo: H13: cansiset guifontwide = youyuan: B: H13: cgb2312