Hi, I have come across what looks like a bug to me when using :global. I have this in my vimrc:
set clipboard=unnamed,unnamedplus,exclude:cons\|linux
So I want my clipboard to be updated when the unnamed register changes. Now if
I want to delete something with the :delete command without clobbering the
clipboard I can just delete it to the black hole register:
delete _
This works fine, neither the unnamed register nor the clipboard is changed by
this.
Now if I want to do that in a :global command I can just do this:
g/foo/d _
However, this command is not quite as accomodating. It doesn't change the
unnamed register, but it does change the clipboard. It seems to clear it, in
fact. This affects both the CLIPBOARD and PRIMARY selections as far as I can
see. I discovered this while trying to track down why netrw was messing up my
clipboard when changing directories.
For the record, this is with Vim 7.4.488 in both a terminal and GVim. I didn't
see anything related to this in the patches after that.
-Jan
--
-[ OpenPGP key ID: 00A0FD5F ]-
Technological progress has merely provided us with more efficient means for
going backwards.
-- Aldous Huxley
--
--
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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: Digital signature
