home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!mips!mips!munnari.oz.au!bunyip.cc.uq.oz.au!nestor.nmpd.oz.au!ianh
- From: ianh@nmpd.oz.au (Ian Holland)
- Subject: Re: vi (cut and paste)
- Message-ID: <ianh.714279888@romeo>
- Keywords: vi
- Sender: news@nmpd.oz.au
- Nntp-Posting-Host: romeo
- Reply-To: ianh@nmpd.oz.au
- Organization: NMPD Telecom
- References: <3815@keele.keele.ac.uk> <1992Aug17.200149.7817@s912%bnf.com> <515@alden.UUCP>
- Date: 20 Aug 92 03:04:48 GMT
- Lines: 58
-
- 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:
- >>> 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
-
- >NOT!
-
- I think I have worked out the English translation for this exclamation :-)
-
- >This grabs all three full lines. (I tried it! Did you?)
-
- The given example works with SunOS's vi. Perhaps you have an inferior
- version (though this makes me sick in the stomack when I think about it),
- or maybe (just maybe) you used ' instead of `.
-
- .
- .
- .
-
- >"Mark" (the "m" command) only marks the line, NOT the cursor
- >position within the line.
-
- This is totally incorrect.
-
- >Am cross-posting to comp.editors, since someone there may know
- >for sure whether there _is_ a way to do this, and if I'm wrong I'd
- >like to know. But please, _TRY_ it before posting!
-
- Yes I did try the original (valid) suggestion before you read this.
-
- best of luck,
- --
-
- - ian...
-
- Ian Holland. NMPD, Telecom. % Ph: +61 7 837 5075 % Explicit hoc totum,
- E-Mail: ianh@nmpd.oz.au % Fax: +61 7 837 5253 % Pro Christo da mihi potum!
-
-