[Gvim] Ubuntu gvim cannot display chinese menus normally

Source: Internet
Author: User

Problem:

After Ubuntu 10.04 lucid lynx is installed, gvim cannot display the Chinese menu normally.
Error message:

Reference:GTK-warning **: Invalid input string

Cause:
Ubuntu 10.04 lucid Lynx default installation will set the Chinese area to zh_cn.utf8, while gvim can recognize other Chinese areas set to zh_CN.UTF-8. Therefore, gvim reports an error at startup and cannot load the Chinese menu normally.

Solution 1:

Code: CD/usr/share/Vim/vim72/lang
Sudo ln-s menu_zh_cn.utf-8.vim menu_zh_cn.utf8.vim

This method enables gvim to recognize zh_cn.utf8 and uses the menu settings identical to the zh_CN.UTF-8. And does not affect the Chinese region settings of the system.

From: http://forum.ubuntu.org.cn/viewtopic.php? F = 68 & amp; T = 268875

Solution 2:

Set langmenu = zh_CN.UTF-8
Source $ vimruntime/delmenu. Vim
Source $ vimruntime/menu. Vim
Language messages zh_CN.utf-8
Copy to the/etc/Vim/vimrc file in the folder.

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.