Re: showing C declarations

2006-04-25 Thread Charles E Campbell Jr

[EMAIL PROTECTED] wrote:


Is there any vim plugin that shows a function declaration if I type the
function name? For example, if I type "memset(" it should show the
memset function declaration (at least its type of arguments).
 



There's the hints file created by flist.  See 
http://mysite.verizon.net/astronaut/src/index.html ;

to use it

flist -h *.c

which will create a "hints" file from the C source.  You'll need to 
source hints in.  It then will

trigger on   funcname(   and produce a message showing a prototype.

Regards,
Chip Campbell



Re: showing C declarations

2006-04-25 Thread malahal
I know the 'K' thing. It only works if there is a man page. Also, you
need to go to normal mode from insert mode (C-O will help a little).
More over, I like it show any function declaration from my own header
files. I really want a file type plugin/script that does this.

Thank you for your responses.

Thanks, Malahal.

Yakov Lerner [EMAIL PROTECTED] wrote:
> [EMAIL PROTECTED] wrote:
> > > Is there any vim plugin that shows a function declaration if I type the
> > > function name? For example, if I type "memset(" it should show the
> > > memset function declaration (at least its type of arguments).
> 
> I think K command is the closest vim thing to what you ask:
> It opens manpage for memset if your cursor is on 'memset('
> and you press K.
> 
> :help K
> 
> I know it works in linux/unix/cygwin.l I'm not sure it works in
> Windows, though.
> 
> Yakov


Re: showing C declarations

2006-04-25 Thread Yakov Lerner
[EMAIL PROTECTED] wrote:
> > Is there any vim plugin that shows a function declaration if I type the
> > function name? For example, if I type "memset(" it should show the
> > memset function declaration (at least its type of arguments).

I think K command is the closest vim thing to what you ask:
It opens manpage for memset if your cursor is on 'memset('
and you press K.

:help K

I know it works in linux/unix/cygwin.l I'm not sure it works in
Windows, though.

Yakov


Re: showing C declarations

2006-04-25 Thread Kyku

[EMAIL PROTECTED] wrote:

Is there any vim plugin that shows a function declaration if I type the
function name? For example, if I type "memset(" it should show the
memset function declaration (at least its type of arguments).

Thanks, Malahal.


  
Hello, as is Vim doesn't seem to support call-tips help. Frankly 
speaking I miss it too. You might want too look at :help 
CursorHold-example for some workaround. Or maybe there's script for 
doing something like this (doesn't seem to be hard to do).