Nicolás Brailovsky


A modern blog

Vim Tip: Easy Indent

author Posted by: nico on date Jun 14th, 2009 | filed Filed under: Vim, Vim Tips
vim_editor Editing source code means you’ll be doing a lot of indenting and reindenting. There’s an easy way to indent or de-indent a block, using just “<” and “>”.

Using “>” without anyother command will indent that line by itself; use visual mode (Shift + V) to select several lines and indent them in one keystroke. You could also press “v%>” while sitting at the beggining of a block to indent it. The same applies to “<”.

     Add A Comment

trackback Trackback URI | rsscomment Comments RSS