vim7 bug, suggestion and general question

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

vim7 bug, suggestion and general question

udou
hi,

i have some questions about vim7/vim:

- in "help ft-c-omni" i can read "CTRL-X CTRL-O" shouldn´t this be
"CTRL-N CTRL-P" ? "new-omni-completion" section too.

-how about display line numbers in the completion popup menu ?
this would increase the speed to insert the desired string. (by typing
the line number).

- i wonder how to display function prototype without leaving the insert
mode (for example after writing the function name.) atm afaik ctags
only provides the first line of the function declartion. (the function
prototype is cut on the first new line) but usually the function
prototype needs 2-6 lines to display all variables. so display the
function prototype using ctags do not work (good). using the preview
window i need to leave insert mode go back to the function name to
display it.... so do i miss a way to display long functions prototypes ?
Is ready script to use preview window in insert mode available ?


regards jochen


-




Reply | Threaded
Open this post in threaded view
|

Re: vim7 bug, suggestion and general question

Bram Moolenaar

Jochen Udou wrote:

> i have some questions about vim7/vim:
>
> - in "help ft-c-omni" i can read "CTRL-X CTRL-O" shouldn't this be
> "CTRL-N CTRL-P" ? "new-omni-completion" section too.

You really need to use CTRL-X CTRL-O to get omni completion.

> -how about display line numbers in the completion popup menu ?
> this would increase the speed to insert the desired string. (by typing
> the line number).

When typing a number this may also mean you want to insert this in the
text.  For example, after completing "myfunc(" it's not ususual to type
"1" to get "myfunc(1".

> - i wonder how to display function prototype without leaving the insert
> mode (for example after writing the function name.) atm afaik ctags
> only provides the first line of the function declartion. (the function
> prototype is cut on the first new line) but usually the function
> prototype needs 2-6 lines to display all variables. so display the
> function prototype using ctags do not work (good). using the preview
> window i need to leave insert mode go back to the function name to
> display it.... so do i miss a way to display long functions prototypes ?
> Is ready script to use preview window in insert mode available ?

You can give an extra argument to ctags to have it store the function
prototype in the tags file.  ctags --fields=+S  should do it.  The info
appears in the preview window then.

--
I AM THANKFUL...
...for the piles of laundry and ironing because it means I
have plenty of clothes to wear.

 /// Bram Moolenaar -- [hidden email] -- 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         ///