home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!sol.ctr.columbia.edu!ucselx!snafu!optigfx!crash!bnf!don!bibb
- From: bibb@s912%bnf.com (Ken Bibb)
- Newsgroups: comp.unix.questions
- Subject: Re: vi (cut and paste)
- Keywords: vi
- Message-ID: <1992Aug17.200149.7817@s912%bnf.com>
- Date: 17 Aug 92 20:01:49 GMT
- References: <3815@keele.keele.ac.uk>
- Organization: Organization of Unknown Origin
- Lines: 38
-
- In <3815@keele.keele.ac.uk> phd85@seq1.keele.ac.uk (D.H. Holden) writes:
-
-
- > hi,
- > Does anyone know how you cut a range of text to one
- >
- > of the named buffers, where the range does not cover
- >
- > an integer number of lines, i.e.,
-
- > How do i cut from here > text text text ..........
-
- > ............... n number of lines .....
-
- > ...... to here < into the named buffer "a for example?
-
- > Cheers,
-
- > Dave.
-
- 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
-
- --
- ken@bnf.com jester@crash.cts.com
- --
- bnf!s912!ken@crash.cts.com "The Fire and the Rose are one"--T.S.Eliot
-