vimjanusri

Fix hover "ri" in Janus, Vim setup?


I have installed Janus to improve my vim. All works fine, except for the Ri documentation, that opens on hovering a keyword. On my installation it shows the output of "ri --help" instead of the documentation of the keyword.

I have found a way to disable it, but I'd rather just fix it. I am using gvim on Ubuntu 11.10.

What is the name of the plugin or script that offers these tooltips?

Could it have anything to do with RVM being active?


Solution

  • The problem is a bug in the ruby.vim plugin. That triggers ri with a wrong argument.

    There is a bug report for this.

    Solving is easy: edit file .../ftplugin/ruby.vim and change line 194: the -f argument should not be simple, but either bs or ansi. I had success with bs.