Skip to content

Commit 0f511a4

Browse files
committed
🔧 remap <C+[> to <Esc>
1 parent d350db2 commit 0f511a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

init.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper win
200200
-- vim.keymap.set("n", "<C-S-j>", "<C-w>J", { desc = "Move window to the lower" })
201201
-- vim.keymap.set("n", "<C-S-k>", "<C-w>K", { desc = "Move window to the upper" })
202202

203+
-- Personal custom keymaps
204+
vim.keymap.set({ 'n', 't', 'v', 'i' }, '<C-[>', '<Esc>', { desc = 'Exit mode' })
205+
203206
-- [[ Basic Autocommands ]]
204207
-- See `:help lua-guide-autocommands`
205208

0 commit comments

Comments
 (0)