centos6安裝vim插件youcompleteme問題及解決

  1. 首先clone vim8代碼庫
    git clone https://github.com/vim/vim.gitpython

  2. 而後編譯
    注意下本身的python2.7config在哪兒
./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. 對於vimplug
    配置下Plug 'valloric/youcompleteme'git

  2. 進入~/.vim/plugged/youcompleteme
    執行/usr/bin/python ./install.py --clang-completer
    或者直接./install.pygithub

結束vim

相關文章
相關標籤/搜索