Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!necntc!ames!sdcsvax!ncr-sd!geoff From: geoff@ncr-sd.SanDiego.NCR.COM (Geoffrey R. Walton) Newsgroups: comp.unix.questions Subject: Re: Invisible Ascii with VI Message-ID: <1805@ncr-sd.SanDiego.NCR.COM> Date: Mon, 5-Oct-87 10:50:35 EDT Article-I.D.: ncr-sd.1805 Posted: Mon Oct 5 10:50:35 1987 Date-Received: Thu, 8-Oct-87 02:59:41 EDT References: <258@unx1.UUCP> <469@devon.UUCP> <8807@mimsy.UUCP> <250@hobbes.UUCP> Reply-To: geoff@ncr-sd.SanDiego.NCR.COM (Geoffrey R. Walton) Organization: Western United Intergalactic Pacifier and Cane Corp., Ltd. Lines: 31 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. >| >| (Going the *other* way---adding ^Ms---is another matter entirely.) > >Yup :-) > What's wrong with: :g/$/s// This, of course, supposes that you want to insert a blank line between each line of existing text. (That isn't what you want to do? OK, I give up. Why _DO_ you want to add "hard" carriage returns to the lines in your file?) #include Geoff Walton Software Publications NCR E&M San Diego geoff.walton@SanDiego.NCR.COM or {sdcsvax,cbosgd,pyramid,nosc.ARPA,ihnp4}!ncr-sd!geoff Even the smallest problem becomes unsolvable if enough meetings are held to discuss it.