安装YouCompleteMe

作者: 54Fire | 来源:发表于2018-03-23 23:11 被阅读3次

安装YouCompleteMe的步骤

  1. 用vundle中的安装太慢,所以自己手动安装
    检查是否安装clang、g++、cmake等

  2. 安装插件管理工具

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

在.vimrc中插件管理处加入:

Plugin 'Valloric/YouCompleteMe'
  1. 安装ycm
cd .vim/bundle
git clone https://github.com/Valloric/YouCompleteMe.git
cd YouCompleteMe
git submodule update--init--recursive
./install.py --clang-completer
  1. 在.vimrc中添加下列
let g:ycm_global_ycm_extra_conf = ‘~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py’ 

相关文章

网友评论

  • cd666c2bd87d:在执行./install.py --clang-completer时,下载clang时特别慢,总是超时,楼主有什么好的解决方法吗?
    54Fire:@HowardLucas 我安装时,不慢啊,有可能是网速问题。或者是墙的问题,可以翻墙试一试,或者去http://releases.llvm.org/download.html直接下载clang安装。

本文标题:安装YouCompleteMe

本文链接:https://www.haomeiwen.com/subject/tzyfcftx.html