I use the same configuration on Windows as I do on Linux. It works normally on Linux but on Windows (vim and gvim) I am getting this odd behavior when putting lines with P:
Steps:
- I yank a line with
Yin Normal Mode - I go to another line and put it using
P. I expect the contents of the"register to be pasted on the current line, with the contents of the current line shifted to the line below. This is what happens on Linux with the same configuration. Instead, the contents of the*register gets pasted on the end of the current line.
If I don't get anyone here telling me that they know what the problem might be I will have to find the problem through the process of elimination.
Ppast the line yanked in front of the current line. – Vivian De Smedt Sep 14 '22 at 07:47I yank a line with Y in Normal ModeYis equivalent ofy$, notyy, except for Neovim defaults. – Matt Sep 14 '22 at 08:11Ybehaving likeyyinstead ofy$(set nocompatibleis part of_vimrc) – Vivian De Smedt Sep 14 '22 at 09:33Yis the same asyy, except if it was mapped toy$(user config or Neovim defaults, etc.). The OP should tryyyanyway, as the words "same config" are often misleading.Ygets remapped quite often. – Matt Sep 14 '22 at 09:44:verbose set clipboard?? More generally, How to debug my vimrc – D. Ben Knoble Sep 14 '22 at 14:09