Vim:显示 PHP 的函数提示或签名

发布于 2024-09-08 21:45:45 字数 315 浏览 2 评论 0原文

我已经完成了漂亮的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

各自安好 2024-09-15 21:45:45

您可以使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文