On 2009-08-11, Philip Rhoades wrote: > On 2009-08-11 15:37, Gary Johnson wrote: > > On 2009-08-10, drostin77 wrote: > >> I am coding more and more ruby, and I am missing the ability to hit % and > >> have vim take me to the start/end of the block I am on. > >> > >> I.e. > >> > >> if vimCanDoThis > >> happy = true > >> else > >> happy = false > >> end
> When I do this and the cursor is on the "if": > > - the first "%" puts the cursor on the "else" > - the second "%" puts the cursor on the "end" > - the third "%" puts the cursor back on the "else" > > ie there does not seem to be an option to get back to the "if" from the > "end" . . It works fine for me. I copied your example code into a file named foo.rb and opened it. Typing % caused the cursor to jump from "if" to "else" to "end" and back to "if". For that test I was using vim 7.2.148 on Cygwin with matchit.vim version 1.13.1 (one version older than the latest) and ftplugin/ruby.vim version 1.40 2008/06/29 04:18:43. Regards, Gary --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
