Closed lkabuci closed 1 year ago
I tried to use keymap("v", "<A-k>", ":m .-2<CR>==gv", opts)
but it didn't work
Can you try this? It's from my config and I think it works.
-- Move text up
vim.keymap.set("v", "<A-j>", ":m '>+1<CR>gv=gv")
-- Move text down
vim.keymap.set("v", "<A-k>", ":m '<-2<CR>gv=gv")
I would like to work on this issue. Can you assign it to me?
i get an error while moving a chunk of lines down "E134: Cannot move a range of lines into itself" https://github.com/LunarVim/Neovim-from-scratch/blob/2c7a64973602e8d9d18f6de75022014e96fa576a/lua/user/keymaps.lua#L54