centos安裝vim7.4
系統版本centos6.4;
root權限
[html]
su - root
卸載
[html]
yum remove vim vim-enhanced vim-common vim-minimal
下載、解壓
[html]
$ wget ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2
$ wget ftp://ftp.vim.org/pub/vim/extra/vim-7.2-extra.tar.gz//網上的那個鏈接不能用
$ <span>wget ftp://ftp.vim.org/pub/vim/extra/vim-7.2-lang.tar.gz</span>
$
$ tar jxvf vim-7.4.tar.bz2
$ tar zxvf vim-7.2-extra.tar.gz
$ tar zxvf vim-7.2-lang.tar.gz
$
$ mv vim72 vim74
安裝編譯環境
[html]
$ yum install ncurses-devel
編譯安裝
[html]
$ cd vim73/src
$ ./configure --enable-multibyte \--with-features=huge \--disable-selinux
$ make
$ make install
測試
[html]
$ vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 18 2013 15:33:36)
Compiled by boss-j@bo_jwolf