From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Repeat count for yanking
Date: Tue, 05 Jul 2011 14:44:43 +0200 [thread overview]
Message-ID: <87y60c99s4.fsf@gmail.com> (raw)
In-Reply-To: 0A0F98DA-B6DA-4C1B-B3E2-D5F76299AD75@gmail.com
Perry Smith <pedzsan@gmail.com> writes:
> 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.
>
>
M-: (loop repeat 5 do (progn (yank) (insert "\n")))
--
A+ Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
next prev parent reply other threads:[~2011-07-05 12:44 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-05 9:35 Repeat count for yanking C K Kashyap
2011-07-05 11:13 ` Peter Münster
2011-07-21 21:39 ` Steinar Bang
2011-07-21 21:41 ` Deniz Dogan
2011-07-05 11:46 ` Richard Riley
2011-07-05 12:38 ` Perry Smith
2011-07-05 12:44 ` Thierry Volpiatto [this message]
2011-07-05 13:42 ` Teemu Likonen
2011-07-06 6:26 ` C K Kashyap
2011-07-05 17:09 ` Richard Riley
2011-07-05 17:27 ` Andreas Röhler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y60c99s4.fsf@gmail.com \
--to=thierry.volpiatto@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.