vim: indent in visual mode uses only one <

Conrad Irwin created

Fixes: zed-industries/community#1562

Change summary

assets/keymaps/vim.json | 4 ++--
crates/vim/src/test.rs  | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)

Detailed changes

assets/keymaps/vim.json 🔗

@@ -314,8 +314,8 @@
         "vim::SwitchMode",
         "Normal"
       ],
-      "> >": "editor::Indent",
-      "< <": "editor::Outdent"
+      ">": "editor::Indent",
+      "<": "editor::Outdent"
     }
   },
   {

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");
 }