normal·mode
~ / search / search-motionlesson 2/7

Search as a motion: d/ c/ d?

Any search can end an operator, even several lines away.

3 drills

  1. Delete up to a match: Delete from the cursor up to the target text, across the line break, with d/.
  2. Change up to a match: Replace the text from the cursor up to the target with the new text, using c/.
  3. Delete backwards with d?: Delete from the target back to the cursor with d?. The character under the cursor stays.

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