Search and Replace in Multiple FIles in VIM world (with SED)
VIM, SED, Search and Replace in VIM

VIM does not support search and replace in multiple files, so you need to use the core UNIX command of SED.

How can you use SED to do this type of search? 

Mac has some differences with the original SED, and so sometimes you need to use instead "man sed." You also need to 'escape' the VIM interface, so you need to use an exclamation point, like this :!man sed

In theory a command like this should work, maybe:

 

:!man sed -i 's/old/new/g' logfile*

In practice, this doesn't work. 

| Back

Footerfull