fix keys
This commit is contained in:
parent
ea18833a7c
commit
e626579fd9
|
@ -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
|
||||
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-w>', '<esc>wi', { desc = 'Go a word further' })
|
||||
vim.keymap.set('i', '<C-b>', '<esc>bi', { desc = 'Go a word backward' })
|
||||
vim.keymap.set('i', '<C-w>', '<esc>lwi', { desc = 'Go a word further' })
|
||||
vim.keymap.set('i', '<C-b>', '<esc>lbi', { desc = 'Go a word backward' })
|
||||
|
||||
-- navigate hjkl in insert mode
|
||||
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-k>', '<Down>', { desc = 'Move down' })
|
||||
vim.keymap.set('i', '<C-l>', '<Up>', { desc = 'Move up' })
|
||||
vim.keymap.set('i', '<C-j>', '<Down>', { desc = 'Move down' })
|
||||
vim.keymap.set('i', '<C-k>', '<Up>', { desc = 'Move up' })
|
||||
vim.keymap.set('i', '<C-l>', '<Right>', { desc = 'Move right' })
|
||||
|
||||
-- move to window
|
||||
-- See `:help wincmd` for a list of all window commands
|
||||
|
|
Loading…
Reference in New Issue