From: Huck Boles Date: Sat, 13 May 2023 20:36:28 +0000 (-0500) Subject: maps for moving visual lines X-Git-Url: https://git.huck.website/?a=commitdiff_plain;h=bd53f98a7fe6385a159b054be2ce1fdd9bbb6d26;p=nvim.git maps for moving visual lines --- 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', '@@')