diff --git a/lua/lazyvim/config/keymaps.lua b/lua/lazyvim/config/keymaps.lua index b32f032c..a89a45c8 100644 --- a/lua/lazyvim/config/keymaps.lua +++ b/lua/lazyvim/config/keymaps.lua @@ -30,12 +30,12 @@ map("n", "", "vertical resize -2", { desc = "Decrease window wi map("n", "", "vertical resize +2", { desc = "Increase window width" }) -- Move Lines -map("n", "", ":m .+1==", { desc = "Move down" }) +map("n", "", "m .+1==", { desc = "Move down" }) +map("n", "", "m .-2==", { desc = "Move up" }) +map("i", "", "m .+1==gi", { desc = "Move down" }) +map("i", "", "m .-2==gi", { desc = "Move up" }) map("v", "", ":m '>+1gv=gv", { desc = "Move down" }) -map("i", "", ":m .+1==gi", { desc = "Move down" }) -map("n", "", ":m .-2==", { desc = "Move up" }) map("v", "", ":m '<-2gv=gv", { desc = "Move up" }) -map("i", "", ":m .-2==gi", { desc = "Move up" }) -- buffers if Util.has("bufferline.nvim") then