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
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 paste
abcin any opened vim with
"+p. But if I copy
123from one instance of vim with
"*y, I can paste
123in that instance, but if I switch to another,
abcwill paste instead of
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.