On 16-Jan-2011 23:09, ZyX wrote:
> Reply to message «PATCH: v:register value with
> clipboard=unnamed,unnamedplus», sent 00:47:38 17 January 2011, Monday
> by Ingo Karkat:
>
>> I would propose changing the default value of v:register in case of
>> selection=unnamed from '"' to '*' (and correspondingly for
>> selection=unnamedplus to '+'), like this:
>
> According to the help, this variable must be empty if no registers were
> supplied, so it is better to make it behave like documented.
The current behavior is in Vim since version 6.2, where v:register has been
introduced. So I'm assuming that's correct, and the help is somewhat elusive.
But, as I've mentioned in my original mail, your proposal would solve the issue,
too, but might (*) break scripts relying on the current behavior.
In fact, one could have both: v:register representing the effective register
(through my patch), and an additional v:register0 that would only be filled if a
register has been specified.
(*) If setreg('', 'text') is changed so that it considers the 'clipboard'
setting instead of always writing to the unnamed register, my UnconditionalPaste
script would work just fine. I think most scripts would actually be fine.
-- regards, ingo
--
You received this message from the "vim_dev" 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