gg=G

"=" is the indent command and it can takes motions. So "gg" means start at the beginning of the file and "G" means finish at the end.

Dayne Dayne (57)
0

You probably already know how to use vim's basic undo and redo features. For a quick refresher, read this short tutorial on how to use vim redo and undo.