Global find/replace in Nvim

Posted on December 31, 2024 by Riccardo

Fill the quickfix list with something like vim-grepper and:

cdo %s/BEFORE/AFTER/gc

cdo executes what comes after for each entry in the quickfix list (or use cfdo to run once per file).

PinkLetter

It's one of the selected few I follow every week – Mateusz

Tired of RELEARNING webdev stuff?

  • A 100+ page book with the best links I curated over the years
  • An email once a week full of timeless software wisdom
  • Your recommended weekly dose of pink
  • Try before you buy? Check the archives.