home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!mcsun!sun4nl!wn1.sci.kun.nl!cs.kun.nl!hansm
- From: hansm@cs.kun.nl (Hans Mulder)
- Subject: Re: vi (cut and paste)
- Message-ID: <1992Aug20.153518.4272@sci.kun.nl>
- Keywords: vi
- Sender: news@sci.kun.nl (NUnet News Owner)
- Organization: University of Nijmegen, The Netherlands
- References: <3815@keele.keele.ac.uk> <1992Aug17.200149.7817@s912%bnf.com> <515@alden.UUCP>
- Date: Thu, 20 Aug 1992 15:35:18 GMT
- Lines: 29
-
- In <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 the following texT:
- >>aaabbbbbb
- >>bbbbbbbbb
- >>bbbbccccc
- >>
- >>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. (I tried it! Did you?)
-
- Yes. It works. What you did was "ad'a which indeed grabs three full lines.
-
- Maybe you have a problem distinguishing quote (') from backquote(`). They're
- very similar on some displays.
- If you use quote ('), you'll grab whole lines; if you use backquote(`), you'll
- only grab the appropriate parts of the first and last lines.
-
- --
- Hope this helps
-
- Hans Mulder hansm@cs.kun.nl
-