Compile and install gvim7.2 in Ubuntu10.04

Source: Internet
Author: User
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

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.