On 28/02/09 17:26, Tim Johnson wrote:
> Hello Tony:
> Thanks for all of the information. I haven't had my coffee yet,
> and it will take a while to absorb all of this. But a couple
> of follow-up questions:
>
>>> In vim, when I make a selection with my pointing device,
>>> whether in a file window or in the command line,
>>> that selection is always copied to the clipboard.
>>> ==============
>>> That's a good thing.
>>> ==============
> On Friday 27 February 2009, Tony Mechelynck wrote:
>> IMHO, it's a bad thing, but it's user-configurable by means the
>> 'clipboard' option, as follows:
> I'm curious as to why you feel it is a bad thing. Your opinion
> is of interest.

Mainly for its wastefulness. I feel that not clobbering the clipboard 
unless I specifically say so, and using only the unnamed register for 
most yanks and puts inside Vim, is more economical, and doesn't 
needlessly interfere with what I might be doing in other applications.

>
>> On the ex-command line, use
>>
>>      :[range]y[ank] +
>   I'm afraid my issue wasn't expressed well. What I meant to
> say was:
>
> How may I copy some text displayed on the command line to the
> clipboard - or to a register?
>
> Example: I do 2C-g or :file and I need a copy of the filepath.
>
> Thanks again.
> Now I'll have coffee.
> tim

Ah. I think the only way to copy what Vim displays below the 
command-line is by modeless selection: see
        :help modeless-selection
        :help modeless-and-clipboard
        :help c_CTRL-Y


Best regards,
Tony.
-- 
ARTHUR: If you do not open these doors, we will take this castle by 
force ...
    [A bucket of slops land on ARTHUR.  He tries to retain his dignity.]
                  "Monty Python and the Holy Grail" PYTHON (MONTY) 
PICTURES LTD

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to