added keymaps for alt arrow key to move lines up and down

This commit is contained in:
Nurtrantpoem19 2026-06-11 17:15:04 -04:00
parent 537b54f18f
commit fdf06b78bc
1 changed files with 5 additions and 0 deletions

View File

@ -11,3 +11,8 @@ for file_name, type in vim.fs.dir(plugins_dir) do
require('custom.plugins.' .. module)
end
end
--custom keymaps i will set here
--
--1) this one is for moving lines like in vscode, up and down with alt j or down with alt-k
vim.keymap.set("n", "<A-j>", ":m .+1<CR>==")
vim.keymap.set("n", "<A-k>", ":m .-2<CR>==")