标签:install 准备 python ffffff code efi org 打开 san
这个补全插件从名字看很腻害了~
1 set nocompatible 2 filetype off 3 set rtp+=~/.vim/bundle/Vundle.vim 4 call vundle#begin() 5 Plugin ‘VundleVim/Vundle.vim‘ 6 Plugin ‘Valloric/YouCompleteMe‘ 7 call vundle#end() 8 filetype plugin indent on
1 tar zxvf clang+llvm-3.7.0-amd64-Ubuntu-14.04..tar.gz 2 cd clang+llvm-3.7.0-amd64-Ubuntu-14.04 3 sudo cp -R * /usr/ 4 sudo ln -sf /usr/bin/clang++ /etc/alternatives/c++ 5 clang --version
编译youcompleteme
1 cd ~/.vim/bundle/YouCompleteMe 2 mkdir build 3 cd build 4 cmake -G "Unix Makefiles" -DUSE_SYSTEM_LIBCLANG=ON . ~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp 5 make ycm_core -j4
配置.ycm_extra_conf.py
1 echo | clang -v -E -x c++ - 2 vim ~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py 3 insert flags: ‘isystem‘, ‘/usr/include/,(将echo结果写入,最后一个不用‘,’)
1 let g:ycm_global_ycm_extra_conf = ‘~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py‘
好咯,安装就到这了,具体的使用就要常用常查了
标签:install 准备 python ffffff code efi org 打开 san
原文地址:http://www.cnblogs.com/mantouRobot/p/6121423.html