home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / question / 10218 < prev    next >
Encoding:
Text File  |  1992-08-20  |  1.4 KB  |  42 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!mcsun!sun4nl!wn1.sci.kun.nl!cs.kun.nl!hansm
  3. From: hansm@cs.kun.nl (Hans Mulder)
  4. Subject: Re: vi (cut and paste)
  5. Message-ID: <1992Aug20.153518.4272@sci.kun.nl>
  6. Keywords: vi
  7. Sender: news@sci.kun.nl (NUnet News Owner)
  8. Organization: University of Nijmegen, The Netherlands
  9. References: <3815@keele.keele.ac.uk> <1992Aug17.200149.7817@s912%bnf.com> <515@alden.UUCP>
  10. Date: Thu, 20 Aug 1992 15:35:18 GMT
  11. Lines: 29
  12.  
  13. In <515@alden.UUCP> sgr@alden.UUCP (Stan Ryckman) writes:
  14. >In article <1992Aug17.200149.7817@s912%bnf.com> bibb@s912%bnf.com (Ken Bibb) writes:
  15. >>In the following texT:
  16. >>aaabbbbbb
  17. >>bbbbbbbbb
  18. >>bbbbccccc
  19. >>
  20. >>I'll assume you want to cut the b's out and save them into buffer a.
  21. >>1) position the cursor at the beginning of the range to be cut (1Gfb will work
  22. >>   in this example).
  23. >>2) ma (mark the location with marker a)
  24. >>3) move to the end of the range (Gfc will work in this example)
  25. >>4) "ad`a will cut the range and put it into buffer a
  26.  
  27. >NOT!
  28.  
  29. >This grabs all three full lines.  (I tried it!  Did you?)
  30.  
  31. Yes.  It works.   What you did was "ad'a which indeed grabs three full lines.
  32.  
  33. Maybe you have a problem distinguishing quote (') from backquote(`).  They're
  34. very similar on some displays.
  35. If you use quote ('), you'll grab whole lines; if you use backquote(`), you'll
  36. only grab the appropriate parts of the first and last lines.
  37.  
  38. --
  39. Hope this helps
  40.  
  41. Hans Mulder            hansm@cs.kun.nl
  42.