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 `ctrl-w ctrl-q` and `ctrl-w ctrl-c` to close active pane instead of all panes (#24018)

Saurabh3d3ac2c470db
diff --git a/assets/keymaps/vim.json b/assets/keymaps/vim.json
index eb8e13ce429..ba2cf7ae7b0 100644
--- a/assets/keymaps/vim.json
+++ b/assets/keymaps/vim.json
@@ -611,10 +611,10 @@
"ctrl-w shift-s": "pane::SplitHorizontal",
"ctrl-w ctrl-s": "pane::SplitHorizontal",
"ctrl-w s": "pane::SplitHorizontal",
- "ctrl-w ctrl-c": "pane::CloseAllItems",
- "ctrl-w c": "pane::CloseAllItems",
- "ctrl-w ctrl-q": "pane::CloseAllItems",
- "ctrl-w q": "pane::CloseAllItems",
+ "ctrl-w ctrl-c": "pane::CloseActiveItem",
+ "ctrl-w c": "pane::CloseActiveItem",
+ "ctrl-w ctrl-q": "pane::CloseActiveItem",
+ "ctrl-w q": "pane::CloseActiveItem",
"ctrl-w ctrl-o": "workspace::CloseInactiveTabsAndPanes",
"ctrl-w o": "workspace::CloseInactiveTabsAndPanes",
"ctrl-w ctrl-n": "workspace::NewFileSplitHorizontal",