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

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!ut-emx!ibmchs!auschs!awdprime.austin.ibm.com!stuart
  2. From: stuart@austin.ibm.com (Stuart R. Yoder)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: vi (cut and paste)
  5. Keywords: vi
  6. Message-ID: <1992Aug20.195025.5714@awdprime.austin.ibm.com>
  7. Date: 20 Aug 92 19:50:25 GMT
  8. References: <3815@keele.keele.ac.uk> <1992Aug17.200149.7817@s912%bnf.com> <515@alden.UUCP>
  9. Sender: news@awdprime.austin.ibm.com (USENET News)
  10. Reply-To: stuart@piobe.austin.ibm.com
  11. Organization: IBM Austin
  12. Lines: 51
  13. Originator: stuart@piobe.austin.ibm.com
  14.  
  15.  
  16. In article <515@alden.UUCP>, sgr@alden.UUCP (Stan Ryckman) writes:
  17. > In article <1992Aug17.200149.7817@s912%bnf.com> bibb@s912%bnf.com (Ken Bibb) writes:
  18. > >In <3815@keele.keele.ac.uk> phd85@seq1.keele.ac.uk (D.H. Holden) writes:
  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. > NOT!
  27. > This grabs all three full lines. 
  28.  
  29. NOT!  I just tried it and it works great.  I'm running
  30. AIX 3.2.  I guess different versions of vi work differently.
  31.  
  32. > Dave presumably wants to have the remaining text be:
  33. > aaaccccc
  34. > and the buffer to contain:
  35. > bbbbbb
  36. > bbbbbbbbb
  37. > bbbb
  38. > "Mark" (the "m" command) only marks the line, NOT the cursor
  39. > position within the line.
  40. Depends on your version of vi.
  41.  
  42. >
  43. > and, in most cases, something can be found to work.  But to my
  44. > mind, there's no way to put the cursor at one arbitrary mid-line
  45. > point, type something, then position to another arbitrary mid-line
  46. > point, and then delete the in-between-text into a named buffer.
  47.  
  48. Depends on your version of vi.
  49. > Stan.
  50. > --
  51. > This .signature has expired.  Call 1-900-YOU-FOOL to find out why.
  52. >     Stan Ryckman   sgr@alden.UUCP
  53. -- 
  54. -Stuart
  55. -----------------------------------------------------------
  56. My opinions are mine and not those of my employer.
  57. -----------------------------------------------------------
  58.