Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

In GUI style editors, you can generally select multiple lines, press tab a few times to move all the lines across (or shift-tab to go back). I have no idea how to do this in VIM.

I googled around and couldn't find any straight answer to I came here.

share|improve this question
up vote 5 down vote accepted

Use >> to indent, << to unindent. So you could go to the first line and press 5>> to indent the following five lines. Or use V and select lines in visual mode, then > to indent them.

share|improve this answer

Here is some useful information about using vim, too.

share|improve this answer

Your Answer


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.