From ec1e771f690de8ffbb060c5863e14a9f4f936720 Mon Sep 17 00:00:00 2001 From: Patrick Auernig Date: Thu, 31 Aug 2023 20:20:20 +0200 Subject: [PATCH] Move cursor to right after exiting insert mode Otherwise the cursor will be shifted to the left --- lua/valeth/keymaps.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/valeth/keymaps.lua b/lua/valeth/keymaps.lua index 868dfa5..88d4d53 100644 --- a/lua/valeth/keymaps.lua +++ b/lua/valeth/keymaps.lua @@ -13,7 +13,7 @@ map({"n", "v", "i"}, "", "w") map("n", "s", "") -- Exit insert mode by quickly pressing jk -map("i", "jk", "") +map("i", "jk", "l", { silent = true }) -- This avoids accidentially recording a macro map({"n", "v"}, "", "q")