Search this site


Metadata

Articles

Projects

Presentations

vim autoindenting

My hatred for other people's indenting habbits has now been calmed by the awesomeness that is vim. The command, =, will let you reindent the current line (or the whole file, or whatever) to the settings you use in vim already.
So, instead of dealing with people being dumb and using spaces for *everything* this magical keystroke series will fix my woes:
1G=G
This will cause reindentation of every line in the file you are editing.

Woot.