Disable Arrow keys to force myself to the Vim-Way of movement

This commit is contained in:
_N0x 2022-02-21 09:37:08 +01:00
parent 5ff77c5bf3
commit 8ad23b6b61

View File

@ -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", "<Up>", "<Nop>", opts)
keymap("i", "<Down>", "<Nop>", opts)
keymap("i", "<Left>", "<Nop>", opts)
keymap("i", "<Right>", "<Nop>", opts)
keymap("n", "<Up>", "<Nop>", opts)
keymap("n", "<Down>", "<Nop>", opts)
keymap("n", "<Left>", "<Nop>", opts)
keymap("n", "<Right>", "<Nop>", opts)
-- Remap some language specific stuff --
keymap("n", "ü", "{", opts)
keymap("n", "<C-ü>", "<C-{>", opts)