I have been wondering if Vim has the capability to smart wrap lines of code, so that it keeps the same indentation as the line that it is indenting. I have noticed it on som
:set smartindent :set autoindent
I think you still have to use a return though