%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.
Bryce
2016-11-4(Fri) 16:03:31 UTC+9 Christian Brabandt:
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)
I did do some more investigating and when I run with no plugins, the issue is gone, so the yanking in the global command works. I narrowed down the issue to the clipboard setting (set clipboard). By default, this is blank but in my vimrc file, I set it to "unnamed". I need this setting because it allows me to copy something in VIM and it will be available in apps external to VIM (placed on windows clipboard). So when I run VIM without plugins, the yanking works, but right when I set that clipboard setting to unnamed, the yanking doesn't work anymore.
This was working on previous versions like 7.4, 7.3, 7.2. So I'm not sure why it would stop working now.
Bryce
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.
Bryce
BrycW