diff options
author | Christian Chiarulli <[email protected]> | 2020-06-10 23:11:36 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2020-06-10 23:11:36 -0400 |
commit | ff047125b058257d8fa1295c55d1cb2ee9dae3f3 (patch) | |
tree | 7af8b858bab69201118fa1732b966347afba6de2 | |
parent | 778aa30b30df84af29f427c0d0d1a3ae0f305100 (diff) | |
parent | 83c6bffda1b1d224efc8149722cdd28986890f42 (diff) |
Merge pull request #25 from AceMouty/move-selected
feat: can move line selection
-rw-r--r-- | keys/mappings.vim | 6 |
1 files changed, 6 insertions, 0 deletions
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 <silent> <S-TAB> :bprevious<CR> + " Move selected line / block of text in visual mode + " shift + k to move up + " shift + j to move down + xnoremap K :move '<-2<CR>gv-gv + xnoremap J :move '>+1<CR>gv-gv + " Alternate way to save nnoremap <silent> <C-s> :w<CR> " Alternate way to quit |