Enter insert mode indented in VIM

An answer to this question on Stack Overflow indicates that:

'cc' will replace the contents of the current line and enter insert mode at the correct indentation


O and o will "open" a line above or below the current line, and at the correct indentation level.