aboutsummaryrefslogtreecommitdiff
path: root/mappings.vim
diff options
context:
space:
mode:
Diffstat (limited to 'mappings.vim')
-rw-r--r--mappings.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/mappings.vim b/mappings.vim
index 5c4a0a1..53f2ed7 100644
--- a/mappings.vim
+++ b/mappings.vim
@@ -167,4 +167,12 @@ nnoremap <silent> <leader>y :%y<CR>
" Toggle cursor column
nnoremap <silent> <leader>cl :call utils#ToggleCursorCol()<CR>
+
+" Move current line up and down
+nnoremap <silent> <A-k> <Cmd>call utils#SwitchLine(line('.'), 'up')<CR>
+nnoremap <silent> <A-j> <Cmd>call utils#SwitchLine(line('.'), 'down')<CR>
+
+" Move current visual-line selection up and down
+xnoremap <silent> <A-k> :<C-U>call utils#MoveSelection('up')<CR>
+xnoremap <silent> <A-j> :<C-U>call utils#MoveSelection('down')<CR>
"}