aboutsummaryrefslogtreecommitdiff
path: root/mappings.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-10-13 01:16:41 +0800
committerjdhao <jdhao@hotmail.com>2020-10-13 01:16:41 +0800
commit6c819f3b00a5689223bff1f80880155133f775fd (patch)
tree37ea224decb0e3623df2ecb32c03549eeb7c2073 /mappings.vim
parentba283d0a09a6a8129f49ac3ed5167a2fe7ecc550 (diff)
add doc
Diffstat (limited to 'mappings.vim')
-rw-r--r--mappings.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/mappings.vim b/mappings.vim
index 44b0617..df4afe1 100644
--- a/mappings.vim
+++ b/mappings.vim
@@ -176,6 +176,7 @@ nnoremap <silent> <A-j> <Cmd>call utils#SwitchLine(line('.'), 'down')<CR>
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.
+" Replace visual selection with text in register, but not contaminate the
+" register, see also https://stackoverflow.com/q/10723700/6064933.
xnoremap p "_c<ESC>p
"}