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.

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

2 Answers 2

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.