Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!udel!ee.udel.edu From: new@ee.udel.edu (Darren New) Newsgroups: comp.editors Subject: Re: A vi question Message-ID: <28265@nigel.ee.udel.edu> Date: 23 Aug 90 16:32:54 GMT References: <2394@root44.co.uk> <1117@ssp11.idca.tds.philips.nl> <4173@trantor.harris-atd.com> Sender: usenet@ee.udel.edu Organization: University of Delaware Lines: 9 Nntp-Posting-Host: estelle.ee.udel.edu >> %s/^H.//g >>As the backspace sequence is used only to reprint the preceding character and >>with this command all duplications are removed. Much better is %s/.^H//g which throws out the character *before* the backspace in case it is an underline. You know this is right because the backspace when displayed overwrites the *previous* character, not the next. -- Darren -- --- Darren New --- Grad Student --- CIS --- Univ. of Delaware ---