Vim:显示 PHP 的函数提示或签名
我已经完成了漂亮的 PHP 语法高亮设置,看起来很棒。我现在需要的是能够在键入时显示内置函数签名或提示。
这在很多 IDE 中都很常见,我认为有人有一个插件可以为 VIM 执行此操作。
示例:在插入模式下,输入 str_replace 时,vim 屏幕上的某处会显示“mixed str_replace (mixed $search,mixed $replace,mixed $subject [, int &$count])”
有谁知道一个好的插件为了这?如果不是 PHP,那么也许可以使用正确的函数定义文件将某些东西移植到 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.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 TagList 插件。它的功能之一是在状态栏中显示函数签名。另请参阅本教程。 TagList 使用 exuberant-ctags 来解析 PHP 文件。看看我写的这篇文章看看如何调整/patch exuberant-ctags 使其在 PHP5 上运行得更好一些。
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.