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
If I am on "end" and hit %, it would be really neat if vim took me to the
"if." At the least when it is a do/end this seems manageable, i.e.:
(1..5).each do |i|
puts "its been " + i.to_s + " iterations. Can vim do this yet?"
end
I realize ends can map to various things, whereas in most (for fear of
saying all) languages a { always matches a }. But is this possible / is
there a plugin to do this?
--
View this message in context:
http://www.nabble.com/using---%28shift-5%29-for-end-or-do-end-style-blocks-tp24910389p24910389.html
Sent from the Vim - General mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---