Path: utzoo!mnetor!uunet!mcvax!ukc!its63b!aiva!ken From: ken@aiva.ed.ac.uk (Ken Johnson) Newsgroups: comp.editors Subject: Re: Query-replace on VI Message-ID: <393@aiva.ed.ac.uk> Date: 3 May 88 17:10:57 GMT References: <2587@geac.UUCP> <27909@yale-celray.yale.UUCP> <86@skep2.ATT.COM> Reply-To: ken@uk.ac.ed.aiva (Ken Johnson,E32 SB x212E) Organization: Dept. of AI, Univ. of Edinburgh, UK Lines: 14 >> 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. -- ------------------------------------------------------------------------------ From Ken Johnson, AI Applications Institute, The University, EDINBURGH Phone 031-225 4464 ext 212 Email k.johnson@ed.ac.uk