Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!texsun!convex!convex.convex.com!felps From: felps@convex.com (Robert Felps) Newsgroups: comp.editors Subject: Re: vi delete to # Message-ID: Date: 29 Nov 90 21:08:36 GMT References: <1990Nov21.025246.8298@mthvax.cs.miami.edu> <75@deeptht.UUCP> Sender: news@convex.com Distribution: na Lines: 30 In <75@deeptht.UUCP> spcecdt@deeptht.santa-cruz.ca.us (John DuBois) writes: >In article <1990Nov21.025246.8298@mthvax.cs.miami.edu> wb8foz@mthvax.cs.miami.edu (David Lesher) writes: >+I'm looking for a macro that would delete to a given line >+number. For example: You are editing a file, and are on line 5. >+You want to delete everything up to line 17. Now of course, you >+can subtract in your head, and use a 12dd. But my view has always >+computers are supposed to do those things for me! >+ >+Any suggestion on a "delete to {or delete through} line #" macro? >+is busy, hung or dead....................................33257-0335 > I think the only way you're going to get delete-through-line# >is with :.,# d You could make the :., part a macro... > John DuBois > spcecdt@deeptht.santa-cruz.ca.us How about, d#G or am I missing something here? Thanks, Robert Felps felps@convex.com Convex Computer Corp OS System Specialist 3000 Waterview Parkway Tech. Assistant Ctr Richardson, Tx. 75083 1(800) 952-0379