Troubleshoot issues where the Gvim menu cannot display Chinese

Source: Internet
Author: User
Tags locale setting

Run after installing GVIM under Ubuntu 10.04, found unable to display Chinese menu

At the same time, the command line will also error:

gtk-warning * *: Invalid input string

The search was made because Ubuntu 10.04 default installation will set the Chinese locale to Zh_cn.utf8, while the Chinese locale recognized by GVIM is set to ZH_CN. UTF-8. So Gvim will be wrong at the start times and cannot load the Chinese menu properly.

Here's how to fix it:

Cd/usr/share/vim/vim72/langsudo ln-s Menu_zh_cn.utf-8.vim Menu_zh_cn.utf8.vim

This method allows Gvim to recognize Zh_cn.utf8 and is used in ZH_CN. UTF-8 The exact same menu settings. And does not affect the Chinese locale setting of the system.

Troubleshoot issues where the Gvim menu cannot display Chinese

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.