Mail Archives: djgpp/2000/03/15/09:30:13
On Wed, 15 Mar 2000, leon wrote:
> Go to the command prompt, and then to the directory containing
> the files. do 'vim *.*' (w/o the quotes of course), then map a
> key, say, z as ':map z :%s/hello/good by/g<C-v><C-m>:w<C-v><C-
> m>:n<C-v><C-m>Z' along with the mapping ':map Z z'
Seems like it's too complicated in vim. Emacs does this much easier
(IMHO). Or use Perl, as someone suggested, if you are sure that all
files need to be unconditionally edited. For simple non-interactive
replaces, a simple batch file or a shell script which loops through all
the files and edits them with Sed would be enough as well.
- Raw text -