[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Yanking multiple times

From: Benjamin Rutt
Subject: Re: Yanking multiple times
Date: Wed, 28 May 2003 21:43:47 -0400
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (usg-unix-v)

Balaji Venkataraman <address@hidden> writes:

> How does one yank the same line multiple times?  e.g. - do a C-a, C-k and
> then paste the same line 20 times (of course I don't want to hit C-y 20
> times). I understand that a numeric argument to C-y, goes back into the 
> kill-ring by that much, rather than repeat the command.

You can do it with a keyboard macro.  In CVS emacsen, you can do

F3 C-y F4

Then, pressing F4 will repeat the C-y.  You can do C-u 20 F4 to repeat
the keyboard macro 20 times.

The same is true in older emacsen with older, still-supported
keybindings, via

C-x ( C-y C-x ) 

followed by

C-u 20 C-x e

reply via email to

[Prev in Thread] Current Thread [Next in Thread]