all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.