打开~/.vimrc添加如下内容
set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'VundleVim/Vundle.vim' Plugin 'ycm-core/YouCompleteMe' call vundle#end()
- 方法一
直接在vim的normal模式中输入PluginInstall,安装完成会打开双编辑器并提示done,但是速度很慢很可能断开。
- 方法二
下载源码至~/.vim/bundle
git clone git clone https://github.com/ycm-core/YouCompleteMe.git git submodule update --init --recursive3. 安装 CMake、MacVim 和 Python 3
brew install cmake python go nodejs brew install vim cd ~/.vim/bundle/YouCompleteMe python3 install.py --all
如报错可参考:解决方案
完整安装步骤参考安装步骤



