home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!iWarp.intel.com|ichips!sedona!bhoughto
- From: bhoughto@sedona.intel.com (Blair P. Houghton)
- Subject: Re: vi (cut and paste)
- Message-ID: <1992Aug17.170416.15036@ichips.intel.com>
- Keywords: vi
- Sender: news@ichips.intel.com (News Account)
- Organization: Intel Corp., Chandler, Arizona
- References: <3815@keele.keele.ac.uk>
- Date: Mon, 17 Aug 1992 17:04:16 GMT
- Lines: 29
-
- In article <3815@keele.keele.ac.uk> phd85@seq1.keele.ac.uk (D.H. Holden) writes:
- > 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?
-
- Go to one end of the range and set a mark, then go to the
- other end and buffer-yank-to-marked-character, using
- double-quote and back-tick; for example, (the mark is "a"
- and the buffer is "f", the first letter in the range is the
- "b" in "bazz" and the last is the double-quote before the
- "b" in "bar"):
-
- /bazz
- ma <-- set the mark
- /bar
- "fy`a <-- yank to marked character
- /result
- nn"fp
-
- The result is:
- The rbazz" and the last is the double-quote before the
- "b" in "esult is:
-
-
- --Blair
- "Cake."
-