compile vim with python interceptor
-
Download Vim from Mercurial repository:
hg clone https://vim.googlecode.com/hg/ vim;hg pull;hg update
-
install python develope package
sudo apt-get install python2.7-dev
sudo apt-get build-dep vim
-
install Vim with python configure directory:
./configure --enable-gui=auto \
--with-x=yes \
--enable-multibyte \
--enable-pythoninterp \
--with-features=huge \
--with-python-config-dir=/usr/lib/python2.7/config \
--enable-cscope
make && sudo make install
Beware of the with-python-config-dir
is different according to your system, check the python configure directory by your own.