Last Updated: February 25, 2016
·
437
· laplacesdemon

Pretty indent in Vim

Want to fix the indentation of a block of messy code in vim. Pretty easy, and powerful.

First activate the visual mode by shift-V and select the block you want to indent.

Then hit =.

That's it :)