% Matching With Vim/Ruby

Doug Kearns dougkearns at gmail.com
Fri May 21 10:04:32 EDT 2010


On Fri, May 21, 2010 at 11:21 PM, Scott LaBounty <slabounty at nexatech.com> wrote:
> All,
>
>
>
> Not sure if this is the right list or not, but I’m trying to get matching to
> work (using %) in vim in a ruby file. For example if I have the following
> code:
>
>
>
> 1.upto(10) do |n|
>
>     puts n
>
> end
>
>
>
> If the cursor is on the “do”, I’d like to hit the “%” key and have it go to
> “end”.

This works 'out of the box' with the b:match_words defined in the
distributed ftplugin.  Is there a particular reason you're redefining
it?

Doug


More information about the vim-ruby-devel mailing list