help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

#1: How to do vi's 'g/foo/s/x/y/' #2: + with a Q-R "yes/no?"


From: David Combs
Subject: #1: How to do vi's 'g/foo/s/x/y/' #2: + with a Q-R "yes/no?"
Date: 7 Apr 2007 13:51:52 -0400

(1) How to do, in gnu-emacs,  vi's 'g/foo/s/x/y/':

That is, "on all lines that contain regexp "foo", change x to y.

And maybe also with option: only the first one on that line, or all of them? 


(2) Same as above, BUT WITH A QUERY-REPLACE-LIKE "YES|NO|!|etc" prompt.

(No, I believe that vi-emulator .el-package does NOT implement
vi's "g/pat/<vi-command>/"  

  (Sure would be nice if it did!)



Thanks so very much!


David




reply via email to

[Prev in Thread] Current Thread [Next in Thread]