Mac安装vim自动补全插件YouCompleteMe:
1. 首先下载需要的几个工具homebrew,vundle,cmake, git。
2. vundle是Vim的插件管理器,安装参见链接https://github.com/gmarik/Vundle.vim
3. cmake是一个跨平台的编译工具,运行命令brew install cmake安装。
现在进入正题:
(1)切换到~/.vim/bundle目录下:`cd ~/.vim/bundle'
(2) 运行命令`git clone --recursive https://github.com/Valloric/YouCompleteMe.git'下载YouCompleteMe源码到~/.vim/bundle目录下.
(3) 然后切换进入YouCompleteMe: cd YouCompleteMe
然后运行编译:./install.sh --clang-completer
到此大功告成!!!