飞道的博客

Linux下安装Vim插件YouCompleteMe

395人阅读  评论(0)

说实话,这个插件真的很容易装,但是我之前老是失败。实际上这个是墙的锅,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'

这样就大功告成啦。


转载:https://blog.csdn.net/weixin_44009743/article/details/104680775
查看评论
* 以上用户言论只代表其个人观点,不代表本网站的观点或立场