O'Reilly logo

Mastering Vim by Ruslan Osipov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installation

First, make sure that you have cmake and llvm installed, since YouCompleteMe needs to be compiled:

$ sudo apt-get install cmake llvm
For Windows, you can get cmake from https://cmake.org/download and llvm from https://releases.llvm.org/download.htmlYouCompleteMe requires Vim to be compiled with +python. You can check whether your Vim was compiled with Python support by running vim --version | grep python. If you see -python, you'll have to recompile your Vim with Python support.

If you're using vim-plug, add the following to .vimrc:

let g:plug_timeout = 300  " Increase vim-plug timeout for YouCompleteMe.Plug 'Valloric/YouCompleteMe', { 'do': './install.py' }

Save the file and execute it:

:source $MYVIMRC | PlugInstall ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required