🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #3116

Re: Query-replace on VI

#3116
From: Greg Limes
Date: Thu, 05 May 1988 22:22
19 lines
1200 bytes
In article <393@aiva.ed.ac.uk> ken@uk.ac.ed.aiva (Ken Johnson,E32 SB x212E) writes:
>somebody responds to ...
>>somebody asks
>>>  Does anyone know if VI has the query-replace function?  
>
>>2)	:g/foo/s//BAR/gc		### works in ex-mode
>
>Works, but it is not a query-replace; it is a global replace.
>As far as I can see there is no way to do a query-replace in `vi',
>but if that is so it's a serious omission.

Ken, look at the command more carefully. That trailing "c" tells vi to
ask the user about each replacement. Sounds amazingly like how EMACS
handles "query-replace".

Yes, I would like to get more people using EMACS ... but not by claiming
that VI lacks such an important feature.
-- 
   Greg Limes [limes@sun.com]			Illigitimi Non Carborundum
Technical Details
Message-ID: <52205@sun.uucp>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bbn!mit-eddie!ll-xn!ames!oliveb!sun!limes
References: <2587@geac.UUCP> <27909@yale-celray.yale.UUCP> <86@skep2.ATT.COM> <393@aiva.ed.ac.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bbn!mit-eddie!ll-xn!ames!oliveb!sun!limes
From: limes@sun.uucp (Greg Limes)
Newsgroups: comp.editors
Subject: Re: Query-replace on VI
Message-ID: <52205@sun.uucp>
Date: 5 May 88 22:22:17 GMT
References: <2587@geac.UUCP> <27909@yale-celray.yale.UUCP> <86@skep2.ATT.COM> <393@aiva.ed.ac.uk>
Reply-To: limes@sun.UUCP (Greg Limes)
Organization: Sun Microsystems, Mountain View
Lines: 19