home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!ut-emx!ibmchs!auschs!awdprime.austin.ibm.com!stuart
- From: stuart@austin.ibm.com (Stuart R. Yoder)
- Newsgroups: comp.unix.questions
- Subject: Re: vi (cut and paste)
- Keywords: vi
- Message-ID: <1992Aug20.195025.5714@awdprime.austin.ibm.com>
- Date: 20 Aug 92 19:50:25 GMT
- References: <3815@keele.keele.ac.uk> <1992Aug17.200149.7817@s912%bnf.com> <515@alden.UUCP>
- Sender: news@awdprime.austin.ibm.com (USENET News)
- Reply-To: stuart@piobe.austin.ibm.com
- Organization: IBM Austin
- Lines: 51
- Originator: stuart@piobe.austin.ibm.com
-
-
- In article <515@alden.UUCP>, sgr@alden.UUCP (Stan Ryckman) writes:
- > In article <1992Aug17.200149.7817@s912%bnf.com> bibb@s912%bnf.com (Ken Bibb) writes:
- > >In <3815@keele.keele.ac.uk> phd85@seq1.keele.ac.uk (D.H. Holden) writes:
- >
- > >I'll assume you want to cut the b's out and save them into buffer a.
- > >1) position the cursor at the beginning of the range to be cut (1Gfb will work
- > > in this example).
- > >2) ma (mark the location with marker a)
- > >3) move to the end of the range (Gfc will work in this example)
- > >4) "ad`a will cut the range and put it into buffer a
- >
- > NOT!
- >
- > This grabs all three full lines.
-
- NOT! I just tried it and it works great. I'm running
- AIX 3.2. I guess different versions of vi work differently.
-
- >
- > Dave presumably wants to have the remaining text be:
- > aaaccccc
- >
- > and the buffer to contain:
- > bbbbbb
- > bbbbbbbbb
- > bbbb
- >
- > "Mark" (the "m" command) only marks the line, NOT the cursor
- > position within the line.
- >
- Depends on your version of vi.
-
- >
- > and, in most cases, something can be found to work. But to my
- > mind, there's no way to put the cursor at one arbitrary mid-line
- > point, type something, then position to another arbitrary mid-line
- > point, and then delete the in-between-text into a named buffer.
-
- Depends on your version of vi.
- >
- >
- > Stan.
- > --
- > This .signature has expired. Call 1-900-YOU-FOOL to find out why.
- > Stan Ryckman sgr@alden.UUCP
- --
- -Stuart
- -----------------------------------------------------------
- My opinions are mine and not those of my employer.
- -----------------------------------------------------------
-