From a507285d10865e24d4a19297dd930473337a0ff5 Mon Sep 17 00:00:00 2001 From: Daniel Lynn Date: Tue, 14 Dec 2021 09:59:32 -0600 Subject: [PATCH] Visual block movements --- nvim/keybindings.vimrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nvim/keybindings.vimrc b/nvim/keybindings.vimrc index b4207ae..d8de9e6 100644 --- a/nvim/keybindings.vimrc +++ b/nvim/keybindings.vimrc @@ -29,3 +29,7 @@ noremap ; $a; " Search highlighted text in buffer vnoremap // y/\V=escape(@",'/\') + +" Shift + J/K moves selected lines down/up in visual mode +vnoremap J :m '>+1gv=gv +vnoremap K :m '<-2gv=gv