Fix terminal buffer format bug, & enable escape from terminal & visual mdoes

This commit is contained in:
Galen Rowell
2021-07-18 15:42:54 +10:00
parent cf8b2ce1cb
commit 1bedbbe5c4
2 changed files with 4 additions and 2 deletions

View File

@@ -18,7 +18,10 @@ 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)