Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!mit-eddie!ll-xn!ames!ptsfa!ihnp4!homxb!hou2d!avr From: avr@hou2d.UUCP (Adam V. Reed) Newsgroups: comp.unix.questions Subject: Re: Invisible Ascii with VI Message-ID: <1613@hou2d.UUCP> Date: Mon, 5-Oct-87 17:48:34 EDT Article-I.D.: hou2d.1613 Posted: Mon Oct 5 17:48:34 1987 Date-Received: Fri, 9-Oct-87 01:19:10 EDT References: <258@unx1.UUCP> <469@devon.UUCP> <8807@mimsy.UUCP> <250@hobbes.UUCP> Organization: AT&T Bell Laboratories, Holmdel Lines: 19 Summary: Inserting control characters is simple too In article <250@hobbes.UUCP>, root@hobbes.UUCP (John Plocher) writes: > +---- chris@mimsy.UUCP (Chris Torek) writes in <8807@mimsy.UUCP> ---- > << a problem with removing trailing ^M's from lines in vi >> > | : % s / ^V ^M $ / / > | works fine for me. > | Of course, this could be a bug in other versions of vi. (At this > | very moment, I am running `Version 3.7, 6/7/85'---so says `:ver'.) > The "vi" distributed by Microport is `Version 3.9, 2/9/83'. Strange, > when was the timewarp? (ps, the pattern above works ok, as well as > the one without the trailing '$') > | (Going the *other* way---adding ^Ms---is another matter entirely.) > Yup :-) > | In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690) > John Plocher uwvax!geowhiz!uwspan!plocher plocher%uwspan.UUCP@uwvax.CS.WISC.EDU Not really. Try :1,$s/$/\^V^M/ which will echo as :1,$s/$/\^M/ and works as advertized, at least for me (I use System V). Adam Reed (hou2d!avr)