Hints for C Library Functions : while typing a C function, a prototype is shown (man2 based)
| script karma |
Rating 9/3,
Downloaded by 558 |
| created by |
| Charles Campbell |
| |
| script type |
| ftplugin |
| |
| description |
This script may be manually sourced or, if placed in .vim/ftplugin/c, will be automatically sourced whenever a C file is edited (which is where vimball will put it). The prototypes within it are based on gcc's /usr/share/man/man2 directory.
This plugin is truly simple to use: after one has typed a function name, a protype "hint" will be shown.
ex. select(
will result in
int select(int nfds, fd_set * readfds, fd_set * writefds, fd_set * exceptfds, struct timeval * utimeout)
being echo'd at the bottom of the display.
You'll probably want your cmdheight option set to at least two (ie. set ch=2).
(see vimscript#1826 for man-3 based function hints) |
| |
| install details |
1. Make sure you have and are using an up-to-date version of vimball (see vimscript#1502)
(if you have vim 7.1a or later, you probably can skip this step)
2. vim hints_man3.vba.gz
:so %
:q
|
| |
script versions (upload new version)
Click on the package to download.
|