Monday, June 14, 2010

Re: Possible to make the + Register the default?

On 15/06/10 07:56, gustaffi wrote:
>
>> :h 'clipboard'
>
> Hmm.. this really explains how to make + the default register? If so, i dont
> get it.
>
>
> Christian Brabandt-3 wrote:
>>
>> On Tue, June 15, 2010 7:26 am, gustaffi wrote:
>>> everytime I copy or paste something to another app or to vim in another
>>> terminal, I hit "+ to switch to the register the gnome apps can access.
>>> Is
>>> it possible to make that the defaiut register, so I can stop typing "+
>>> all
>>> the time?
>>
>> :h 'clipboard'
>>
>> regards,
>> Christian
>>
>> --
>> You received this message from the "vim_use" maillist.
>> Do not top-post! Type your reply below the text you are replying to.
>> For more information, visit http://www.vim.org/maillist.php
>>
>>
>

If you
:set clipboard=unnamed
everything that goes to or from the unnamed register will go to register
* too.

- On Windows, "* and "+ are the same, anything in the one is seen in the
other too.
- On X11, "* (the "X selection") is normally used for
middleclick-pasting and selection-highlighting in applications other
than Vim;
- On X11, "+ (the "clipboard") is normally used for Edit->Copy,
Edit->Cut and Edit->Paste.

So unless you're on Windows, I don't think you can use register + as the
default register. You can use register * though, and middle-click-paste
it in other applications.

But then, is it useful? This option clobbers your X-selection or your
Windows clipboard even when you're copying inside of a single Vim
session and don't need such clobbering. I prefer to use Vim's unnamed
register by default, and leave the X registers alone unless I explicitly
say to use them, by using "+ for the clipboard or (more rarely) "* to
import a selection, maybe from xterm or similar.


Best regards,
Tony.
--
A person who has both feet planted firmly in the air can be safely
called a liberal.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: