Reindent um arquivo inteiro

ggVG =

gg  Goes to the first line
V
Enters visual mode
G
Goes to last line
= Reindents current selection