[Ruby] ctrl+h ri like TextMate but for vi

Sean Blakey pythonista at gmail.com
Fri May 18 07:47:17 PDT 2007


On 5/18/07, Mike Mondragon <mikemondragon at gmail.com> wrote:
> Does anyone know how to make vim invoke ri on the word of focus in a
> vi session?  TextMate has the same feature of ctrl+h on the current
> word of focus in its editor and that brings up ri results on the word
> in a small window.
>
> Thanks
> Mike

You can replace vim's "man" functionality on K with ri.

set keywordprg=ri

Then when you press K with the cursor over a word, vim will display
the output of ri for that word. See "help K" for more information.

-- 
Sean Blakey


More information about the Ruby mailing list