top | item 31293135

(no title)

scooble | 3 years ago

> multi-file find/replace

This is something I’ve found very easy in vim with bufdo , windo, or populating the quickfix list (or args list) and using cfdo/cdo or argdo to be really specific about where the replace should happen (e.g. replace FOO with BAR only on lines containing STRING or in files containing STRING).

discuss

order

infinitezest|3 years ago

I've tried a lot of multiple file, find and replace solutions, and spectre is the one that seems to make the most sense to me. There's not much to it but it's very effective. Regex works the way that I expect and it's easy to toggle options on and off.

https://github.com/nvim-pack/nvim-spectre

ossusermivami|3 years ago

I have just installed it and it looks really neat, i usually switch back and forth between neovim and emacs (depending of the type of project), and use deadgrep and deadgrep-edit-mode for that but may as well use sometime nvim-spectre..