Thursday, July 7, 2011

Re: Announcing ri.vim interactive ri mode for Vim

Thank you very much for the feedback. It's very valuable.

I'll look into the other installation method. I thought `gem install`
was
more convenient than finding the plugin on the website and then
downloading it manually. Maybe I'm wrong.

OK I mapped the K command on loading any *.rb file. It's not complete
ft
detection, but maybe close enough for now.

I fixed the problem you had on finding the matches for #inspect. The
plugin wrongly had assumed you were going to attempt to autocomplete
that before submitting.

I tried to deal with the windowing issue you reported. I hope that
0.0.5
fixes that.

Dan


On Jul 7, 4:58 pm, Sung Pae <sung...@gmail.com> wrote:
> On Thu, Jul 7, 2011 at 2:55 PM, Daniel Choi <dhc...@gmail.com> wrote:
>
> > I published a new Vim plugin / Ruby gem, ri.vim. It's an interactive
> > ri mode for Vim. ri is the command line documentation printer for
> > Ruby.
>
> >http://danielchoi.com/software/ri_vim.html
>
> > Beta-tester feedback would be great. Many thanks,
>
> I would personally love to see nice ri integration, so thanks for
> working on this.
>
> Quick observations:
>
> 1. Installation
>
>     Requiring installation via Rubygems, then via `ri_vim_install' is
>     not very nice; if you look at Command-T, you'll see that the project
>     is laid out as a Vim plugin first, then as a ruby library, allowing
>     installation by extracting a tarball into a vim directory of your
>     choice.
>
>     That's the other problem; many vim users use Pathogen and the
>     like, and so wouldn't want to install to ~/.vim/plugin, which is
>     currently hard-coded.
>
> 2. Interface
>
>     It would be really nice if the `K' command didn't just work in the
>     ri buffer, but also in buffers with ft=ruby.
>
>     When you type in `inspect' in the ri buffer, you get `No matches!',
>     while `ri inspect' dutifully returns every match from every class
>     that explicitly defines #inspect. This seems like a good opportunity
>     to present a menu list.
>
>     The <Leader>r shortcut should be configurable.
>
> 3. Window handling
>
>     If your first ri search returns no matches, you are returned to the
>     original buffer with a horizontal split, when there should be none
>     at all.
>
>     The autoclosing behavior of the ri search window is confusing; I can
>     leave Insert mode by pressing Esc or Ctrl-C, and close the window
>     in Normal mode by pressing Esc, but not Ctrl-C. I think it might
>     be nice to never be able to leave insert mode (except for Ctrl-O
>     sequences).
>
>     Invoking <Leader>r while in the ri search window opens a new,
>     duplicate instance of the search window.
>
> Those are my impressions after a few minutes of use. Hope that helps,
> and I am looking forward to the evolution of this plugin!
>
> Cheers,
> guns


--
Sent from vmail. http://danielchoi.com/software/vmail.html

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: