Syntax hints at Vim

I have been using Vim for a long time, and although full code execution (omni, dictionary, etc.) works fine, I missed one thing.

The syntax is a hint, so basically I would like to know what arguments the function takes, and not look for it on the Internet. I would like to have it somewhere in Vim, preferably in a field above the current line or something like that.

Is there any way to achieve this, I mainly work with PHP, Python and C ++, so I need this for these languages.

Edit: I already have ctags installed, but from what I could say, I didn’t provide a syntax hint, tried it using standard PHP functions, I don’t know if I missed something.

There is also the possibility of using snipMate and entering all the standard library functions, but this work may seem like someone has already done this (and yes, there is something like ultiSnips, but this is inferior to snipMate)

+5
source share
2 answers

I think the echofunc plugin does this. When you write code, after clicking the (function, the prototype is displayed in the status bar.

Check out also the srcexpl.vim plugin , which I think does something similar (I don't use it very much).

+2
source

From the way it sounds, I think you're looking set completeopt+=preview. More information can be found at :help completeopt.

+4
source

All Articles