[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: copy and paste multiple times
From: |
Andreas Röhler |
Subject: |
Re: copy and paste multiple times |
Date: |
Wed, 25 Jan 2012 18:28:55 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.24) Gecko/20111101 SUSE/3.1.16 Thunderbird/3.1.16 |
Am 25.01.2012 18:20, schrieb Rajanikanth Jammalamadaka:
This has been discussed below:
http://stackoverflow.com/questions/71985/emacs-equivalent-of-vims-yy10p
Is there no built-in (short :-)) command in emacs to copy and paste a
region multiple times?
Thanks,
Raj
AFAIK not.
But is was discussed at this list and several proposals made.
Here is mine:
(defun yank-repeat (arg)
"With numerical ARG, repeat last yank ARG times. "
(interactive "p*")
(dotimes (i arg)
(insert (car kill-ring))))
Andreas
--
http://launchpad.net/python-mode
http://launchpad.net/s-x-emacs-werkstatt/