Re:Happy birthday Vim (2020)
by sciencesama on Thursday November 04, 2021 @11:02PM
(#29115001)
and i still dont know how to find and replace in vim !!
[ Parent
| on HN ]
Re:Happy birthday Vim (2020)
by colordrops on Thursday November 04, 2021 @11:25PM
(#29115122)
Within a single file it's not that bad, :%s/<search>/<replace>/gc (with several variations on this)
Now across multiple files, that's a whole different story.. 'm a seasoned vim user and still need to look it up whenever I do it.
:bufdo! %s/<search>/<replace>/gc to multi-buffer search-replace.
But depending on your starting point though, you might need need a vim $(grep -l <filter>) to get all relevant files into buffers.