From 5c4223b27dcf161d7b0f8c660d413425d9fefd0a Mon Sep 17 00:00:00 2001 From: jdhao Date: Sun, 27 Sep 2020 21:29:46 +0800 Subject: add mapping to move single or multiple lines --- mappings.vim | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mappings.vim') diff --git a/mappings.vim b/mappings.vim index 5c4a0a1..53f2ed7 100644 --- a/mappings.vim +++ b/mappings.vim @@ -167,4 +167,12 @@ nnoremap y :%y " Toggle cursor column nnoremap cl :call utils#ToggleCursorCol() + +" Move current line up and down +nnoremap call utils#SwitchLine(line('.'), 'up') +nnoremap call utils#SwitchLine(line('.'), 'down') + +" Move current visual-line selection up and down +xnoremap :call utils#MoveSelection('up') +xnoremap :call utils#MoveSelection('down') "} -- cgit v1.2.3