From bd53f98a7fe6385a159b054be2ce1fdd9bbb6d26 Mon Sep 17 00:00:00 2001 From: Huck Boles Date: Sat, 13 May 2023 15:36:28 -0500 Subject: [PATCH] maps for moving visual lines --- lua/map.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/map.lua b/lua/map.lua index a32203f..703d284 100644 --- a/lua/map.lua +++ b/lua/map.lua @@ -8,6 +8,10 @@ vim.keymap.set('n', '', 'bprev') vim.keymap.set('n', 'j', 'gj') vim.keymap.set('n', 'k', 'gk') +-- move visual selections +vim.keymap.set('v', 'J', ":m '>+1gv=gv") +vim.keymap.set('v', 'K', ":m '<-2gv=gv") + -- quick redo last macro vim.keymap.set('n', 'Q', '@@') -- 2.45.2