vim: use ALT-{HL} to navigate tabs

This commit is contained in:
Casper V. Kristensen 2024-08-18 02:59:05 +02:00
parent 512354d6b9
commit 6b33fe8c59

View file

@ -121,6 +121,10 @@
vim.keymap.set("n", "<C-k>", "<C-w><C-k>")
vim.keymap.set("n", "<C-l>", "<C-w><C-l>")
-- Use ALT-{HL} to navigate tabs
vim.keymap.set("n", "<A-h>", "gT");
vim.keymap.set("n", "<A-l>", "gt");
-- Use <Escape> to clear search highlight. This is normally bound to
-- CTRL-L, but we use that to navigate windows instead.
vim.keymap.set("n", "<Esc>", vim.cmd.noh)