I've found a lot of information online about this for Linux-Vim but not for the Windows-Vim (not gvim). Whenever I try to copy and paste something in Vim (using y and p), the copies I make do not expand to the system, only to the currently running instance of vim. Here are a few different scenarios that all do different things:
Copying-and-pasting like normal in the command prompt (by highlighting to copy and right-clicking to paste) works as expected - it copies to and pastes from the system clipboard
If I copy
abcin notepad, I can pasteabcin any opened vim withpor"*por"+p. But if I copy123from one instance of vim withy,"+y, or"*y, I can paste123in that instance, but if I switch to another,abcwill paste instead of123.
Based on what I've read, this is because Vim places the data in a register, but the register doesn't get transferred to the windows clipboard. However, I haven't been able to find any information online about why, everything is limited to the Linux version.
I've tried using :set guioptions+=a as mentioned here but that doesn't seem to work. Also, +clipboard returns 1, so I believe it should be enabled.
"*y"*p? – statox Jun 26 '19 at 15:31