summaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
authorAdam <56338480+adastx@users.noreply.github.com>2021-10-22 17:26:25 +0200
committerAdam <56338480+adastx@users.noreply.github.com>2021-10-22 17:26:25 +0200
commit3f863d79bc65418ade3d3c6a593b0ee12a2c45b5 (patch)
tree7a2a9964b963c446c15999350e9708c19f4c5fb8 /.vimrc
parent0b837ee1f01423b7b7d435fb6483b986c206b301 (diff)
vim added binds for moving selected lines
Diffstat (limited to '.vimrc')
-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>