On 7 Apr 2017 21:42:31 GMT
Charlie Gibbs wrote:
> On 2017-04-07, Ahem A Rivet's Shot wrote:
>
> > On Fri, 07 Apr 2017 21:20:18 +0100
> > Mike Fleming wrote:
> >
> >> That works fine up to a screenful. I can sympathise with Charlie if
> >> he'd like to set a mark and do a few page downs, then yank from the
> >> mark, then paste that somewhere else.
> >
> > Easy enough to do, say you want the next 70 lines then:
> >
> > "a70yy
> >:e t
> > "aP
> >:w
> >:rew
> >
> > Then in the other window
> >
> >:r t
> >:!rm t
>
> Thanks for that. I haven't gotten into the more advanced features
> of vi, and I suspected there had to be something that would do the job.
For anyone puzzled that's:
yank 70 lines into a buffer called a
open a file called t (which shouldn't exist)
paste the buffer
save the file
go back to the original
and
read the file called t
delete it
Of course if you're working in multiple xterms (or similar) you can
just use X cut and paste - but remember to :set noai in the destination
otherwise auto-indent is likely to make things messy.
--
Steve O'Hara-Smith | Directable Mirror Arrays
C:>WIN | A better way to focus the sun
The computer obeys and wins. | licences available see
You lose and Bill collects. | http://www.sohara.org/
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|