From 7a623ed3a91784077fe227c6c4fb9983c2d2bb88 Mon Sep 17 00:00:00 2001 From: abxh <83485102+abxh@users.noreply.github.com> Date: Fri, 8 Jul 2022 21:12:43 +0000 Subject: [PATCH] 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. --- lua/user/keymaps.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/user/keymaps.lua b/lua/user/keymaps.lua index 1178b7f..4902091 100644 --- a/lua/user/keymaps.lua +++ b/lua/user/keymaps.lua @@ -45,8 +45,8 @@ keymap("i", "jk", "", opts) -- Visual -- -- Stay in indent mode -keymap("v", "<", "", ">gv", opts) +keymap("v", "<", "", ">gv^", opts) -- Move text up and down keymap("v", "", ":m .+1==", opts)