sponsor Vim development Vim logo Vim Book Ad

basic Tip #620: getting to know the function prototypes

 tip karma   Rating 81/30, Viewed by 2247 

Read and edit this tip on the Vim tip wiki. The wiki may have a more recent version of this tip.

created:   December 15, 2003 5:33      complexity:   basic
author:   Sunil Parolia      as of Vim:   6.0

Use "[ i" for display of function prototypes at bottom or "[ ctl i" for jumping to the file containing the prototype. also can use " I" for listing of proto.

 rate this tip  Life Changing Helpful Unfulfilling 

<< HowTo make a keymap | Vim as a syntax highlighting engine for web publishing >>

Additional Notes

lpenz@terra.com.br, December 15, 2003 18:07
ctrl+i = TAB
So, "[ <TAB>" goes to the function prototype also, and IMHO is easier to remember.
Anonymous, December 30, 2003 20:08
but what can I do if the prototype is longer than 1 line? Can help?
Anonymous, January 2, 2004 3:26
Its not working. I think you require a ctags file for doing this operation. Otherwise how VIM will
know about the prototypes and definations. ANd "I" (capital I) is required to insert at the begining
of a line NOT for listing of proto.

Manas Behera
sunil parolia, January 5, 2004 23:55
sorry for the typo "I" (capital I) should be replaced with "[ I" wich list's the prototypes and places of use of that function in our file and also in other file in search path. i dont know how to make it search for use of that function in our file only instead of searching in path. any answer ??
If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
Sponsored by Web Concept Group Inc. SourceForge.net Logo