From Wiki

Vim: Indentation

To indent all your code, you can type 'gg=G'; 'gg' to go to the top of the file and '=G' to indent from the current line to the last. 'G=gg' also works...

Retrieved from http://kozgun.net/wiki/pmwiki.php?n=Vim.Indentation
Page last modified on August 19, 2006, at 02:36 AM