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