Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!rutgers!husc6!panda!enmasse!drilex!maynard!campbell From: campbell@maynard.UUCP (Larry Campbell) Newsgroups: net.unix-wizards Subject: Re: VI(1) vs. the world Message-ID: <360@maynard.UUCP> Date: Tue, 7-Oct-86 08:57:55 EDT Article-I.D.: maynard.360 Posted: Tue Oct 7 08:57:55 1986 Date-Received: Wed, 8-Oct-86 07:09:15 EDT References: <4327@brl-smoke.ARPA> <357@maynard.UUCP> <113@twg-ap.UUCP> Reply-To: campbell@maynard.UUCP (Larry Campbell) Organization: The Boston Software Works Inc., Maynard, MA Lines: 19 Keywords: religion In article <113@twg-ap.UUCP> narayan@twg-ap.UUCP (Narayan Mohanram) writes: >How about :g/old-string/s//new-string/gc for conditional replace. Or is >query replace something different. Well, you're partly right and I'm partly wrong. My V7 documentation is notoriously skimpy on ex commands. The stuff you mention is a *subset* of query replace -- you get two choices, replace or skip. In EMACS, you get to choose (1) replace, (2) skip, (3) replace this and all subsequent occurrences without asking, (4) get out of this command entirely, (5) enter a recursive edit level (with a mode line indication!), allowing you to edit to your heart's content -- "exiting" the editor resumes the query replace where you left off. And as far as I know, vi still doesn't have mutliple buffers and windows... -- Larry Campbell MCI: LCAMPBELL The Boston Software Works, Inc. ARPA: campbell%maynard.uucp@harvard.ARPA 120 Fulton Street, Boston MA 02109 UUCP: {alliant,wjh12}!maynard!campbell (617) 367-6846