PracticalVim Tip5 - yszheda/wiki GitHub Wiki

Tip 5: Find and Replace by Hand

Return to the top: <>

  • `*`: executes a search for the word under the cursor at the moment.
  • `cw`: deletes to the end of the word and then drops into Insert mode.
Example: assume that we want to replace "content" in the first and third line with "copy" and watch each step.

References:

⚠️ **GitHub.com Fallback** ⚠️