From 8ad23b6b61e988ad8f7c720898cab28d01f15da0 Mon Sep 17 00:00:00 2001 From: _N0x <_n0x@noreply.git.n0x.io> Date: Mon, 21 Feb 2022 09:37:08 +0100 Subject: [PATCH] Disable Arrow keys to force myself to the Vim-Way of movement --- nvim/.config/nvim/lua/user/keymaps.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nvim/.config/nvim/lua/user/keymaps.lua b/nvim/.config/nvim/lua/user/keymaps.lua index 8536b70..80decdf 100644 --- a/nvim/.config/nvim/lua/user/keymaps.lua +++ b/nvim/.config/nvim/lua/user/keymaps.lua @@ -18,6 +18,17 @@ vim.g.maplocalleader = " " -- term_mode = "t", -- command_mode = "c", +-- Disable Arrow keys to force myself to the Vim-Way of movement -- +keymap("i", "", "", opts) +keymap("i", "", "", opts) +keymap("i", "", "", opts) +keymap("i", "", "", opts) + +keymap("n", "", "", opts) +keymap("n", "", "", opts) +keymap("n", "", "", opts) +keymap("n", "", "", opts) + -- Remap some language specific stuff -- keymap("n", "ü", "{", opts) keymap("n", "", "", opts)