fedora 20下安装vim的C++补全插件clang_complete

时间:2022-01-24 09:45:54

1.安装clang

yum install clang

2.安装clang_complete插件

git clone https://github.com/Rip-Rip/clang_complete

cd clang_complete

make install

3.改动.vimrc

let g:clang_complete_copen=1

let g:clang_close_preview=1

let g:clang_user_options='-std=c++11'

let g:neocomplcache_enable_at_startup = 1 

set completeopt=longest

4.測试

#include <vector>
int main()
{
std:://这个地方会出现提示,再输入v就出现vector的选项
}