normal·mode
~ / find / matching-pairslesson 2/5

Matching pairs: %, [( and [{

Bounce between matching brackets, or jump out to the enclosing one.

4 drills

  1. Bounce to the partner: The cursor is on a bracket. Jump to its partner with %.
  2. % looks ahead: The cursor is before the brackets. Press % once: it finds the next bracket on the line and jumps to that bracket's partner.
  3. Replace a whole group with c%: The cursor is on an opening bracket. Replace the whole bracketed group, brackets included, with the name shown in the target, using c%.
  4. Out to the enclosing bracket: Jump to the bracket that encloses the cursor: [{ or [( back to the opener, ]} or ]) forward to the closer.

The drill editor loads in your browser.

outside the editor the page is in normal mode: ? keymaps · / find · : commandsfound this useful? ☕ support it ·credits · source · not affiliated with Vim or Neovim