home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / question / 10141 < prev    next >
Encoding:
Internet Message Format  |  1992-08-17  |  1.3 KB

  1. Path: sparky!uunet!usc!sol.ctr.columbia.edu!ucselx!snafu!optigfx!crash!bnf!don!bibb
  2. From: bibb@s912%bnf.com (Ken Bibb)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: vi (cut and paste)
  5. Keywords: vi
  6. Message-ID: <1992Aug17.200149.7817@s912%bnf.com>
  7. Date: 17 Aug 92 20:01:49 GMT
  8. References: <3815@keele.keele.ac.uk>
  9. Organization: Organization of Unknown Origin
  10. Lines: 38
  11.  
  12. In <3815@keele.keele.ac.uk> phd85@seq1.keele.ac.uk (D.H. Holden) writes:
  13.  
  14.  
  15. > hi, 
  16. >    Does anyone know how you cut a range of text to one
  17. >   
  18. >    of the named buffers, where the range does not cover
  19. >   an integer number of lines, i.e., 
  20.  
  21. >  How do i cut from here > text  text text ..........
  22.  
  23. >  ............... n number of lines .....
  24.  
  25. > ...... to here <  into the named buffer "a for example?
  26.  
  27. >    Cheers,
  28.  
  29. >              Dave.
  30.  
  31. In the following texT:
  32.  
  33. aaabbbbbb
  34. bbbbbbbbb
  35. bbbbccccc
  36.  
  37. I'll assume you want to cut the b's out and save them into buffer a.
  38.  
  39. 1) position the cursor at the beginning of the range to be cut (1Gfb will work
  40.    in this example).
  41. 2) ma (mark the location with marker a)
  42. 3) move to the end of the range (Gfc will work in this example)
  43. 4) "ad`a will cut the range and put it into buffer a
  44.  
  45. --
  46. ken@bnf.com        jester@crash.cts.com
  47. -- 
  48. bnf!s912!ken@crash.cts.com    "The Fire and the Rose are one"--T.S.Eliot
  49.