summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <adam.moloney.stuck@gmail.com>2021-10-22 17:26:25 +0200
committeradamstuck <adam.moloney.stuck@gmail.com>2021-10-22 17:28:09 +0200
commit02b4382533febf478e0bdead7408406d09e0b1f3 (patch)
tree720cdb160fd924f4ec4482e89871f56dec1847d6
parentf5405807b5daa6355f9dce736eef6048fc3c6fcf (diff)
vim added binds for moving selected lines
-rw-r--r--.vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index eb3de67..2f52089 100644
--- a/.vimrc
+++ b/.vimrc
@@ -48,6 +48,9 @@ inoremap [ [<c-g>u
inoremap ! !<c-g>u
inoremap ? ?<c-g>u
+vnoremap J :m '>+1<CR>gv=gv
+vnoremap K :m '<-2<CR>gv=gv
+
let mapleader=" "
nnoremap <leader>h :wincmd h<CR>
nnoremap <leader>j :wincmd j<CR>