Linux下安裝Vim插件YouCompleteMe

說實話,這個插件真的很容易裝,但是我之前老是失敗。實際上這個是牆的鍋,github的clone速度太太太慢了!平時的一些倉庫可以用gitee解決問題,但是這個插件他又要調用github上的其他倉庫所以就很煩。
(所以我就翻了個牆,生活直接美好起來

說下步驟吧,以防萬一建議按順序來全試一遍.

#我沒用vundle,雖然我之前裝好了
sudo apt-get install build-essential cmake python-dev python3-dev
cd .vim/bundle
git clone --recursive  https://github.com/Valloric/YouCompleteMe.git 
git submodule update --init --recursive
cd YouCompleteMe
./install.py --clang-completer   #C系語言補全
cd ~
vi .vimrc
#在.vimrc最後加入
let g:ycm_global_ycm_extra_conf='~/.vim/bundle/YouCompleteMe/third_party/ycmd/.ycm_extra_conf.py'

這樣就大功告成啦。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章