Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!ll-xn!mit-eddie!bbn!rochester!udel!burdvax!psuvax1!gondor.cs.psu.edu!schwartz From: schwartz@gondor.cs.psu.edu (Scott Schwartz) Newsgroups: comp.editors Subject: Re: Query-replace on VI Message-ID: <3536@psuvax1.psu.edu> Date: 4 May 88 19:47:55 GMT References: <2587@geac.UUCP> <27909@yale-celray.yale.UUCP> <86@skep2.ATT.COM> <393@aiva.ed.ac.uk> Sender: netnews@psuvax1.psu.edu Reply-To: schwartz@gondor.cs.psu.edu (Scott Schwartz) Organization: Penn State University Lines: 12 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? Try this: use "/from" to find your query use ":s/from/to/" to replace it then repeatedly use "/" to jump the the next instance of the from pattern, and ":s" to change it. -- Scott Schwartz schwartz@gondor.cs.psu.edu schwartz@psuvaxg.bitnet