home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / question / 9415 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  1.4 KB

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!apple!apple!mrspoc!itkin
  2. From: itkin@mrspoc.Transact.COM (Steven List)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: deleting lines in vi
  5. Keywords: vi, delete
  6. Message-ID: <1992Jul24.224455.12496@mrspoc.Transact.COM>
  7. Date: 24 Jul 92 22:44:55 GMT
  8. References: <1992Jul15.132312.12499@ryptyde.cts.com> <1992Jul16.092308.29542@ibmpcug.co.uk> <16921@autodesk.COM> <1992Jul19.180824.15201@mccc.edu>
  9. Reply-To: steven@Transact.COM (Steven List)
  10. Organization: Transact Software
  11. Lines: 22
  12.  
  13. pjh@mccc.edu (Pete Holsberg) writes:
  14.  
  15. >In article <16921@autodesk.COM> dansmith@Autodesk.COM (Daniel Smith) writes:
  16. >=I want to mention a more general way for other cases that frequently occur.
  17. >=
  18. >=    to mark a point and then delete the region:
  19. >=
  20. >=    ma    # mark the point 'a'
  21. >=    G    # go to the end of file, or do some other motion command
  22. >=    d'a    # and delete from here to 'a
  23. >
  24. >The 'a means "the first non-whitespace char of the line you marked with
  25. >'a'". You might want `a instead.
  26.  
  27. When deleting, yanking, or otherwise modifying using movement commands,
  28. VI only works on whole lines.  So using either 'a or `a will have the
  29. same effect in this context.
  30. -- 
  31.  +-----------------------------------------------------------------------+
  32.  : Steven List @ Transact Software, Inc. : "I LIKE it!" The Rocketeer    :
  33.  : itkin@Transact.COM ... mrspoc!itkin   : "I LIKE to watch." C. Gardner :
  34.  +-----------------------------------------------------------------------+
  35.