I read the solution answered in https://stackoverflow.com/questions/11037825/vim-get-out-of-parenthesis-brackets-etc. That is nothing but command A
that takes away you in the end of line.
But, my requirement is something different. Suppose I have a file containing -
x = (3+5)/(2+1);
When cursor is on +
I want to move the cursor on /
or first )
, but not on ;
(You can consider 'after the character' instead of 'on the character' ).
nnoremap ,f /[)/]<cr>
?()
or{}
or[]
or<>
(although it is not parenthesis).