From b761b44ebbd077673c3bc5ed64ed04a1fe4f2e0d Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Wed, 11 Sep 2024 14:24:24 +0200 Subject: [PATCH] change insert maps --- lua/custom/maps/init.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/custom/maps/init.lua b/lua/custom/maps/init.lua index 8cdc738..8db3234 100644 --- a/lua/custom/maps/init.lua +++ b/lua/custom/maps/init.lua @@ -29,10 +29,11 @@ vim.keymap.set({ 'v', 'n' }, 'zk', '', { desc = 'move and scroll up' }) vim.keymap.set({ 'v', 'n' }, 'zj', '', { desc = 'move and scroll down' }) -- go to beginning and end in insert mode -vim.keymap.set('i', '', '^i', { desc = 'Go to the start of the line' }) -vim.keymap.set('i', '', '', { desc = 'Go to the end of the line' }) +vim.keymap.set('i', '', '^i', { desc = 'Go to the start of the line' }) +vim.keymap.set('i', '', '', { desc = 'Go to the end of the line' }) vim.keymap.set('i', '', 'lwi', { desc = 'Go a word further' }) vim.keymap.set('i', '', 'lbi', { desc = 'Go a word backward' }) +vim.keymap.set('i', '', 'lea', { desc = 'Go a to next word end' }) -- navigate hjkl in insert mode vim.keymap.set('i', '', '', { desc = 'Move left' })