From f68cdff9d59936524e87d779aade4f62f6b2d4c2 Mon Sep 17 00:00:00 2001 From: jdhao Date: Tue, 13 Oct 2020 01:11:00 +0800 Subject: [PATCH] add more mappings --- mappings.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mappings.vim b/mappings.vim index da0781e..4b2272e 100644 --- a/mappings.vim +++ b/mappings.vim @@ -174,4 +174,7 @@ nnoremap call utils#SwitchLine(line('.'), 'down') " Move current visual-line selection up and down xnoremap :call utils#MoveSelection('up') xnoremap :call utils#MoveSelection('down') + +" Replace visual selection with text in register, but not contaminate the register. +xnoremap p "_cp "}