mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 18:45:08 +02:00
Merge pull request #25 from AceMouty/move-selected
feat: can move line selection
This commit is contained in:
commit
ff047125b0
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue