So after playing around with omnicpp, gccsense and clang_complete I couldn't get any of them to work. So I apt-get purge vim-*
and tried again to install clang_complete, but without success.
Here's what I do:
Download
clang_complete.vmb
, move it to my fresh, clean.vim
dir and executevim clang_complete.vmb -c 'so %' -c 'q'
.Paste this into my .vimrc:
syntax on set number filetype plugin on let g:clang_user_options='|| exit 0' let g:clang_complete_auto = 1 let g:clang_complete_copen = 1
Create a typical example
#include <iostream> #include <string> int main() { std:: (I get: User defined pattern not found) }
Is there anything else I need to do/install to get it working? And silly question I've heard about Clang, do I need to apt-get install
it?