How to Set gvim Chinese and English fonts in Windows (guifont/guifontwide)

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.