打开~/.vimrc
添加如下内容
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'ycm-core/YouCompleteMe'
call vundle#end()
PluginInstall
,安装完成会打开双编辑器并提示done,但是速度很慢很可能断开。~/.vim/bundle
git clone git clone https://github.com/ycm-core/YouCompleteMe.git
git submodule update --init --recursive
brew install cmake python go nodejs
brew install vim
cd ~/.vim/bundle/YouCompleteMe
python3 install.py --all
如报错可参考:解决方案
完整安装步骤参考安装步骤