How to Grep and Replace in Neovim/Vim
#Software Development #Neovim #How-To
You can use the Quickfix list in order to search and replace in Vim. You can use a plugin like telescope.nvim
livegrep
or basic vimgrep
.
- Search via
vimgrep
. - Use
C-Q
to open the Quickfix menu - Use
cdo s/<match>/<replacement>/g | update
a. If you want you can addgc
in order to to confirm each replacement