Automatic new line and indentation in vim when inside braces?
Just install auto-pairs plugin and be happy.
I ended up just hardcoding this into .vimrc, as follows
" Make it so that a curly brace automatically inserts an indented line
inoremap {<CR> {<CR>}<Esc>O<BS><Tab>
It would seem like the <BS><Tab>
parts aren't necessary, but for some reason it wasn't indenting correctly like the O command usually does, so I had to add it.