Path: utzoo!attcan!utgpu!watmath!att!dptg!rutgers!sun-barr!ames!ncar!umigw!ibiza!aem From: aem@ibiza.cs.miami.edu (a.e.mossberg) Newsgroups: comp.editors Subject: Re: VI - removing control characters Keywords: vi, control characters Message-ID: <814@umigw.MIAMI.EDU> Date: 21 Sep 89 14:22:17 GMT References: <1600@ncrcan.Toronto.NCR.COM> <1185@virtech.UUCP> Sender: news@umigw.MIAMI.EDU Reply-To: aem@Mthvax.CS.Miami.Edu Lines: 21 cpcahil@virtech.UUCP (Conor P. Cahill) writes: >In article <1600@ncrcan.Toronto.NCR.COM>, tim@ncrcan.Toronto.NCR.COM (Tim Nelson) writes: >>[has ^M at the end of every line in a file] >You can use the following sequence: :1,$ s///g Hmmm, I think a better way is: :g/^V^M$/s/// (Real control-v and control-m, of course) Remember, the original problem is that they're at the end of lines. Typically, this problem is encountered when using 'script' aem a.e.mossberg / aem@mthvax.cs.miami.edu / aem@umiami.BITNET / Pahayokee Bioregion If I loved a woman, the more I loved her, the more I wanted to hurt her. - Diego Rivera