Skip to content

Commit

Permalink
fix(nvim): alt-up/down to move lines
Browse files Browse the repository at this point in the history
  • Loading branch information
mscharley committed Sep 22, 2024
1 parent f7b29f6 commit f960d54
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xdg-config/nvim%lua%usermod/keybindings.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
-- Navigate by visual line instead of logical line
vim.keymap.set("", "<up>", "gk")
vim.keymap.set("", "<down>", "gj")
vim.keymap.set("", "<up>", "gk")

-- Move line up/down
vim.keymap.set("n", "<A-up>", "dd<up>P")
vim.keymap.set("n", "<A-down>", "ddp")

-- Navigate between split buffers
vim.keymap.set("n", "<C-A-up>", "<C-w><up>")
Expand Down

0 comments on commit f960d54

Please sign in to comment.