SebastianMuskalla / ModelessVim

Configuration files to turn vim into a modeless editor.
MIT License
279 stars 4 forks source link

very weird and unintuitive ctrl-v paste #1

Closed Jan69 closed 1 year ago

Jan69 commented 1 year ago

paste should use P not p, very weird and unintuitive ctrl-v the way it is now trivial fix, like

noremap! <C-V> <C-O>gP

other than that, pretty cool project!

octoshrimpy commented 1 year ago

ctrl-P is often used for opening print dialogs. V was chosen was it i close to C, allowing single-hand macro operation in standard QWERTY/QWERTZ keyboards. ctrl-V is the industry standard across many many apps and OSes, as well as ctrl-P for printing.

Jan69 commented 1 year ago

ctrl-P is often used for opening print dialogs. V was chosen was it i close to C, allowing single-hand macro operation in standard QWERTY/QWERTZ keyboards. ctrl-V is the industry standard across many many apps and OSes, as well as ctrl-P for printing.

you're not understanding... obviously keep ctrl-V on the user side... the problem is that pasting with THIS config, does NOT work the same as in EVERY OTHER APP OUT THERE, which is caused by using lowercase p, instead of uppercase P, on vim's side config... in EVERY app out there, pasting stuff pastes AFTER the cursor...

SebastianMuskalla commented 1 year ago

Hey! Thanks for opening this issue. I didn't realize that there are issues with copying/pasting as I am using Windows Terminal, which overrides Ctrl+C/V.

Unfortunately, even in another terminal emulator, I struggle to reproduce the issue.

in EVERY app out there, pasting stuff pastes AFTER the cursor...

This should be exactly what gp does: From :help p:

["x]p                   Put the text [from register x] after the cursor
                        [count] times.
["x]P                   Put the text [from register x] before the cursor
                        [count] times.

In my tests, Ctrl+V seems to behave as it should: It pastes the copied text after the cursor (p command) and then moves the cursor after the pasted text (g prefix).

Am I making a mistake? Can you help me to reproduce the issue you are facing?