So I have a very basic C program to try and test clang_complete
:
#include <stdio.h>
#include <stdlib.h>
struct xampl {
int x;
};
int main()
{
struct xampl structure;
struct xampl *ptr1;
}
However, every time I try to do structure. or ptr1->
, the program gives me the error:
User defined completion (
^U^N^P
) Pattern not found.
I tried adding this to my vimrc
:
let g:clang_user_options='|| exit 0' --
(from this thread) but, the completion still doesn't work.
Is there something I am missing or not understanding here?