Vim: show tooltips or function signatures for PHP

I have good PHP syntax that highlights all the settings and looks great. Now I need the ability to show built-in function signatures or tooltips when typing.

This is so common in many IDEs, I think someone has a plugin to do this for VIM.

Example: in insert mode and typing str_replace, somewhere on the vim screen it will say "mixed str_replace (mixed $ search, mixed $ replace, mixed $ subject [, int & count count])"

Does anyone know a good plugin for this? If not for PHP, then perhaps something can be ported to php using the definition file for the correct functions.

Thanks!

+4
source share
1 answer

You can use the TagList plugin. One of its functions is the display of function signatures in the status bar. See also this tutorial . TagList uses exuberant-ctags to parse your PHP files. Take a look at this article I wrote to find out how you can configure / fix exuberant-ctags to make it work a little better with PHP5.

+6
source

Source: https://habr.com/ru/post/1314896/


All Articles