The problem I have is that I just wrote a bunch of shit in vi (which has not been auto-indenting for me, though I should probably check my .vimrc or whatever), and now I'm editing it using TextMate, and the formatting is all screwed up.
gg=G
If not (or if that doesn't work right), you can use visual mode to quickly change indents on large sections at once:Select a set of lines using:
V
and then press (for example): 2>
to add 2 tabs to the beginning of the selected lines.Or to go the other way (remove 2 tabs):
2<