Sunday, January 1, 2017

Re: Pasting from wrong register(?)

On Sat, Dec 31, 2016 at 6:27 PM, Fabian Furger <mystyfly@gmail.com> wrote:
> I'm setting clipboard to unnamed. I can't claim to fully understand yet how
> this (and related) options work so I played around a bit and found that it
> works when I have the `exclude:` part of the default clipboard value (not
> /etc/vimrc). That explains why it was working on the other machine (with the
> same configuration) - there was no X server to share a clipboard with.
>
> To me, it seems like the best solution is to set the clipboard to
> `unnamedplus` and change the map to replace the `+`-register instead of the
> `"`-register - using the plus instead of the star register because the star
> register gets overwritten when selecting the text I'm trying to replace.
>
> Thanks and a happy new year everyone!
>
Happy New Year. With Vim, there is usually no "best" one-size-fits-all
solution. I use the value "exclude:cons\|linux" (which would come from
":set cb=exclude:cons\\\|linux") but I can't find where my vimrc sets
that value. When I want Vim to change the * and/or + register I do it
explicitly, otherwide I leave well enough alone.

Best regards,
Tony.

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: