🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #1271

Re: vi delete to #

#1271
From: Robert Felps
Date: Thu, 29 Nov 1990 21:08
30 lines
1583 bytes
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<return>   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
Technical Details
Message-ID: <felps.659912916@convex.convex.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!texsun!convex!convex.convex.com!felps
References: <1990Nov21.025246.8298@mthvax.cs.miami.edu> <75@deeptht.UUCP>

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