This commit is contained in:
Christoph J. Scherr 2024-07-04 17:53:31 +02:00
parent ea18833a7c
commit e626579fd9
1 changed files with 5 additions and 5 deletions

View File

@ -27,14 +27,14 @@ vim.keymap.set({ 'v', 'n' }, 'zj', '<C-y>', { desc = 'move and scroll down' })
-- go to beginning and end in insert mode -- go to beginning and end in insert mode
vim.keymap.set('i', '<C-s>', '<esc>^i', { desc = 'Go to the start of the line' }) vim.keymap.set('i', '<C-s>', '<esc>^i', { desc = 'Go to the start of the line' })
vim.keymap.set('i', '<C-e>', '<End>', { desc = 'Go to the end of the line' }) vim.keymap.set('i', '<C-e>', '<End>', { desc = 'Go to the end of the line' })
vim.keymap.set('i', '<C-w>', '<esc>wi', { desc = 'Go a word further' }) vim.keymap.set('i', '<C-w>', '<esc>lwi', { desc = 'Go a word further' })
vim.keymap.set('i', '<C-b>', '<esc>bi', { desc = 'Go a word backward' }) vim.keymap.set('i', '<C-b>', '<esc>lbi', { desc = 'Go a word backward' })
-- navigate hjkl in insert mode -- navigate hjkl in insert mode
vim.keymap.set('i', '<C-h>', '<Left>', { desc = 'Move left' }) vim.keymap.set('i', '<C-h>', '<Left>', { desc = 'Move left' })
vim.keymap.set('i', '<C-j>', '<Right>', { desc = 'Move right' }) vim.keymap.set('i', '<C-j>', '<Down>', { desc = 'Move down' })
vim.keymap.set('i', '<C-k>', '<Down>', { desc = 'Move down' }) vim.keymap.set('i', '<C-k>', '<Up>', { desc = 'Move up' })
vim.keymap.set('i', '<C-l>', '<Up>', { desc = 'Move up' }) vim.keymap.set('i', '<C-l>', '<Right>', { desc = 'Move right' })
-- move to window -- move to window
-- See `:help wincmd` for a list of all window commands -- See `:help wincmd` for a list of all window commands