helix: Initial support for helix-mode paste (#37963)

This is a redo of #29776. I went for a separate function -- instead of
adding a bunch of conditions to `vim::Paste` -- because there were quite
a few differences.

Release Notes:

- Added a `vim::HelixPaste` command that imitates Helix's paste behavior

---------

Co-authored-by: Jakub Konka <kubkon@jakubkonka.com>
This commit is contained in:
jneem
2025-09-19 09:42:04 +00:00
committed by GitHub
co-authored by Jakub Konka
parent e62dd2a0e5
commit 66f2fda625
3 changed files with 417 additions and 0 deletions
+2
View File
@@ -433,6 +433,8 @@
"h": "vim::WrappingLeft",
"l": "vim::WrappingRight",
"y": "vim::HelixYank",
"p": "vim::HelixPaste",
"shift-p": ["vim::HelixPaste", { "before": true }],
"alt-;": "vim::OtherEnd",
"ctrl-r": "vim::Redo",
"f": ["vim::PushFindForward", { "before": false, "multiline": true }],