Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How I can selected the lines with the same indent?

For 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?

share|improve this question
up vote 2 down vote accepted

Take a look at vim-indent-object.

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .