Vim: Show function hints or signature for PHP
I've got my nice PHP syntax highlighting all set up and it looks great. What I need now is the ability to show built-in function signatures or hints while typing.
This is so common in so many IDEs, I would think somebody has a plugin to do this for VIM.
Example: While in insert mode, and typing str_replace, somewhere on the vim screen would say "mixed str_replace ( mixed $search , mixed $replace , mixed $subject [, int &$count ] )"
Does anyone know of a good plugin for this? If not for PHP, then maybe something that can be ported to php using the right function definitions file.
Than开发者_Python百科ks!
You can use the TagList plugin. One of it's features is showing function signatures in the status bar. See also this tutorial. TagList uses exuberant-ctags to parse your PHP files. Have a look at this article I wrote to see how you can tweak/patch exuberant-ctags to make it work a little better with PHP5.
精彩评论