The vim menu in Ubuntu10.04 is garbled.

Source: Internet
Author: User
Problem: After Ubuntu10.04 is installed, GVim cannot display the Chinese menu normally. Cause: Ubuntu10.04LucidLynx default installation will set the Chinese region to zh_CN.utf8, and GVim can recognize the Chinese region set as zh_CN.UTF-8. Therefore, GVim reports an error at startup and cannot load the Chinese menu normally. Solution: Code: cd/usr/share/vim/vim72/langsudoln-sm

Problem:
After Ubuntu 10.04 is installed, GVim cannot display the Chinese menu normally.

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:

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

Method 2:
Copy/ect/vim/gvimrc ~ /. Gvimrc
Add the following statement to solve the problem:
Set encoding = chinese
Set langmenu = zh_CN.GBK
Set imcmdline
Set guifont = "Serif 14"
Source $ VIMRUNTIME/delmenu. vim
Source $ VIMRUNTIME/menu. 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.

Okay. The problem is solved. It is a headache to say that character encoding is not uniform!
It is really a bit envious of English-language coder, learning programming has inherent advantages.
It seems that it will be better to work in the pure En System in the future !!!!

Download gvim 72
Bytes:
1./configure -- with-features = huge
2 make CFLAGS = "-O3-D_FORTIFY_SOURCE = 1"
// If no parameter is added after make, a strange error such as vim: caught deadly signal ABRT may occur. For details, refer to here.
3 sudo make install

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.