I am a new vim user and I try to play around a bit. I am trying to have an efficient way to code a block with figure brackets :
{
blabla;
....
blabla;
}
So the first thing I did is put the following in my .vimrc to get the opening and closing bracket when I write a opening bracket :
noremap <silent> <C-S> :update<CR>
vnoremap <silent> <C-S> <C-C>:update<CR>
inoremap <silent> <C-S> <C-O>:update<CR>
And to start writing within the brackets, I then hit : "i" "enter" "enter" "esc" "ciw"
Seems a bit tedious, what do you think?