aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorj-james2020-11-15 09:07:11 +0000
committerj-james2020-11-15 09:07:11 +0000
commit8f087f7d8b5490d96baacabbb62ac57354a3ca24 (patch)
treeaba78c024dc22a806fe10080122db5aef6f1dfca
parent7eaf050abcd5d8f94e6a1cb3db44736322e857f3 (diff)
Allow for Vim-like line movement
-rw-r--r--autoload/heresy.vim4
1 files changed, 4 insertions, 0 deletions
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 <silent> <C-Up> <C-O>:m -2<CR>
snoremap <silent> <C-Up> <C-O>:m '<-2<CR>gv=gv<C-G>
+ inoremap <silent> <C-K> <C-O>:m -2<CR>
+ snoremap <silent> <C-K> <C-O>:m '<-2<CR>gv=gv<C-G>
" Move the current / selected line(s) down
inoremap <silent> <C-Down> <C-O>:m +1<CR>
snoremap <silent> <C-Down> <C-O>:m '>+1<CR>gv=gv<C-G>
+ inoremap <silent> <C-J> <C-O>:m +1<CR>
+ snoremap <silent> <C-J> <C-O>:m '>+1<CR>gv=gv<C-G>
endif
if g:heresy_tab_shortcuts == 1