From: Stroller <stroller@stellar.eclipse.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: Commenting out multiple lines in vim
Date: Sat, 14 Feb 2009 06:02:14 +0000 [thread overview]
Message-ID: <C78D77A0-50CB-4955-A393-991DCB89038A@stellar.eclipse.co.uk> (raw)
In-Reply-To: <3ac129340902132103v116aa930ra17f30dd5aa74c3@mail.gmail.com>
On 14 Feb 2009, at 05:03, daid kahl wrote:
>>>
>>> Is there any way to access the vim buffers from other than vi?
>>> Using Konsole, if I want to copy something from vim I have to
>>> highlight with the mouse and right click, which is annoying. I
>>> really just want a better way to copy from Konsole that doesn't
>>> involve right click. At least shift+insert works for pasting from
>>> elsewhere...
>>>
>> Do you want to copy without using right-click (i.e. copy upon mouse
>> select) or copy without using the mouse at all? I assume the
>> latter, but that was not my initial reaction when I read "I really
>> just want a better way ... that doesn't involve right click".
>
> Haha, either one. I guess ideally it would be neat to be able to
> copy from Konsole without using the mouse at all, but I'd settle for
> mouse highlight and keystroke. Since I use a laptop with a
> touchpad, the highlighting isn't a huge hand motion away from the
> keyboard. Though, strtictly speaking, this thread is on vim, and I
> like to copy from vim more than Konsole anyway (except for like
> compile bugs, which I guess I could access through vim and the log
> files).
I can certainly answer copying using mouse but without needing to click.
I started to write this before I realised the other possibility:
IMO terminal emulators should copy on selection, as was the
traditional
X11 style. This is clearly undesirable behaviour in most any other
application - in a word-processor or email program you may want to
highlight a selection of text which you want to paste over, and
it's no use trying that when doing so overwrites the clipboard -
but that doesn't ever apply to terminal applications.
Surely Konsole should offer a copy-upon-selection option?
I then realised that it was daft to ask this question without Googling
it and quickly found this thread:
http://forums.whirlpool.net.au/forum-replies-archive.cfm/718984.html
The last post gives the answer, I think.
It must surely be possible to access the clipboard API at the command
line & create a vim command that passes the highlighted text to it,
but I have no idea how.
Stroller.
next prev parent reply other threads:[~2009-02-14 6:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-14 4:21 [gentoo-user] Re: Commenting out multiple lines in vim daid kahl
2009-02-14 4:38 ` Stroller
2009-02-14 5:03 ` daid kahl
2009-02-14 6:02 ` Stroller [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-02-12 19:53 [gentoo-user] " Stroller
2009-02-13 0:53 ` Philip Webb
2009-02-13 5:48 ` Stroller
2009-02-13 6:49 ` Eray Aslan
2009-02-13 9:24 ` Joost Roeleveld
2009-02-13 12:37 ` [gentoo-user] " Nicolas Sebrecht
2009-02-13 12:54 ` Joost Roeleveld
2009-02-13 19:58 ` [gentoo-user] " Stroller
2009-02-13 21:45 ` [gentoo-user] " Nicolas Sebrecht
2009-02-14 4:11 ` Stroller
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=C78D77A0-50CB-4955-A393-991DCB89038A@stellar.eclipse.co.uk \
--to=stroller@stellar.eclipse.co.uk \
--cc=gentoo-user@lists.gentoo.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox