in vim, how I can selected the lines with the same indent, example

if true: 
    line 1
    line 2
    ...
    line n

if the cursor is over line 2, how I can selected from line 1 to line n?

link|improve this question

63% accept rate
feedback

1 Answer

up vote 2 down vote accepted

Take a look at vim-indent-object.

link|improve this answer
amazing! with this I can sort attributes in CSS, in normal mode vii:!sort :) – juanpablo Jan 29 at 20:46
feedback

Your Answer

 
or
required, but never shown

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