Stolen from this site. Definitely worth a full read.
<C-t> indent back and forward in insert mode
The normal mode equivalent is
I typically use
== for auto indentation but this comes in handy when you want to be explicit or there isn't any autoindentation
Using the detectindent plugin, indentation is automatically detect indent based on what is already in the file (expandtab, shiftwidth, tabstop settings)
:autocmd BufReadPost * :DetectIndent