home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / editors / 2744 < prev    next >
Encoding:
Internet Message Format  |  1992-11-14  |  1.8 KB

  1. Path: sparky!uunet!know!mips2!news.bbn.com!noc.near.net!news.Brown.EDU!qt.cs.utexas.edu!yale.edu!jvnc.net!darwin.sura.net!convex!convex!tchrist
  2. From: tchrist@convex.COM (Tom Christiansen)
  3. Newsgroups: comp.editors
  4. Subject: Re: VI??? GROSS!
  5. Message-ID: <1992Nov13.185540.16898@news.eng.convex.com>
  6. Date: 13 Nov 92 18:55:40 GMT
  7. References: <1992Nov13.124435.20019@cas.org> <1992Nov13.152821.6781@nsisrv.gsfc.nasa.gov> <Z8U84BL@math.fu-berlin.de>
  8. Sender: usenet@news.eng.convex.com (news access account)
  9. Reply-To: tchrist@convex.COM (Tom Christiansen)
  10. Organization: Convex Computer Corporation, Colorado Springs, CO
  11. Lines: 25
  12. Originator: tchrist@pixel.convex.com
  13. Nntp-Posting-Host: pixel.convex.com
  14. X-Disclaimer: This message was written by a user at CONVEX Computer
  15.               Corp. The opinions expressed are those of the user and
  16.               not necessarily those of CONVEX.
  17.  
  18. From the keyboard of wolff@inf.fu-berlin.de (Thomas Wolff):
  19. :Most repliers to my posting seem to be that well accustomed to the fact 
  20. :that vi is a line editor that they didn't see my point when I wrote 
  21. :"arbitrary (!) block of text" (well, maybe "block" was misleading). This 
  22. :is not a block of lines (which is the unit of most vi operations) and 
  23. :since I referred to "elementary text editing tasks" I didn't mean columns 
  24. :either. Suppose I have the lines
  25. :    word1 word2 word1
  26. :    word3 word4 word3
  27. :and I need the text from "word2 " up to "word4" (assume it's a sentence) 
  28. :to be copied or moved elsewhere.If an editor cannot do this with a 
  29. :simple command sequence (and without the search trick burdening me with 
  30. :the task of counting the occurences of the word following my sentence 
  31. :within my sentence, if it can be done that way at all), I just do not 
  32. :call it a text editor.
  33.  
  34. Use one of
  35.  
  36.     y2W            " two words
  37.     y)            " end of sentence
  38.     y$            " end of line
  39.  
  40. It isn't very hard.
  41.  
  42. --tom
  43.