On Wed, Jan 25, 2012 at 12:35 PM, Teemu Likonen
<tlikonen@iki.fi> wrote:
The Stack Overflow question is about copying *lines*, not *a region* as
you put it. Which one do you mean? Anyway, there is no as quick command
as Vi's "yy10p".
Possible solutions:
1. Write a desired command yourself.
2. Switch to viper-mode for a moment.
3. Delete line with C-k C-k and then yank it several times with C-y.
My opinion is that yank command's numeric prefix argument should repeat
the yank. But Emacs is customizable and programmable, so I just do it:
(global-set-key (kbd "C-y") (lambda (n)
(interactive "p")
(dotimes (i (abs n)) (yank))))