Hi-Angel
Hi-Angel

Reputation: 5619

Getting python support in vim

After reading short guide and this question I figure out how to configure Vim:

./configure --with-features=huge --enable-rubyinterp --enable-pythoninterp 
--enable-perlinterp --enable-gui=gtk2 --enable-cscope --prefix=/usr 
--with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu/

And now make && sudo make install. Here is the log of ./configure command. But the problem is here that after this build I didn't get python support. Below I paste two lines of the list of a features what I see when launch Vim and typing ":version"

+cindent -ebcdic +jumplist -mouse_jsbterm -python -tag_any_white +windows 
+clientserver -emacs_tags -keymap -mouse_netterm -python3

"-" sign means the disabled features, to my regret the python one of them. Am I miss something? Thanks in advance!

Upvotes: 1

Views: 726

Answers (1)

nopsoft
nopsoft

Reputation: 942

eg. for vim73:

./configure --enable-pythoninterp | grep python
checking --enable-pythoninterp argument... yes
checking for python... (cached) /usr/bin/python
(cached) checking Python's configuration directory... (cached) /usr/lib/python2.6/config
checking --enable-python3interp argument... no

:version

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jul 17 2013 00:21:48)
+python -python3
-L/usr/local/lib -o vim    -lncurses -L/usr/lib/python2.6/config -lpython2.6 -lpthread 
-ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions

Are you sure you run just your compiled vim version? Likely you run old code from /usr/bin/vim, try to reload bash to run from /usr/local/bin/vim.

Upvotes: 2

Related Questions