开发者

Specifying the Python interpreter for vim's :python command

(Mac)Vim seems to be picking up /usr/bin/python instead of the one that's at the front of my path (/Library/Frameworks/Python.framewo开发者_StackOverflow中文版rk/Versions/2.6/bin/python) when I use the :python command. Is this entirely a compile-time thing or can I somehow override it?


Seems like it is an entirely compile-time thing:

$ ldd /usr/bin/vim | grep python
libpython2.5.so.1.0 => /usr/lib/libpython2.5.so.1.0 (0xb6bcc000)

my vim --version also reports being built against a specific python.

$ vim --version | tr '-' '\n' | grep python
+python +quickfix +reltime +rightleft +ruby +scrollbind +signs +smartindent 
I/usr/include/python2.5 
L/usr/lib/python2.5/config 
lpython2.5 

another symptom of this is that the :python command won't work with vim unless vim --version reports +python.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜