nelstrom / vim-textobj-rubyblock

A custom text object for selecting ruby blocks.
http://www.vim.org/scripts/script.php?script_id=3382
331 stars 21 forks source link

rubyblock depends on matchit.vim #6

Open nelstrom opened 13 years ago

nelstrom commented 13 years ago

If matchit.vim is not enabled, then rubyblock will fail.

Remove this dependency.

docwhat commented 12 years ago

Don't you mean it depends on ruby matchit? Since matchit is included in vim since version 6.0...

nelstrom commented 12 years ago

matchit.vim is included in the default Vim distro, but it's not enabled. Rubyblock depends on matchit.vim being enabled.

Also, matchit.vim is now able to jump between ruby keywords. Presumably, this wasn't the case when ruby-matchit was authored, but now that matchit.vim supports this functionality, I see no reason to use ruby matchit.

docwhat commented 12 years ago

Huh. I have vim 7.3.692 but your vim plugin required the ruby-matchit to work. vir was only selecting the end statement, not the whole block, without ruby-matchit. I take it that was a bug and I should file that separately?