Xi Juanjie wrote:
> I want to use the wonderful omnicompletion to write some c applications.
> But I happened to find, if I typedefed a structure, then the
> omnicompletion won't work.
>
> eg:
> I defined this in my header file.
> struct Event_Name
> {
> unsigned char name[MAX_NAME_LEN];
> struct Event_Name * next;
> };
> typedef struct Event_Name ENAME;
>
> then I type
> struct Event_Name FooBar;
> FooBar.ctrl-x ctrl-o
> in this case, omnicompletion works fine.
>
> but when I use
> ENAME FooBar1;
> FooBar1.ctrl-x ctrl-o
> omnicompletion will find nothing to complete.
>
> Anyone has clues?
Did you patch ctags to include the typedef information?
See ":help ft-c-omni".
I'm afraid Darren still didn't release a new version of ctags...
--
hundred-and-one symptoms of being an internet addict:
267. You get an extra phone line so you can get phone calls.
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://www.ICCF.nl ///