2015年5月18日 星期一

use vundle to install youcompleteme in vim

git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle

vi .vimrc

set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'Valloric/YouCompleteMe'


run :BundleInstall


 cd ~/.vim/bundle/YouCompleteMe
  ./install.sh --clang-completer

 copy  
https://github.com/Valloric/ycmd/blob/master/cpp/ycm/.ycm_extra_conf.py

set .vimrc
let g:ycm_global_ycm_extra_conf = '~/.ycm_extra_conf.py'