Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!cica!iuvax!bobmon From: bobmon@iuvax.cs.indiana.edu (RAMontante) Newsgroups: comp.sys.ibm.pc Subject: Re: Looking for vi Message-ID: <33785@iuvax.cs.indiana.edu> Date: 24 Jan 90 03:23:29 GMT Reply-To: bobmon@iuvax.cs.indiana.edu (RAMontante) Organization: malkaryotic Lines: 18 I sez: -commands. I often want to do things like ":7,38g/emacs/s//vi/g" but all brown@vidiot.UUCP (Vidiot) <63@vidiot.UUCP> : -Correct syntax is: :7,38s/emacs/vi/g - -Try that and see if it works any better. Well whattaya know... it works in stevie, and in the Ultrix vi! I've always used the syntax I showed above, on VAXen, and that worked so I never tried alternatives. (My form is defensible: it's documented to say "search lines 7 thru 38 for the string /emacs/, and replace that string on all matching lines with the string /vi/ as often as it appears within each line".) Thanx, Vid!