Article View: comp.editors
Article #3111Re: Query-replace on VI
From: Laura Sabel
Date: Wed, 04 May 1988 17:21
Date: Wed, 04 May 1988 17:21
15 lines
1011 bytes
1011 bytes
In article <393@aiva.ed.ac.uk> ken@uk.ac.ed.aiva (Ken Johnson,E32 SB x212E) writes: <>> 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. Yes, this works; it's a global query-replace. The 'c' at the end makes vi ask you before each replace. -Laura rutgers!phoenix!lssabel
Technical Details
Message-ID:
<2776@phoenix.Princeton.EDU>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bbn!rochester!udel!princeton!phoenix!lssabelReferences:
<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!rochester!udel!princeton!phoenix!lssabel From: lssabel@phoenix.Princeton.EDU (Laura Sabel) Newsgroups: comp.editors Subject: Re: Query-replace on VI Message-ID: <2776@phoenix.Princeton.EDU> Date: 4 May 88 17:21:46 GMT References: <2587@geac.UUCP> <27909@yale-celray.yale.UUCP> <86@skep2.ATT.COM> <393@aiva.ed.ac.uk> Reply-To: lssabel@phoenix.Princeton.EDU (Laura Sabel) Organization: Princeton University, NJ Lines: 15 Summary: Yes, it works