Spend less time formatting your code with this easy trick!

1
gg=G

That’s it. gg Goes to the top of the file. = tells vim to fix the indentation. G goes to the end of the file.