mlsamuelson.com

Indent in Vim

V
# select lines to indent using j or k
=

auto-magically indents selected code

5>>

indents 5 lines once, starting with the line the cursor is on

V
# select lines to indent using j or k
3<

unindent the selected code 3 times

No comments

Add your comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

Find Me Around

User login