Xref: utzoo comp.editors:587 alt.flame:5328 Path: 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 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