Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ucsd!rutgers!rochester!uhura.cc.rochester.edu!sunybcs!sbcs!bnlux0!bnl-max!como From: como@bnl-max (Andrew T. Como) Newsgroups: comp.editors Subject: question about "vi" Message-ID: <740@bnlux0.bnl.gov> Date: 10 Feb 89 20:45:47 GMT Sender: news@bnlux0.bnl.gov Reply-To: como@bnl-max (Andrew T. Como) Organization: Brookhaven National Lab, Upton N.Y. Lines: 24 I have a question about vi. Here are five lines: The cow jumped over the moon The cow jumped over the moon The cow jumped over the moon The cow jumped over the moon The cow jumped over the moon How can I substitute /cow/dog only on lines 1 and 5 I guess what I'm asking is if I search for cow - /cow/ now substitute - s/cow/dog/ skip the next 3 lines n n n ...how can I re-issue the same substitution when I come to line 5 Thanks in advance for the help como@bnlux0.bnl.gov BITNET: como@bnlux0.BITNET UUCP: ....philabs!sbcs!bnl!como