Friday, November 4, 2016

Re: after vim 8 installation, yanking (yy) doesn't work in global command and macros

Hi ChrisBra and All,

2016-11-4(Fri) 16:03:31 UTC+9 Christian Brabandt:
> Hi Bryce!
>
> On Do, 03 Nov 2016, Bryce Orgill wrote:
>
> > After I installed the Vim 8 version, I noticed that the following command doesn't yank the current line for every line it's supposed to run on.
> >
> > %g/^/normal yyp
> >
> > When I run it, it pastes whatever was previously copied. When I run "normal yyp", this works fine, it just doesn't seem to work in global commands and in macros. Here is my example:
> >
> > Example:
> > -----------
> > string currently stored in clipboard: 7777
> > command given: %g/^/normal yyp
> > original text:
> > 1234
> > 5678
> >
> > new text (actual output):
> > 1234
> > 7777
> > 5678
> > 7777
> >
> > new text (expected output):
> > 1234
> > 1234
> > 5678
> > 5678
> >
> > This seems like a real bug as I never experienced this in earlier versions.
>
> Cannot reproduce. What is your clipboard setting? Can you please narrow
> down the problem when starting vim like this vim -u NONE -N --noplugins

A little supplement:
s/--noplugins/--noplugin/
When you specify the `-u NONE`, it will treat you also specify `--noplugin` and `-U NONE`.

Please see `:h -u` and `:h --noplugin`
> When {vimrc} is equal to "NONE" (all uppercase), all
> initializations from files and environment variables are
> skipped, including reading the |gvimrc| file when the GUI
> starts. Loading plugins is also skipped.

--
Best regards,
Hirohito Higashi (a.k.a. h_east)

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