Path: utzoo!attcan!uunet!pmafire!uudell!sequoia!execu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!ncar!umigw!mthvax!wb8foz From: wb8foz@mthvax.cs.miami.edu (David Lesher,,255RTFM,255rtfm) Newsgroups: comp.editors Subject: vi delete to # Message-ID: <1990Nov21.025246.8298@mthvax.cs.miami.edu> Date: 21 Nov 90 02:52:46 GMT Reply-To: wb8foz@mthvax.cs.miami.edu (David Lesher) Distribution: na Organization: NRK Clinic for habitual NetNews Abusers Lines: 12 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? -- A host is a host from coast to coast.....wb8foz@mthvax.cs.miami.edu & no one will talk to a host that's close............(305) 255-RTFM Unless the host (that isn't close)......................pob 570-335 is busy, hung or dead....................................33257-0335