From f76220a245deae8f8a6717eca81d168971a02aec Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Sat, 28 Sep 2024 10:42:59 +0700 Subject: [PATCH] config(zed): keymap for vim mode --- data/zed/keymap.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/data/zed/keymap.json b/data/zed/keymap.json index ee38638..6c7bcfc 100644 --- a/data/zed/keymap.json +++ b/data/zed/keymap.json @@ -5,5 +5,14 @@ "tab": "zed::NoAction", "alt-right": "editor::AcceptInlineCompletion" } + }, + { + "context": "Editor && (vim_mode == normal || vim_mode == visual)", + "bindings": { + "; d": ["workspace::SendKeystrokes", "\" _ d"], + "; c": ["workspace::SendKeystrokes", "\" _ c"], + "; x": ["workspace::SendKeystrokes", "\" _ x"], + "space f": "editor::Format" + } } ]