Vim Recall繁體中文

Jump to a matching delimiter or directive

%

Example

Normal 0 / 1
(one + two) tail
Cursor on line 1, column 1

Jump to a matching delimiter or directive.

Before & after
Before
(one + two) tail
Cursor on line 1, column 1
After
(one + two) tail
Cursor on line 1, column 11

Start in Normal mode.

Details & Vim help

Example replayed in Vim

When the cursor is on or before a supported token on the current line, % jumps to its match. This includes parentheses, brackets, braces, C comments and conditional directives. The 'matchpairs' option controls the delimiter pairs.