Each week share a cool VIM editor tip here. Keep it short and simple and we can all be better developers as we improve our in-editor skills. I suggest everyone who uses VIM to participate to keep us all continually in the process of self improvement.
My first tip. In normal mode (hit ESC to get into it) enter the following to auto-indent your current buffers code.