3 ms·
and i still dont know how to find and replace in vim !!
by sciencesama 5y ago
and i still dont know how to find and replace in vim !!
- colordrops 5y agoWithin 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.
- jonathf 5y ago: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.