Format Code in Vim

Format Code in Vim

Spend less time formatting your code with this easy trick!

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.