map jk escape from terminal buffer

This commit is contained in:
siduck76 2021-07-18 16:10:23 +05:30 committed by GitHub
parent cb3f7538e8
commit 18f3b8b93e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -141,7 +141,7 @@ map("n", "<TAB>", [[<Cmd>BufferLineCycleNext<CR>]], opt)
map("n", "<S-TAB>", [[<Cmd>BufferLineCyclePrev<CR>]], opt) map("n", "<S-TAB>", [[<Cmd>BufferLineCyclePrev<CR>]], opt)
-- use ESC to turn off search highlighting -- use ESC to turn off search highlighting
map("n", "<Esc>", ":noh<CR>", opts) map("n", "<Esc>", ":noh<CR>", opt)
-- get out of terminal with ESC -- get out of terminal with jk
map("t", "<Esc>", "<C-\\><C-n>", opts) map("t", "jk", "<C-\\><C-n>", opt)