From c5fe5f11396e0eeac765880eb6a17afbfbd53f78 Mon Sep 17 00:00:00 2001 From: Michael Sloan Date: Mon, 10 Feb 2025 20:03:53 -0700 Subject: [PATCH] Make `ctrl-l` the default vim binding for AcceptEditPrediction (#24599) Release Notes: - N/A --- assets/keymaps/vim.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/assets/keymaps/vim.json b/assets/keymaps/vim.json index 7e202c2448b91468ed500061bba0e51328c20d96..5f2fb2b247a9838e4a2f417b10b3406f1922a649 100644 --- a/assets/keymaps/vim.json +++ b/assets/keymaps/vim.json @@ -698,7 +698,15 @@ { "context": "edit_prediction && !edit_prediction_requires_modifier", "bindings": { + // "tab" is bound in the vim bindings above so that default editor behavior isn't used, so + // need to rebind it even though this is in the base keymap. "tab": "editor::AcceptEditPrediction" } + }, + { + "context": "edit_prediction", + "bindings": { + "ctrl-l": "editor::AcceptEditPrediction" + } } ]