标签:vim clang_complete c++
ubuntu 14.04下安装vim的C++补全插件clang_complete
1.安装clang
apt-get install clang
2.安装libclang
apt-get install libclang-dev
3.安装clang_complete插件
git clone https://github.com/Rip-Rip/clang_complete
cd clang_complete
make install
4.修改.vimrc
let g:clang_complete_copen=1
let g:clang_periodic_quickfix=1
let g:clang_snippets=1
let g:clang_close_preview=1
let g:clang_use_library=1
let g:clang_user_options=‘-std=c++11‘
let g:neocomplcache_enable_at_startup = 1
let g:clang_library_path=‘/usr/lib/llvm-3.4/lib/‘
5.测试
#include <vector> int main() { std:://这个地方会出现提示,再输入v就出现vector的选项 }
ubuntu 14.04下安装clang_complete,布布扣,bubuko.com
标签:vim clang_complete c++
原文地址:http://blog.csdn.net/moxiaopeng/article/details/37740311