How do I get vim to place the cursor within the braces starting on a new line, ie with | denoting the cursor position :
class { | }
right now
Put this in your .vimrc :
imap k
Assuming autoindent and smartindent are set correctly, typing Ctrl + Return between braces will put your cursor where you want it to be.
autoindent
smartindent
Ctrl + Return