hanki.dev

vim: find and replace

  1. Search for a word: /foo
  2. Change the next match: type cgn, write your replacement, then press <Esc>
  3. Repeat or skip:
    • Press . to repeat the change on the next match
    • Press n to skip to the next match without changing it

✌🏼 Like my content? Subscribe via RSS feed.