Gary Johnson wrote:
On 2007-02-16, "A.J.Mechelynck" <[EMAIL PROTECTED]> wrote:
Theerasak Photha wrote:
On 2/15/07, Lev Lvovsky <[EMAIL PROTECTED]> wrote:
I often find myself copy/pasting via my GUI text that I might have on
the screen, and then pasting it into the command to be performed - is
there any way to cut/paste text into the command area when I have it
highlighted with just the keyboard?
Assuming you're talking about ex commands, yes.

You can type <Ctrl-R> to insert a register, then the name of any
register, including the expression register, =. In your case, the name
would probably be '+', so <Ctrl-R>+.

Of course, you should first copy the text to the clipboard in whatever program you're pasting from.

Under X11, at least on my system, you don't have to explicitly yank or copy the text: text highlighted by the mouse automatically goes into the cut buffer (or the selection--I can't keep the two straight). The last text highlighted with the mouse is immediately available in the * register.

Regards,
Gary


Maybe -- I've never understood how to properly use the * register under X11. What comes from "Edit => Copy" (or Ctrl-C) in some non-Vim program arrives in the + register in gvim, and what I yank into the + register in gvim is available for "Edit => Paste" (or Ctrl-V) in any non-Vim program -- those I can understand.

Best regards,
Tony.
--
Confidence is the feeling you have before you understand the
situation.

Reply via email to