Andy Wokula wrote:
> Am 04.11.2016 um 21:35 schrieb Bryce Orgill:
> > Was that a change that was put in version 8?  In my opinion that is a
> > big change.  It now means I can't yank in the global command or in
> > macros.  I have macros and scripts that use this.  It means it won't
> > work there.  I have to also use the 'set clipboard=unnamed' command
> > to be able to copy/paste from/to vim to/from other apps.  I'm not
> > sure why this change was taken out of version 7.4.  It was working
> > fine there and in previous versions.  Why does this work in Unix but
> > not Windows?
> >
> > In my opinion this needs to be fixed.  I don't see a work around in
> > my current status, which means I'd have to revert back to 7.4 to keep
> > my scripts working.
> 
> Then:
> :set cb=unnamed
> Within :global, `yy' yanks into the clipboard and `p' puts from the clipboard.
> 
> Now:
> :set cb=unnamed
> Within :global, `yy' does not yank into the clipboard, but `p' still puts from the clipboard.
> Looks like `yy' fails to set the last used register (`0').
> 
> Workaround:
> :g/^/normal! yy"0p
> 
> (register `0' contains the yanked text even with cb=unnamed).
Should be easy to fix: when Vim does "yy" and the clipboard isn't updated
because it's in a global command, then the next "p" should use what
would have been put on the clipboard.
Unfortunately I can't reproduce the problem...  Does this only happen on
MS-Windows?
-- 
Female engineers become irresistible at the age of consent and remain that
way until about thirty minutes after their clinical death.  Longer if it's a
warm day.
				(Scott Adams - The Dilbert principle)
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
-- 
-- 
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:
Post a Comment