安装方式是Vim的插件管理器Vundle,没用过的话可以看这篇文章。
首先在~/.vimrc加入新插件。
Plugin 'Valloric/YouCompleteMe'
保存重新打开一个Vim在命令模式安装。
:PluginInstall
安装CMake。
brew install CMake
编译安装,如果需要加入C#支持还需要加入--omnisharp-completer参数。
cd ~/.vim/bundle/YouCompleteMe
./install.py --clang-completer
动图来自官网