From: Ben Beltran Date: Tue, 24 Dec 2019 11:52:44 +0000 (+0100) Subject: Add line movement shortcuts X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/commitdiff_plain/138316b6ce6560eea229a9f0c29d165b5ba12963?ds=sidebyside Add line movement shortcuts --- diff --git a/vimrc b/vimrc index b059ccf..a9bf0d5 100755 --- 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 :m .+1== +nnoremap :m .-2== +inoremap :m .+1==gi +inoremap :m .-2==gi +vnoremap :m '>+1gv=gv +vnoremap :m '<-2gv=gv