Vim python support with non-system python

I am trying to create vim with python support but using custom python somewhere in my $ HOME directory (e.g. $ HOME / python2.6). Unfortunately, even providing --with-python-config-dir = $ HOME / python2.6 / lib / python2.6 / config does not prevent vim configure from looking into / usr in python. Is there a way that doesn't involve manually editing makefiles?

+7
source share
1 answer

Just by looking at the configuration file, it looks like you can set the path to the python executable with env var 'vi_cv_path_python'. So:

vi_cv_path_python=~/bin/python ./configure --enable-pythoninterp 

Replacing ~ / bin / python with the appropriate path for your installation, of course.

+7
source

All Articles