From 83c6bffda1b1d224efc8149722cdd28986890f42 Mon Sep 17 00:00:00 2001 From: acemouty Date: Wed, 10 Jun 2020 14:43:56 -0500 Subject: [PATCH] feat: can move line selection users can now move a single line or an entire block of text / code while in visual mode simply select what you need moved and then use shift + k to move the selection up shift + j to move the selection down --- keys/mappings.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/keys/mappings.vim b/keys/mappings.vim index 2801b7ff..94db7ddb 100644 --- a/keys/mappings.vim +++ b/keys/mappings.vim @@ -36,6 +36,12 @@ else " SHIFT-TAB will go back nnoremap :bprevious + " Move selected line / block of text in visual mode + " shift + k to move up + " shift + j to move down + xnoremap K :move '<-2gv-gv + xnoremap J :move '>+1gv-gv + " Alternate way to save nnoremap :w " Alternate way to quit