0

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:

  1. I yank a line with Y in Normal Mode
  2. 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.

Maxim Kim
  • 13,376
  • 2
  • 18
  • 46
paradroid
  • 367
  • 2
  • 10

1 Answers1

0

My configuration is split into different files, so I renamed one at a time to disable them. When I found the file with the problem setting I commented out half of it, found the problem had gone and then through further elimation I found the culprit:

set clipboard+=unnamedplus

:help unnnamedplus
unnamedplus A variant of the "unnamed" flag which uses the clipboard register '+' (quoteplus) instead of register '' for all yank, delete, change and put operations which would normally go to the unnamed register. When "unnamed" is also included to the option, yank operations (but not delete, change or put) will additionally copy the text into register ''. Only available with the +X11 feature. Availability can be checked with: > if has('unnamedplus')

paradroid
  • 367
  • 2
  • 10