Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!dg!mrx!carlson From: carlson@mrx.webo.dg.com (James Carlson) Newsgroups: comp.editors Subject: Re: Doing an nfind in vi (:+,$v/string/a -- the better idea) Keywords: vi nfind Message-ID: <1363@dg.dg.com> Date: 5 Jun 91 20:03:46 GMT References: <1356@dg.dg.com> <3593@wn1.sci.kun.nl> <2803@pdxgate.UUCP> Sender: root@dg.dg.com Reply-To: carlson@mrx.webo.dg.com Organization: Data General Corporation, Westborough, MA Lines: 26 In article <2803@pdxgate.UUCP>, a0cb@.cc.pdx.edu (Chris Bertholf) writes: |> In article <3593@wn1.sci.kun.nl> hansm@cs.kun.nl (Hans Mulder) writes: |> >In <1356@dg.dg.com> carlson@mrx.webo.dg.com (James Carlson) asks: |> >The best I can come up with is |> > |> >:+,$v/string/a |> >Anyone with a better idea? |> > |> |> Well |> |> :+,$v/string/p |> |> doesnt print the error message... Which, of course, is nice, but it also doesn't do the same thing, which isn't nice. (I just tried it, and it scrolls the *entire* file except for the lines with the /string/ in them by the screen and then says "[Hit return to continue]" -- I never did like abusing keys -- and when I do *that* the cursor is placed at the last line of the file. That's not quite what I wanted, although it is amusing.) -- Disclaimer: I cannot speak for Data General. You should have guessed that. Mail to: carlson@mrx.webo.dg.com -or- James_Carlson@dgc.mceo.dg.com .//.