Vim:显示PHP的功能提示或签名 [英] Vim: Show function hints or signature for PHP

查看:155
本文介绍了Vim:显示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.

这在许多IDE中都很常见,我认为有人可以为VIM做到这一点.

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

示例:在插入模式下,输入str_replace时,在vim屏幕上的某处会显示"mixed str_replace(mixed $ search,mixed $ replace,mixed $ subject [,int& $ count])"

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 ] )"

有人知道这个好的插件吗?如果不是PHP,那么也许可以使用正确的函数定义文件将其移植到php.

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.

谢谢!

推荐答案

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

这篇关于Vim:显示PHP的功能提示或签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆