Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to select a current block recursively .

for example i have this ruby code

1 def function
2   if true
3     if also_true
4       do this
5     end
6   end
7 end

for example im in the 4th line now. and when i press something, the visual block select the line 3-5 and if i press it again, it will select 2-6, and if i press it again it will select 1-7

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

It's possible natively in C, C++ and other languages using brackets to delimit "blocks" (with va{) but not in Ruby.

You'll need a plugin for that.

share|improve this answer
add comment

There is matchit plugin for this kind of job.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.