using pyenv to install multi versions of python.
env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.6-dev
env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 2.7-dev
load 3.6-dev and 2.7-dev into envirnoment
pyenv global 3.6-dev 2.7-dev
git clone https://github.com/vim/vim
cd vim
./configure --enable-pythoninterp --enable-python3interp
make
sudo make install
run vim --version
you can see +python/dyn
+python3/dyn
curl -sLf https://spacevim.org/install.sh | bash -s -- --install vim
then execute vim
, wait until all plugins installed.
execute
:SPUpdate
into vim to manual update all plugins.
edit ~/.SpaceVim.d/init.vim
call SpaceVim#layers#load('lang#python')
call SpaceVim#layers#load('autocomplete')
let g:spacevim_enable_ycm = 1
execute vim
and wait until all required plugins installed.
then move the cursor on the YCM vebose.
execute gf
and then you will goto YCM plugin dir.
execute ./install.py
to build the YCM.