vim: Rewrite paste (#2878)
A complete overhaul of the way vim did paste. This ended up being more involved than I expected because of the variety of different behaviors that vim exhibits when copying/pasting between various modes. Release Notes: - vim: support P for paste before ([#1869](https://github.com/zed-industries/community/issues/1869)). - vim: support P in visual modes for paste without overriding clipboard - vim: fix position when using `p` on text copied outside zed ([#469](https://github.com/zed-industries/community/issues/469)). - vim: fix indentation when using `p` on text copied from zed ([#1015](https://github.com/zed-industries/community/issues/1015)). - all: Separate copied multi-selections by `\n`
This commit is contained in:
+13
-1
@@ -287,6 +287,12 @@
|
||||
"shift-o": "vim::InsertLineAbove",
|
||||
"~": "vim::ChangeCase",
|
||||
"p": "vim::Paste",
|
||||
"shift-p": [
|
||||
"vim::Paste",
|
||||
{
|
||||
"before": true
|
||||
}
|
||||
],
|
||||
"u": "editor::Undo",
|
||||
"ctrl-r": "editor::Redo",
|
||||
"/": "vim::Search",
|
||||
@@ -375,7 +381,13 @@
|
||||
"d": "vim::VisualDelete",
|
||||
"x": "vim::VisualDelete",
|
||||
"y": "vim::VisualYank",
|
||||
"p": "vim::VisualPaste",
|
||||
"p": "vim::Paste",
|
||||
"shift-p": [
|
||||
"vim::Paste",
|
||||
{
|
||||
"preserveClipboard": true
|
||||
}
|
||||
],
|
||||
"s": "vim::Substitute",
|
||||
"c": "vim::Substitute",
|
||||
"~": "vim::ChangeCase",
|
||||
|
||||
Reference in New Issue
Block a user