home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / editors / 2781 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  2.0 KB

  1. Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!rutgers!modus!gear!cadlab!martelli
  2. From: martelli@cadlab.sublink.org (Alex Martelli)
  3. Newsgroups: comp.editors
  4. Subject: Re: VI??? GROSS!
  5. Message-ID: <1992Nov16.082002.26122@cadlab.sublink.org>
  6. Date: 16 Nov 92 08:20:02 GMT
  7. References: <1992Oct28.162607.5613@sunvax.sun.ac.za> <1992Oct28.214551.21668@wixer.cactus.org> <LYT86XN@math.fu-berlin.de> <brandy.721585760@tramp.Colorado.EDU>
  8. Organization: CAD.LAB S.p.A., Bologna, Italia
  9. Lines: 28
  10.  
  11. brandy@tramp.Colorado.EDU (BRANDAUER CARL M) writes:
  12.  
  13. :wolff@inf.fu-berlin.de (Thomas Wolff) writes:
  14. :
  15. :....... it is not even capable of performing one of the most elementary 
  16. :>text editing tasks: marking an arbitrary (!) block of text and by some 
  17. :>means copying or moving it to another place.
  18. :
  19. :Nonsense!  Put the cursor on the first character of the arbitrary text
  20. :block and do a yank using a regular expression target.  Everything up
  21. :to but not including the regular expression can be duplicated anywhere
  22. :you like, even in another file if named buffers are used.  All this works
  23. :with delete as well if the intent is to move the block.
  24.  
  25. Yes, or, more generally, go to the first character you want, type ma,
  26. go to the last chaacter you want, type mz, and now typing: "a`ay`z
  27. will yank this arbitrary block into named-buffer a, or "a`ad`z will
  28. delete the same block into named-buffer a; placing the cursor anywhere
  29. and typing: "ap, or "aP, will place the named-buffer contents after,
  30. resp. before, the cursor.  There are defects of course, for example
  31. no visual feedback of the marking or the yanking, but I really don't
  32. understand where Wolff's assertion about vi's presumed inability to
  33. mark arbitrary textblocks can come.  Maybe a misunderstanding between
  34. the 'a and `a movement-commands, where the former is line oriented
  35. while the latter is text-stream oriented?
  36. -- 
  37. Email: martelli@cadlab.sublink.org                   Phone: ++39 (51) 6130360
  38. CAD.LAB s.p.a., v. Ronzani 7/29, Casalecchio, Italia   Fax: ++39 (51) 6130294 
  39.