Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

vim: Fix minor keybinding bugs (#13086)

Conrad Irwin7cc2538fe19b
diff --git a/assets/keymaps/vim.json b/assets/keymaps/vim.json
index 767de61e73d..a45b3a25d3e 100644
--- a/assets/keymaps/vim.json
+++ b/assets/keymaps/vim.json
@@ -39,6 +39,7 @@
"right": "vim::Right",
"space": "vim::Space",
"$": "vim::EndOfLine",
+ "end": "vim::EndOfLine",
"^": "vim::FirstNonWhitespace",
"_": "vim::StartOfLineDownward",
"g _": "vim::EndOfLineDownward",
@@ -140,7 +141,8 @@
"ctrl-q": "vim::ToggleVisualBlock",
"shift-k": "editor::Hover",
"shift-r": "vim::ToggleReplace",
- "0": "vim::StartOfLine", // When no number operator present, use start of line motion
+ "0": "vim::StartOfLine",
+ "home": "vim::StartOfLine",
"ctrl-f": "vim::PageDown",
"pagedown": "vim::PageDown",
"ctrl-b": "vim::PageUp",
@@ -408,7 +410,7 @@
}
},
{
- "context": "Editor && VimCount",
+ "context": "Editor && VimCount && vim_mode != insert",
"bindings": {
"0": ["vim::Number", 0]
}