On Jul 5, 2011, at 6:46 AM, Richard Riley wrote:
C K Kashyap<ckkashyap@gmail.com> writes:
Hi,
How can I provide a repeat count to yank -
I'd like to kill a line and then paste it 100 times - how can I
achieve this?
Regards,
Kashyap
I was looking at this recently.
http://stackoverflow.com/questions/71985/emacs-equivalent-of-vims-yy10p
If it is a one time thing, I usually do it in powers of two. e.g. yank it
maybe 4 times, then kill that and yank 4 times. Now you have 16 lines. ...
Remember that M-< sets the mark. So if you narrow the region you can paste a
lot of lines rather quickly.
If I was going to do this moderately frequently, I would toy around and learn
how to do it via M-; (eval). Seems like one line of lisp could do this.