🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #1268

Re: vi delete to #

#1268
From: John DuBois
Date: Wed, 28 Nov 1990 07:32
15 lines
1182 bytes
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<return>   You could make the :., part a macro...

	John DuBois
	spcecdt@deeptht.santa-cruz.ca.us
Technical Details
Message-ID: <75@deeptht.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!sco!gorn!deeptht!spcecdt
References: <1990Nov21.025246.8298@mthvax.cs.miami.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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