From 8f087f7d8b5490d96baacabbb62ac57354a3ca24 Mon Sep 17 00:00:00 2001 From: j-james Date: Sun, 15 Nov 2020 01:07:11 -0800 Subject: Allow for Vim-like line movement --- autoload/heresy.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoload/heresy.vim b/autoload/heresy.vim index 0468d58..57fa852 100644 --- a/autoload/heresy.vim +++ b/autoload/heresy.vim @@ -147,9 +147,13 @@ function! g:SetShortcuts() " Move the current / selected line(s) up inoremap :m -2 snoremap :m '<-2gv=gv + inoremap :m -2 + snoremap :m '<-2gv=gv " Move the current / selected line(s) down inoremap :m +1 snoremap :m '>+1gv=gv + inoremap :m +1 + snoremap :m '>+1gv=gv endif if g:heresy_tab_shortcuts == 1 -- cgit v1.2.3-70-g09d2