fix line move down
This commit is contained in:
parent
bb3d5261e2
commit
4a398f3e8d
|
@ -103,7 +103,7 @@ vim.keymap.set({ 'n' }, '<leader>s', 's', { desc = '[S]ubstitute hovered text' }
|
||||||
-- do something useful with the arrow keys:
|
-- do something useful with the arrow keys:
|
||||||
-- move lines up/down and change indentation
|
-- move lines up/down and change indentation
|
||||||
vim.keymap.set({ 'n', 'v' }, '<Up>', '<cmd> move-2<cr>', { desc = 'Move line up' })
|
vim.keymap.set({ 'n', 'v' }, '<Up>', '<cmd> move-2<cr>', { desc = 'Move line up' })
|
||||||
vim.keymap.set({ 'n', 'v' }, '<Down>', '<cmd> move+2<cr>', { desc = 'Move line down' })
|
vim.keymap.set({ 'n', 'v' }, '<Down>', '<cmd> move+1<cr>', { desc = 'Move line down' })
|
||||||
vim.keymap.set({ 'n', 'v' }, '<Left>', '<<', { desc = 'Less indentation' })
|
vim.keymap.set({ 'n', 'v' }, '<Left>', '<<', { desc = 'Less indentation' })
|
||||||
vim.keymap.set({ 'n', 'v' }, '<Right>', '>>', { desc = 'More indentation' })
|
vim.keymap.set({ 'n', 'v' }, '<Right>', '>>', { desc = 'More indentation' })
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue