Below are the instructions for installing YouCompleteMe on Mac OS X
brew install cmake
cd ~/.vim/bundle
git clone https://github.com/Valloric/YouCompleteMe.git
mkdir YouCompleteMe/ycmbuild
cd YouCompleteMe/ycmbuild
cmake -G "Unix Makefiles" . ~/.vim/bundle/YouCompleteMe/cpp/
make ycm_core
- Restart Vim
- Enjoy
you need 3.5,3.6 between 3 and 4.
3.5
cd ~/.vim/bundle/YouCompleteMe
3.6
git submodule update --init --recursive