Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!sco!gorn!deeptht!spcecdt From: spcecdt@deeptht.santa-cruz.ca.us (John DuBois) Newsgroups: comp.editors Subject: Re: vi delete to # Message-ID: <75@deeptht.UUCP> Date: 28 Nov 90 07:32:45 GMT References: <1990Nov21.025246.8298@mthvax.cs.miami.edu> Reply-To: spcecdt@deeptht.santa-cruz.ca.us (John DuBois) Distribution: na Organization: The Armory Lines: 15 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