🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #100

how to copy one line multiple times in vi...?

#100
From: The Idealistic Cynic
Date: Mon, 03 Aug 1992 17:31
24 lines
1367 bytes
The question is simple:  Is there a way to use just a couple of
keystrokes to copy one line (or a yanked buffer) into a file
multiple times?

The "Bell Labs vi User's Handbook" says that you can specify how
many copies you want when using the "p'ut" command, but when tried
on either of two different vi's it doesn't work.

I'm not much into macros but this didn't seem possible using a
macro, either, as put isn't allowed in macros.  (At least not
in my version of vi.)

Ideally I'd either like a way to specify how many  copies of
a set of lines go into the unamed buffer, or to specify how
many copied come out.

Thanks,

Sean.

---
Sean L. Gilley
sgilley@cbnewsl[.cb].att.com, slg@sunray[.cb].att.com, slg2@cblph[.cb].att.com
614 236 5031 (h), 614 860 5743 (w)
Technical Details
Message-ID: <1992Aug3.173138.12043@cbnewsl.cb.att.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnews!cbnewsl!slgsun!slg
References: <1992Aug3.142848.4671@porthos.cc.bellcore.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.editors
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnews!cbnewsl!slgsun!slg
From: slg@slgsun.att.com (The Idealistic Cynic)
Subject: how to copy one line multiple times in vi...?
Organization: AT&T Bell Labs, Columbus, Ohio
Distribution: na
Date: Mon, 3 Aug 1992 17:31:38 GMT
Message-ID: <1992Aug3.173138.12043@cbnewsl.cb.att.com>
References: <1992Aug3.142848.4671@porthos.cc.bellcore.com>
Sender: news@cbnewsl.cb.att.com (NetNews Administrator)
Nntp-Posting-Host: slgsun.cb.att.com
Lines: 24