You might find ^ more useful than 0 for indented code as it takes you to the beginning of the text on the line (like the regexp).
I also find that selecting large blocks of text then using the = command to autoindent everything is exceedingly useful.
You might find ^ more useful than 0 for indented code as it takes you to the beginning of the text on the line (like the regexp).