Vim and indentation with brackets/braces
I use this mapping in combination with AutoClose:
inoremap {<CR> {<CR>}<C-o>O
No special key combination is needed.
I have this line in my ~/.vimrc
:
inoremap <C-Return> <CR><CR><C-o>k<Tab>
I use this mapping in combination with AutoClose:
inoremap {<CR> {<CR>}<C-o>O
No special key combination is needed.
I have this line in my ~/.vimrc
:
inoremap <C-Return> <CR><CR><C-o>k<Tab>