aboutsummaryrefslogtreecommitdiff
path: root/mappings.vim
diff options
context:
space:
mode:
Diffstat (limited to 'mappings.vim')
-rw-r--r--mappings.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/mappings.vim b/mappings.vim
index da0781e..4b2272e 100644
--- a/mappings.vim
+++ b/mappings.vim
@@ -174,4 +174,7 @@ 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>
+
+" Replace visual selection with text in register, but not contaminate the register.
+xnoremap p "_c<ESC>p
"}