From: Dan Espen <despen@verizon.net>
To: help-gnu-emacs@gnu.org
Subject: Re: copy-line
Date: Wed, 25 Jul 2012 09:41:15 -0400 [thread overview]
Message-ID: <ic394ghsas.fsf@home.home> (raw)
In-Reply-To: 2b0503d9-5345-42b3-ad05-0d7bc2aad7a1@googlegroups.com
rfflrccrd@gmail.com writes:
> Comparing Vi/Vim to other editors is not fair ;-)
>
> Vanilla Emacs has no way to copy text that has not been marked. Thus, to copy a line, you have to mark it first. The complete sequence is:
>
> C-a C-Space C-e M-w
>
> In alternative, you can kill a line and yank it back at once:
>
> C-S-Backspace C-k
>
> Unlike Vi, the line will be copied/killed without its new line. I don't know whether such behaviour is customizable.
It certainly is customizable:
(define-key global-map [(kp-add)] '(lambda () (interactive)
(beginning-of-line)
(if (eobp) (error "End of buffer"))
(let ((beg (point)))
(forward-line 1)
(kill-region beg (point))))); KeyPad + Key
Kill a line, yank it back:
C-KP+ C-y
--
Dan Espen
next prev parent reply other threads:[~2012-07-25 13:41 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-05 19:08 copy-line (& default keychord) Enda
2012-07-24 16:06 ` copy-line Enda
2012-07-24 17:44 ` copy-line Bastien
2012-07-25 18:47 ` copy-line Guido Van Hoecke
[not found] ` <mailman.5498.1343146029.855.help-gnu-emacs@gnu.org>
2012-07-25 12:31 ` copy-line rfflrccrd
2012-07-25 13:41 ` Dan Espen [this message]
2012-07-25 15:02 ` copy-line Raffaele Ricciardi
2012-07-25 15:06 ` copy-line Raffaele Ricciardi
2012-07-25 13:50 ` copy-line Raffaele Ricciardi
2012-07-25 18:01 ` copy-line (& default keychord) Andreas Röhler
-- strict thread matches above, loose matches on Subject: below --
2009-01-31 18:26 copy-line Helmut Eller
2009-01-31 19:52 ` copy-line Plamen Tanovski
2009-02-01 1:18 ` copy-line Joe Fineman
2009-02-01 2:06 ` copy-line Samuel Wales
2009-02-01 2:09 ` copy-line Andy Stewart
[not found] ` <mailman.6387.1233454226.26697.help-gnu-emacs@gnu.org>
2009-02-01 8:41 ` copy-line Helmut Eller
2009-02-01 10:17 ` copy-line Peter Dyballa
2009-02-01 10:13 ` copy-line Harald Hanche-Olsen
2009-02-01 11:45 ` copy-line Helmut Eller
2009-02-01 15:40 ` copy-line Harald Hanche-Olsen
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=ic394ghsas.fsf@home.home \
--to=despen@verizon.net \
--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.