nvim: keymappings: Do not use 'jk' for Esc anymore

With 60% keyboard, Esc is easier to hit and in sway, may be we should
map Caps to Esc.
This commit is contained in:
Sanchayan Maity 2021-04-07 20:04:40 +05:30
parent cdd87b94d8
commit 915a5427e3
1 changed files with 0 additions and 5 deletions

View File

@ -1,10 +1,5 @@
local remap = vim.api.nvim_set_keymap
-- Remap escape keys to something usable on home row
remap('i', 'jk', '<Esc>', { noremap = true })
remap('c', 'jk', '<C-C>', { noremap = true })
remap('i', '<Esc>', '<Nop>', { noremap = true })
remap('c', '<Esc>', '<Nop>', { noremap = true })
-- Use Q to execute default register.
remap('n', 'Q', '<Nop>', { noremap = true })
-- Save