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:
parent
cdd87b94d8
commit
915a5427e3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue