First install the compilation tool under Ubuntu10.04. $ Sudoapt-getinstallbuild-essential $ sudoapt-getinstallncurses-dev $ sudoapt-getinstallxorg-dev $ sudoapt-getinstalllibgtk2.0-dev and then download gvim7 from http://www.vim.org
First install the compilation tool in Ubuntu 10.04.
$ Sudo apt-get install build-essential $ sudo apt-get install ncurses-dev $ sudo apt-get install xorg-dev $ sudo apt-get install libgtk2.0-dev
Then download the latest gvim 7.2 source code http://www.vim.org from the vim-7.2.tar.bz2.
$ Wget ftp://ftp.vim.org/pub/vim/unix/vim-7.2.tar.bz2 $ tar xjvf vim-7.2.tar.bz2 $ cd vim72
Compile and install:
$./Configure -- enable-fontset -- enable-CSTE -- enable-gui -- enable-multibyte -- with-x $ make $ sudo make install
Check whether the installation is correct:
$ Gvim
If the gVim interface is displayed normally, the installation is successful. Then, delete the built-in vim 6.4.
$ Sudo apt-get remove vim-common vim-runtime
Create a symbolic link to point to vim 7.2.
$ Sudo ln-s vim/usr/local/bin/vi $ sudo ln-s/usr/local/bin/vim/bin/vi