How to jump from do to end of a Ruby block using Vim?

ruby, vim

Solution

The matchit plugin allows matching more than just parentheses and comments. A ruby version can be found here.

Problem

I'm using vim for ruby, php and perl development. There is the shortcut % to jump from the begin of a block (subroutine/function/method/if) to the end and vice versa. For me a % on a do/end tag in ruby doesn't work. How can I do that with vim?

Original source

Related problems