Skip to content

Commit f5c9633

Browse files
author
Jonas Hagberg
committed
Bind § to <Esc> in insert mode
1 parent 70e24df commit f5c9633

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
@@ -194,6 +194,9 @@ vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right win
194194
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
195195
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
196196

197+
-- Bind § to <Esc> in insert mode
198+
vim.keymap.set('i', '§', '<Esc>')
199+
197200
-- [[ Basic Autocommands ]]
198201
-- See `:help lua-guide-autocommands`
199202

0 commit comments

Comments
 (0)