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 installation Notes: 1. Install the Terminal Library: sudoapt-getinstalllibncurses5-dev2. download vim source code, open the download page of www.vim.org select unix source code download 3. Use tarxvfvim73 **. tar. B
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 xvf 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
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
Install the latest version to stay up-to-date: http://www.linuxidc.com/Linux/2011-03/33820.htm