I'm using bracket a lot and I'm trying to quickly circle through the bracket in both back and forth with the following mapping:
nnoremap 0 f)
nnoremap 9 F(
Unfortunately, it does not work. Any solution? Thanks.
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this community
%
command. That jumps back and forth between a pair of parens/braces/etc. That doesn't do what you want? Then perhaps you mean that PLUS being able to jump to the next/previous pair...?f)
doesn't go to the next line so what OP is looking for is probably a search like/)
and thenn
andN
. @logbasex you might also be interested in:h ;
and:h ,
. But until you edit the question with more details I'll also be voting to close the question as unclear.