1、可到http://www.vim.org/网站下载vim-7.4.tar.bz2
2、解压tar -jxv -f vim-7.4.tar.bz2会生成vim74文件夹
3、cd vim74
cd src
./configure
在/vim74/src下生成makefike文件
4、在/src下
sudo make
sudo make install
若出现error:no terminal library found checking for tgetent()……configure:error:NOT FOUND!You need to install a terminal library;for examples.Or specify the name of the library with -with -tlib.
则
sudo apt-get install libncurses5 -dev
sudo apt-get install vim-gnome
此时在/src下输入vim即可
5、修改路径
PATH=$PATH:/usr/local/bin
至此,便可在终端输入vim执行了