make cursor move with the row

based on a comment in: https://vi.stackexchange.com/a/8436
Makes it so the cursor moves with the row and work as expected.
pull/191/head
abxh 2 years ago committed by GitHub
parent 9a928f56a1
commit 7a623ed3a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -45,8 +45,8 @@ keymap("i", "jk", "<ESC>", opts)
-- Visual --
-- Stay in indent mode
keymap("v", "<", "<gv", opts)
keymap("v", ">", ">gv", opts)
keymap("v", "<", "<gv^", opts)
keymap("v", ">", ">gv^", opts)
-- Move text up and down
keymap("v", "<A-j>", ":m .+1<CR>==", opts)

Loading…
Cancel
Save