Skip to content

Instantly share code, notes, and snippets.

@leifdenby
Last active February 2, 2021 18:10
Show Gist options
  • Save leifdenby/13348bd84a835f1dc4a0b32a14f379f2 to your computer and use it in GitHub Desktop.
Save leifdenby/13348bd84a835f1dc4a0b32a14f379f2 to your computer and use it in GitHub Desktop.
Building vim with python3 support against conda python (into ~/.local)
# create a conda environment with python3 and activate it
git clone https://github.com/vim/vim
cd vim
./configure --with-features=huge --enable-python3interp=dynamic --prefix=$HOME/.local
# add the following lines to ~/.vimrc, changing `py36` do your env name and possible the python version in `libpython3.7m.so`
#
# set pythonthreedll=$HOME/anaconda2/envs/py37/lib/libpython3.7m.so
# set pythonthreehome=$HOME/anaconda2/envs/py37/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment