Vim JSDoc、PHPDoc、JavaDoc、RDoc 信息
事情是这样的,
如果您使用过 Aptana、Eclipse 甚至 Microsoft Expression Web 编辑器,那么您会发现它们具有显示提示的气球文本或Intellisense 弹出窗口 /info 内置和自定义对象、方法等。
他们通过 JSDoc、PHPDoc、JavaDoc、RDoc 等获取信息。
我想在 Vim 中获得这些功能,可能实现为全能补全,而且也因为Mac/GVim 也支持气球文本。
Here is the deal,
If you've used Aptana, Eclipse or even Microsoft Expression Web editor, then you've seen that they feature a Balloon Text or Intellisense popup showing hints/info of built-in and custom objects, methods, etc.
They get the info thru JSDoc, PHPDoc, JavaDoc, RDoc, etc.
I'd like to get these feature in Vim, maybe implemented as omnicompletion and also since Mac/GVim supports balloon text, as this as well.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此功能实际上存在,并在每种文件类型的 Omni-completion 中定义。例如,启用 PHP 的全能补全将在弹出窗口中显示补全,并在当前选项卡框架顶部打开的较小缓冲区中显示方法定义。
通过将以下内容添加到您的 .vimrc 来激活它
,然后使用 Cx Co 完成。 (我发现很多人喜欢将其重新映射到 C 空间以模仿 Visual Studio)
有关omnicompletion 的更多信息和链接可以在 http://vim.wikia.com/wiki/Omni_completion
This feature actually exists and is defined in each file type's Omni-completion. For example, enabling PHP's omni-completion will show completions in a popup window as well as the method definition in a smaller buffer which opens at the top of the current tab-frame.
Activate it by adding the following to your .vimrc
And then using C-x C-o for completion. (I find many people like to remap this to C-space to mimic Visual Studio)
More information and links about omnicompletion can be found at http://vim.wikia.com/wiki/Omni_completion