On Tue, Jun 30, 2015, at 20:20, Steve wrote: > If I have typed this (‘|’ is cursor position): > > class Something {|} > > when I press return, I would like to see this > > class Something { > | > } > > I know I can do this with the key sequence <Enter><Esc>O
I've actually done this without using any plugins using a simple mapping: inoremap {<cr> {<cr>}<esc>O The bonus is that you don't have to even type the closing } :) -- Janusz Bossy -- -- You received this message from the "vim_mac" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_mac" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_mac+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.