eldruida (name??) wrote:
> 1- Well, I do tags from /usr/include/stdio.h. with option --c-kind=+p
>
> 2- Then, I load them into vim and run omni.
>
> 3- When, I run omni with C-x C-o after function to view function
> prototypes, it doesn't run.
>
> 4- But, if I execute omni with an function, and which its name begin
> with identical words than other function, but less words, it show the
> prototype.
>
> Here a example:
>
> //--- If I search prototype of putc, omni can show:
>
> C-x C-o of putc
>
> putc p extern int @@ (int __c, FILE *__stream); -
> /usr/inclu
> putc_unlocked p extern int @@ (int __c, FILE *__stream); -
> /usr/inclu}
> putchar p extern int @@ (int __c); - /usr/include/stdio.h
> putchar_unlocked p extern int @@ (int __c); - /usr/include/stdio.h
>
>
> //--- But if I search prototype of printf, which is a function that
> hasn't matches, omni don't show any popup:
>
> It says, in the bottom: -- Omni completion (^O^N^P) The only match.
>
>
> This problem is a bug?.
Try:
:set completeopt+=menuone
--
Scientists decoded the first message from an alien civilization:
SIMPLY SEND 6 TIMES 10 TO THE 50 ATOMS OF HYDROGEN TO THE STAR
SYSTEM AT THE TOP OF THE LIST, CROSS OFF THAT STAR SYSTEM, THEN PUT
YOUR STAR SYSTEM AT THE BOTTOM OF THE LIST AND SEND IT TO 100 OTHER
STAR SYSTEMS. WITHIN ONE TENTH GALACTIC ROTATION YOU WILL RECEIVE
ENOUGH HYDROGREN TO POWER YOUR CIVILIZATION UNTIL ENTROPY REACHES ITS
MAXIMUM! IT REALLY WORKS!
/// 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://ICCF-Holland.org ///