gj gk
This commit is contained in:
parent
3f6361b0e7
commit
67040b47cc
|
@ -20,6 +20,10 @@ vim.keymap.set({ 't', 'i', 'v', 'n' }, '<A-k>', '<C-u>', { desc = 'move a many l
|
||||||
vim.keymap.set({ 'v', 'n' }, 'H', '<Home>', { desc = 'move to start of line' })
|
vim.keymap.set({ 'v', 'n' }, 'H', '<Home>', { desc = 'move to start of line' })
|
||||||
vim.keymap.set({ 'v', 'n' }, 'L', '<End>', { desc = 'move to end of line' })
|
vim.keymap.set({ 'v', 'n' }, 'L', '<End>', { desc = 'move to end of line' })
|
||||||
|
|
||||||
|
-- make j and k move by visual lines, not actual lines
|
||||||
|
vim.keymap.set({ 'v', 'n' }, 'j', 'gj', { desc = 'move up' })
|
||||||
|
vim.keymap.set({ 'v', 'n' }, 'k', 'gk', { desc = 'move down' })
|
||||||
|
|
||||||
-- move+scroll
|
-- move+scroll
|
||||||
vim.keymap.set({ 'v', 'n' }, 'zk', '<C-e>', { desc = 'move and scroll up' })
|
vim.keymap.set({ 'v', 'n' }, 'zk', '<C-e>', { desc = 'move and scroll up' })
|
||||||
vim.keymap.set({ 'v', 'n' }, 'zj', '<C-y>', { desc = 'move and scroll down' })
|
vim.keymap.set({ 'v', 'n' }, 'zj', '<C-y>', { desc = 'move and scroll down' })
|
||||||
|
|
Loading…
Reference in New Issue