You can create a custom map. You probably want to go to the right of the closing parenthesis while you are in insert mode. Just add to this .vimrc this mapping:
:inoremap <F8> <ESC>f)a
Thus, while you are in insert mode , and you have finished writing inside the brackets, F8 will cause your cursor to have the right to close the parenthesis. If you want, you can change the displayed key using a different key instead of F8 .
As Kent said in a comment, a more general solution would be to:
:inoremap <F8> <ESC>%%a
What will work in brackets [ and { .
Atropo
source share