3

In vim, search backwards for matching braces/parens

view full story
linux-howto

http://unix.stackexchange.com – As most of you probably know, you can use % to search forwards on the line to find the next paired brace/bracket/paren and move to its matched partner: |a|rray[index] = value; " |e| is the cursor; hit %: array[index|]| = value; I am hoping there is a similar key that searches backwards on the line, e.g.: array[index] = value|;| " |;| is the cursor again, hit the key I'm looking for: array|[|index] = value; Most vim commands have both a backwards and forwards, so it seems this should to. Does it not have a partner because once it's on a paired character they would act the same? (HowTos)