Gvim Chinese Menu garbled solution

Source: Internet
Author: User
Vim in the Chinese font of Windows is not good, so we need to adjust the font display code for UTF-8, only in order to use the beautiful Chinese. This time may appear many Chinese garbled. Such as: File display garbled, menu garbled, right key menu garbled, Conlse output garbled, file association right menu garbled and so on. Online a lot of solutions, but I tried a lot, there are some weird garbled, the other. There is a simple way to solve the garbled problem: delete vim under the lang directory. But so all menus can only be displayed in English. So I had to find a way. After a long time groping, summing up the following code can completely solve these problems.
"" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ""
vim7.1 encoding settings under Windows. "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "

Fileencodings=utf-8,chinese,latin-1

If has ("Win32")

 set Fileencoding=chinese

else

 set Fileencoding=utf-8

endif

"resolve menu garbled

source $VIMRUNTIME/delmenu.vim

source $VIMRUNTIME/menu.vim

"solve Consle output garbled

language messages Zh_cn.utf-8

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.