Skip to content

Instantly share code, notes, and snippets.

@ChengLong
Last active May 22, 2024 06:50
Show Gist options
  • Save ChengLong/6208775 to your computer and use it in GitHub Desktop.
Save ChengLong/6208775 to your computer and use it in GitHub Desktop.
Install YouCompleteMe on Mac OS X

Below are the instructions for installing YouCompleteMe on Mac OS X

Prerequisites

Instructions

  1. brew install cmake
  2. cd ~/.vim/bundle
  3. git clone https://github.com/Valloric/YouCompleteMe.git
  4. mkdir YouCompleteMe/ycmbuild
  5. cd YouCompleteMe/ycmbuild
  6. cmake -G "Unix Makefiles" . ~/.vim/bundle/YouCompleteMe/cpp/
  7. make ycm_core
  8. Restart Vim
  9. Enjoy
@puremourning
Copy link

This is not working on Mac M1 11.6 (also with tabnine/YouCompleteMe). Finally below command worked.
python3 install.py --cmake-path=/opt/homebrew/bin/cmake --system-libclang --all

M1 is now supported by ycm. See the official instructions in the README.

The above instructions are incorrect and outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment