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
Y
in 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.
P
past the line yanked in front of the current line.I yank a line with Y in Normal Mode
Y
is equivalent ofy$
, notyy
, except for Neovim defaults.Y
behaving likeyy
instead ofy$
(set nocompatible
is part of_vimrc
)Y
is the same asyy
, except if it was mapped toy$
(user config or Neovim defaults, etc.). The OP should tryyy
anyway, as the words "same config" are often misleading.Y
gets remapped quite often.:verbose set clipboard?
? More generally, How to debug my vimrc