sponsor Vim development Vim logo Vim Book Ad

Hints for C Library Functions : while typing a C function, a prototype is shown (man3 based)

 script karma  Rating 40/19, Downloaded by 3320  Comments, bugs, improvements  Vim wiki

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/man3 directory.

This plugin is truly simple to use: after one has typed a function name, a protype "hint" will be shown.

ex.    printf(

       will result in

          int printf(const char * format, ...)

       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#1825 for man-2 function hints)
(see http://www.drchip.org/astronaut/vim/index.html#HINTSMAN3 for the latest version)

 
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
 

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
hints_man3.vba.gz 2 2007-03-14 7.0 Charles Campbell Improvements to the prototype from manpage extraction scripts yielded some more function prototypes
hints_man3.vba.gz 1 2007-03-13 7.0 Charles Campbell Initial upload
ip used for rating: 142.132.191.50

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github