From ec0ddd481c785833c5caac9c9d22889b9e963883 Mon Sep 17 00:00:00 2001 From: Iordanis Petkakis Date: Tue, 29 Aug 2023 19:07:56 +0300 Subject: [PATCH] fix(keymaps): change `v` mode to `x` mode for `save file` (#1262) While trying to disable `` entirely by `vim.keymap.del({ "i", "v","n", "s" }, "")` in my own `keymaps.lua`, I got an error on reopening Neovim `No such mapping`. After tinkering around a bit, I changed `v` to `x`, since `v` incorporates both `x` and `s` and the error stopped occuring. --- lua/lazyvim/config/keymaps.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazyvim/config/keymaps.lua b/lua/lazyvim/config/keymaps.lua index 84427e16..54107199 100644 --- a/lua/lazyvim/config/keymaps.lua +++ b/lua/lazyvim/config/keymaps.lua @@ -80,7 +80,7 @@ map("i", ".", ".u") map("i", ";", ";u") -- save file -map({ "i", "v", "n", "s" }, "", "w", { desc = "Save file" }) +map({ "i", "x", "n", "s" }, "", "w", { desc = "Save file" }) --keywordprg map("n", "K", "norm! K", { desc = "Keywordprg" })