Compile and install the latest gvimvim7.3 in Ubuntu to solve the menu garbled

Source: Internet
Author: User
Tags mercurial
Vim7.3 official version is released. The vim version installed with apt-get in Ubuntu10.10 is 7.2. If you want to experience the new feature of 7.3, you can only compile it by yourself. Below is the latest version of installation Notes: 1. Install the Terminal Library: sudoapt-getinstalllibncurses5-dev2. Install Mercurial: sudoapt-getinstallmercurial3. Download vim source code, hgclonehttps:

The official version of vim7.3 has been released. The vim version installed with apt-get In Ubuntu 10.10 Is 7.2. If you want to experience the new feature of 7.3, you can only compile it by yourself. The Installation notes for the latest version are as follows:

1. install the Terminal Library: sudo apt-get install libncurses5-dev
2. install Mercurial: sudo apt-get install mercurial
3. Download vim source code, hg clone https://vim.googlecode.com/hg/ vim
4. Go to the source code directory cd vim/src.
5. Compile: make
6. install: sudo make install
 
When gvim is enabled, the following error occurs: (gvim: 26823): Gtk-WARNING **: Invalid input string
The menu bar is garbled.

Cause:
By default, Ubuntu 10.10 sets the Chinese region to zh_CN.utf8, while GVim can recognize the Chinese region as a zh_CN.UTF-8. Therefore, GVim reports an error at startup and cannot load the Chinese menu normally.
Solution: Edit in Linux ~ /. Vimrc: Edit _ vimrc in the installation directory in Windows
Add the following code:
Set langmenu = zh_CN.UTF-8 "set menu language
Source $ VIMRUNTIME/delmenu. vim "Import and delete the menu script to delete garbled menus
Source $ VIMRUNTIME/menu. vim "imports a normal menu script
Language messages zh_CN.utf-8 "sets the prompt language

Compile and install the stable version gvim vim 7.3 In Ubuntu to solve menu garbled characters

 

Related Article

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.