centos6 install vim plugin youcompleteme problems and solutions

  1. First clone vim8 code repository
    git clone https://github.com/vim/vim.git

  2. Then compile
    attention under his python2.7config Where
./configure --with-features=huge \
--enable-multibyte \
--enable-rubyinterp=yes \
--enable-pythoninterp=yes \
--with-python-config-dir=/usr/lib64/python2.7/config \ # pay attention here check directory correct
--enable-python3interp=yes \
--with-python3-config-dir=/usr/lib/python3.5/config \
--enable-perlinterp=yes \
--enable-luainterp=yes \
--enable-gui=gtk2 \
--enable-cscope \
--prefix=/usr/local 
  1. For vimplug
    the Plug Configuration 'valloric / youcompleteme'

  2. Entering ~ / .vim / plugged / youcompleteme
    execute / usr / bin / python ./install.py --clang -completer
    or directly ./install.py

End

Guess you like

Origin www.cnblogs.com/-wang-cheng/p/11627768.html