Bind § to <Esc> in insert mode

This commit is contained in:
Jonas Hagberg 2024-04-18 14:58:55 +02:00
parent 70e24df473
commit f5c963316d
1 changed files with 3 additions and 0 deletions

View File

@ -194,6 +194,9 @@ vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right win
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
-- Bind § to <Esc> in insert mode
vim.keymap.set('i', '§', '<Esc>')
-- [[ Basic Autocommands ]]
-- See `:help lua-guide-autocommands`