vim autoindenting
Posted Sat, 14 Feb 2004
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:
So, instead of dealing with people being dumb and using spaces for *everything* this magical keystroke series will fix my woes:
1G=GThis will cause reindentation of every line in the file you are editing.
Woot.