Article View: comp.editors
Article #3113Re: Query-replace on VI
From: Scott Schwartz
Date: Wed, 04 May 1988 19:47
Date: Wed, 04 May 1988 19:47
13 lines
955 bytes
955 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? 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
Technical Details
Message-ID:
<3536@psuvax1.psu.edu>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-tis!ames!ll-xn!mit-eddie!bbn!rochester!udel!burdvax!psuvax1!gondor.cs.psu.edu!schwartzReferences:
<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!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