Markus Löning

Software Engineering & Machine Learning

Search and replace in multiple files using vim

Posted at Dec 24, 2024 09:35:15 — Last modified at Mar 14, 2025 12:06:49

I’m using Neovim with AstroNvim, and the key maps below will be different depending on your setup. You can find my configuration here.

To find and replace a string in multiple files, you can use this workflow:

To open the quickfix list, type: <leader>xq, or using Trouble: <leader>xQ.

Also check out these blog posts: