home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sun-barr!apple!apple!mrspoc!itkin
- From: itkin@mrspoc.Transact.COM (Steven List)
- Newsgroups: comp.unix.questions
- Subject: Re: deleting lines in vi
- Keywords: vi, delete
- Message-ID: <1992Jul24.224455.12496@mrspoc.Transact.COM>
- Date: 24 Jul 92 22:44:55 GMT
- References: <1992Jul15.132312.12499@ryptyde.cts.com> <1992Jul16.092308.29542@ibmpcug.co.uk> <16921@autodesk.COM> <1992Jul19.180824.15201@mccc.edu>
- Reply-To: steven@Transact.COM (Steven List)
- Organization: Transact Software
- Lines: 22
-
- pjh@mccc.edu (Pete Holsberg) writes:
-
- >In article <16921@autodesk.COM> dansmith@Autodesk.COM (Daniel Smith) writes:
- >=I want to mention a more general way for other cases that frequently occur.
- >=
- >= to mark a point and then delete the region:
- >=
- >= ma # mark the point 'a'
- >= G # go to the end of file, or do some other motion command
- >= d'a # and delete from here to 'a
- >
- >The 'a means "the first non-whitespace char of the line you marked with
- >'a'". You might want `a instead.
-
- When deleting, yanking, or otherwise modifying using movement commands,
- VI only works on whole lines. So using either 'a or `a will have the
- same effect in this context.
- --
- +-----------------------------------------------------------------------+
- : Steven List @ Transact Software, Inc. : "I LIKE it!" The Rocketeer :
- : itkin@Transact.COM ... mrspoc!itkin : "I LIKE to watch." C. Gardner :
- +-----------------------------------------------------------------------+
-