sponsor Vim development Vim logo Vim Book Ad

autoproto.vim : Auto display function parameter in preview

 script karma  Rating 44/26, Downloaded by 3986  Comments, bugs, improvements  Vim wiki

created by
Jochen Baier
 
script type
utility
 
description
The "autoproto" plugin displays the function parameter/prototypes
in the preview window if you type a left parenthesis behind a function name.
With this plugin it is not necessary to memorize large parameter lists.
You do not need to leave insert mode. Typing is almost not affected.
 
install details
* Drop autoproto.vim into your plugin directory.

* The script need a tag file to work:
   - for your project: ":!ctags -R ." (or use the gvim button)
   - for library functions:
     run: "ctags -R -f ~/.vim/systags --c-kinds=+p /usr/include /usr/local/include"
     put  "set tags+=~/.vim/systags" in your .vimrc file.

* Open some *.c file and write for example: "XCreateWindow ("
   (or "XCreateWindow(").
   If the tag exist it will be shown in the preview window.
   Note: only *.c files are supported ! The file must exist.  
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
autoproto.vim 0.06 2006-06-20 7.0 Jochen Baier * Support for functions not ending with new line (-> between of text)
autoproto.vim 0.05 2006-06-07 7.0 Jochen Baier *set noignorecase during tag search: big performance boost if tag do not exist
autoproto.vim 0.04 2006-06-01 7.0 Jochen Baier * Support for nested functions: Redisplay parent prototype if a function was used as a parameter.
* skip numbers
autoproto.vim 0.03 2006-05-23 6.0 Jochen Baier - Display found tag in the first line of the preview window.
- some fixes
autoproto.vim 0.02 2006-05-21 6.0 Jochen Baier upps... small bug
autoproto.vim 0.01 2006-05-21 6.0 Jochen Baier Initial upload
ip used for rating: 3.137.192.3

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.
   
Vim at Github