Ubuntu 10.10 安装Vim 7.3


步骤一:

先从官网下载vim7.3源码。 http://www.vim.org/sources.php

也可以用  Mercurial  获取最新版本的源码

步骤二:

解压文件后,从终端进入vim7.3的源码目录,命令行操作如下:

$ cd vim73

$ cd src

$ make distclean     #清理一下上一次编译生成的所有文件

$ ./configure --with-features=huge --enable-pythoninterp=yes \

  --enable-gui=gnome2 --enable-cscope --enable-fontset --enable-perlinterp \

  --enable-rubyinterp --with-python-config-dir=/usr/lib/python2.6/config  #编译配置

$ make && sudo make install

说明一下下:

编译配置中的 --enable-gui=gnome2 是启用GUI,也就是可以使用gvim。还是不习惯终端里的vim

     --enable-pythoninterp=yes 是启用vim对python的支持

     --with-python-config-dir=/usr/lib/python2.6/config  指向python的配置文件夹,因为个人安装版本/路径的不同,这里根据自己的实际情况而稍做修改。(我 用的Ubunut 10.10的python默认安装路径)

     还有个欠抽的配置选项可以用:

     --with-compiledby="A bingo boy which be capable to compile VIM"

    哈哈~~适合超级自恋的人使用。

相关内容