Merge pull request #25 from AceMouty/move-selected

feat: can move line selection
This commit is contained in:
Christian Chiarulli 2020-06-10 23:11:36 -04:00 committed by GitHub
commit ff047125b0
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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