VsVim icon indicating copy to clipboard operation
VsVim copied to clipboard

Change behaviour of v_P (Visual Mode Shift-P) to not change unnamed register as introduced in vim 8.2.4242

Open AndreasMrq opened this issue 1 year ago • 1 comments

Feature category

  • Check(Type 'x') any that Applicable item:
    • [x ] Vim
    • [ ] Vim plugin

If the function you request is realized by Vim or Vim plugin, When you link the URL that is related, We will make it easier to understand its function.

Is your feature request related to a problem? Please describe. I often want to keep the content of the unnamed register when pasting over a selection in visual mode. This behaviour was introduced in vim 8.2.4242 by differentiating between p ( will change unnamed register) and P (will not change unnamed register).

Describe the solution you'd like When in Visual Mode I would like to have P not change the unnamed register.

Describe alternatives you've considered Alternatives include yanking into named registers and then pasting from there. This is arguably more cumbersome.

Additional context The described behaviour is already implemented in vim 8.2.4242 ( https://vimhelp.org/change.txt.html#v_P ), NeoVim (https://neovim.io/doc/user/change.html#v_P) also in the VsCode Vim Plugin.

Note: Please refer to the following. The goals of this project are written. https://github.com/VsVim/VsVim/blob/master/Documentation/Project%20Goals.md

AndreasMrq avatar Mar 08 '24 08:03 AndreasMrq

This seems like it would be a good change. I didn't know about this feature and the old behaviour always used to catch me out.

nosami avatar Mar 08 '24 11:03 nosami