Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vim JSDoc, PHPDoc, JavaDoc, RDoc info

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.

like image 472
Jose Elera Avatar asked Nov 04 '22 23:11

Jose Elera


1 Answers

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

filetype plugin on
au FileType php set omnifunc=phpcomplete#CompletePHP

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

like image 193
sleepynate Avatar answered Nov 10 '22 15:11

sleepynate