Compile and install the stable version gvim Vim 7.3 In ubuntu

Source: Internet
Author: User
Tags gtk

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 are as follows:

1. Install the Terminal Library: sudo apt-Get install libncurses5-dev
2. Download the vim source code. Open the download page of www.vim.org and select the Unix source code to download.
3. decompress the package with tar-xjf vim73 ** .tar.bz2

 

4. go to the decompressed vim73 directory and execute. /configure -- enable-multibyte -- With-features = huge -- prefix =/usr, then make vimrcloc =/etc vimruntimedir =/usr/share/Vim/vim73 make = "make-e" and sudo make install.
 
To compile gvim, install GTK and use sudo apt-Get build-dep vim-GTK to install the required files.
Then use./configure -- enable-gnome-check -- With-X-enable-xim -- enable-fontset -- enable-multibyte -- With-features = huge -- prefix =/usr
Make vimrcloc =/etc vimruntimedir =/usr/share/Vim/vim73 make = "make-e"
Sudo make install compilation and installation.
 
When gvim is enabled, 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

AddCode:
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

Install the latest version to stay up-to-date: http://www.linuxidc.com/Linux/2011-03/33820.htm

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.