当然前提是先装好vundle
1 在vimrv中加入Bundle 'Valloric/YouCompleteMe'
2 vim +PluginInstall +qall
3 安装一对底层需要的编译的东西 sudo yum install automake gcc gcc-c++ kernel-devel cmake python-devel
4 cd ~/.vim/bundle/YouCompleteMe
5 ./install.py --clang-completer
6 ./install.py
7 ok
https://github.com/Valloric/YouCompleteMe#full-installation-guide