Building Vim on Ubuntu

You need the required development packages on Ubuntu to build the GUI:

sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev \
libgtk2.0
-dev libatk1.0-dev libbonoboui2-dev \
libcairo2
-dev libx11-dev libxpm-dev libxt-dev

Commands to build and install GUI Vim:

$ cd vim7
$ cd src
$ make distclean
$ .
/configure --with-features=huge --enable-gui=gnome2
$ make
$ sudo make install

如果想在vim上做python或者ruby的开发,在编译vim的时候可以启用相应的解释器:

$ ./configure --with-features=huge 
--enable-gui=gnome2 
--enable-pythoninterp 
--enable-rubyinterp 
--enable-perlinterp

posted @ 2011-03-26 10:01  Mamboer  阅读(283)  评论(0编辑  收藏  举报