🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #3464

Re: Vi bashing

#3464
From: David Gast
Date: Sat, 25 Mar 1989 04:10
30 lines
1443 bytes
In article <24@hcr.UUCP> stacey@hcrvax.UUCP (Stacey Campbell) writes:
>You gotta see this to believe it, truly a case of the moronic
>leading the blind.

>This little exchange just totally freaks me out.  Of all the ways
>to delete text in vi I have never seen this solution, can anyone
>think of a more bizarre way to do this?

>For reality try...

>    :'a,'bd
>
>or if the cursor is at the end of the range for deletion...
>
>    :'a,.d

If the cursor is at the end of the range for deletion and you want to
delete whole lines (that is what the above command does), you can just
type d'a   (only 3 strokes).

If the cursor is at the end of the range for deletion and you want to
delete on the characters between the mark and the current cursor position,
then you should type d`a

As has been pointed out, there are other objects as well.


David Gast
gast@cs.ucla.edu
{uunet,ucbvax,rutgers}!{ucla-cs,cs.ucla.edu}!gast
Technical Details
Message-ID: <22244@shemp.CS.UCLA.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!oberon!ucla-cs!gast
References: <587@alice.marlow.uucp> <4048@ttidca.TTI.COM> <960@myrias.UUCP> <24@hcr.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!oberon!ucla-cs!gast
From: gast@lanai.cs.ucla.edu (David Gast)
Newsgroups: comp.editors,alt.flame
Subject: Re: Vi bashing
Keywords: holy mackerel
Message-ID: <22244@shemp.CS.UCLA.EDU>
Date: 25 Mar 89 04:10:43 GMT
References: <587@alice.marlow.uucp> <4048@ttidca.TTI.COM> <960@myrias.UUCP> <24@hcr.UUCP>
Sender: news@CS.UCLA.EDU
Reply-To: gast@cs.ucla.edu (David Gast)
Organization: UCLA Computer Science Department
Lines: 30