]> git.r.bdr.sh - rbdr/dotfiles/commitdiff
Add line movement shortcuts
authorBen Beltran <redacted>
Tue, 24 Dec 2019 11:52:44 +0000 (12:52 +0100)
committerBen Beltran <redacted>
Tue, 24 Dec 2019 11:52:44 +0000 (12:52 +0100)
vimrc

diff --git a/vimrc b/vimrc
index b059ccf9a797a9e148e7eda4f09933a5e2353691..a9bf0d5cd46b4a56fd19efa0e7f91ea01d98542f 100755 (executable)
--- a/vimrc
+++ b/vimrc
@@ -199,3 +199,11 @@ let g:fzf_colors =
 
 " ALE config
 let g:ale_linters = {'javascript': ['eslint']}
+
+" Move things up and down using Ctrl + Shift
+nnoremap <C-S-j> :m .+1<CR>==
+nnoremap <C-S-k> :m .-2<CR>==
+inoremap <C-S-j> <Esc>:m .+1<CR>==gi
+inoremap <C-S-k> <Esc>:m .-2<CR>==gi
+vnoremap <C-S-j> :m '>+1<CR>gv=gv
+vnoremap <C-S-k> :m '<-2<CR>gv=gv