Use jdhao/better-escape.vim to handle jk as escape mappings
only for insert mode ( so also works on terminal too ) remove visual mode key binding, till we find a proper solution, because it is super annoying right now Original pr here: https://github.com/siduck76/NvChad/pull/160
This commit is contained in:
@@ -18,11 +18,6 @@ map("v", "x", [=[ "_x ]=], opt)
|
||||
this line too ]]
|
||||
--
|
||||
|
||||
-- escape with 'jk' mapping
|
||||
vim.api.nvim_set_keymap("i", "jk", "<esc>", {})
|
||||
vim.api.nvim_set_keymap("v", "jk", "<esc>", {})
|
||||
vim.api.nvim_set_keymap("t", "jk", "<esc>", {})
|
||||
|
||||
-- Don't copy the replaced text after pasting in visual mode
|
||||
map("v", "p", '"_dP', opt)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user