Install VIM and Anaconda

I am using Anaconda and have an environment for Python27 and in the near future, one for Python3.

I ran into vim problem using rope, b / c my original build was linked to my / usr / local / vim (I think something is close to this).

I realized from reading that I have to rebuild vim with:

./configure --enable-pythoninterp --with-python-config-dir=/home/wbg/anaconda/envs/py27/lib/python2.7/config --enable-prefix=/home/wbg

So, I am wondering if there is a better way to install vim, so when I change the Anaconda environment my vim will change too.

TIA!

+4
source share
1 answer

Vim can be built in four ways:

  • Python support (-python, -python3)
  • Support for Python 2 only (+ python or + python / dyn, -python3)
  • Support for Python 3 only (-python, + python3 or + python3 / dyn)
  • Python 2 3 (+ python/dyn, + python3/dyn)

, ; . Python 2 Python 3 , . Python 2 3 Vim. , python Vim, .

python. python , vim. , python. :

./configure --with-features=huge --enable-pythoninterp=dynamic --enable-python3interp=dynamic

Debian python - :

./configure --enable-pythoninterp=dynamic --with-python-config-dir=$(shell python-config --configdir) -enable-python3interp=dynamic --with-python3-config-dir=$(shell python3-config --configdir)  

( . https://askubuntu.com/questions/585237/whats-the-easiest-way-to-get-vim-with-python-3-support).

+2
source

All Articles