unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* #1: How to do vi's 'g/foo/s/x/y/'  #2: + with a Q-R "yes/no?"
@ 2007-04-07 17:51 David Combs
  2007-04-08 10:28 ` Sam Peterson
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: David Combs @ 2007-04-07 17:51 UTC (permalink / raw)
  To: help-gnu-emacs

(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

^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <mailman.1852.1176105200.7795.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2007-04-23  3:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-07 17:51 #1: How to do vi's 'g/foo/s/x/y/' #2: + with a Q-R "yes/no?" David Combs
2007-04-08 10:28 ` Sam Peterson
2007-04-08 18:48   ` Markus Triska
2007-04-08 19:07 ` Peter Dyballa
2007-04-09  7:48 ` Drew Adams
     [not found] <mailman.1852.1176105200.7795.help-gnu-emacs@gnu.org>
2007-04-23  3:32 ` David Combs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).