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: indent in visual mode uses only one <

Conrad Irwin20d8a2a1ec8f
diff --git a/assets/keymaps/vim.json b/assets/keymaps/vim.json
index 639daef6143..84f9689c2cb 100644
--- a/assets/keymaps/vim.json
+++ b/assets/keymaps/vim.json
@@ -314,8 +314,8 @@
"vim::SwitchMode",
"Normal"
],
- "> >": "editor::Indent",
- "< <": "editor::Outdent"
+ ">": "editor::Indent",
+ "<": "editor::Outdent"
}
},
{
diff --git a/crates/vim/src/test.rs b/crates/vim/src/test.rs
index a6efbd4da1d..95962f85b89 100644
--- a/crates/vim/src/test.rs
+++ b/crates/vim/src/test.rs
@@ -137,7 +137,7 @@ async fn test_indent_outdent(cx: &mut gpui::TestAppContext) {
cx.assert_editor_state("aa\nbˇb\ncc");
// works in visuial mode
- cx.simulate_keystrokes(["shift-v", "down", ">", ">"]);
+ cx.simulate_keystrokes(["shift-v", "down", ">"]);
cx.assert_editor_state("aa\n b«b\n cˇ»c");
}