1111 2222 3333 4444
yyP on 2222, the system clipboard is pasted in, not 2222 as expected. However,
:reg shows that 2222 was saved to register
". I expected it to save to th
ddP on 4444, everything works as expected: That line is deleted and then 4444 is pasted. So, it seems delete is working as expected, but yank is not.
My current solution is to use
undo until I figure out why yanks aren't working.
- vim version 8.1
- Windows 10
- _vimrc does not have
- Also, interestingly, delete not only saves to a vim register, but also to the system clipboard. My impression is that this is abnormal, but I do prefer it this way.
:set clipboardin command mode and it said
clipboard=unnamedplus. I changed it using
:set clipboard=unnamedand now vim yanks to the system register, and indeed
unnamed. However, when I put
set clipboard=unnamedin my _vimrc file, it doesn't take effect. Vim is still starting with
unnamedplus. Why is this?