From 1d1a0a22266102a0c1cae0dc19cbe4de22f8a51a Mon Sep 17 00:00:00 2001 From: jdhao Date: Tue, 13 Oct 2020 00:37:02 +0800 Subject: fix mapping bugs --- mappings.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mappings.vim') diff --git a/mappings.vim b/mappings.vim index a5c200c..da0781e 100644 --- a/mappings.vim +++ b/mappings.vim @@ -119,8 +119,8 @@ nnoremap ev :tabnew $MYVIMRC tcd %:h nnoremap sv :silent update $MYVIMRC source $MYVIMRC \ echomsg "Nvim config successfully reloaded!" -" Reselect the text that has just been pasted -nnoremap v `[V`] +" Reselect the text that has just been pasted, see also https://stackoverflow.com/a/4317090/6064933. +nnoremap v printf('`[%s`]', getregtype()[0]) " Search in selected region vnoremap / :call feedkeys('/\%>'.(line("'<")-1).'l\%<'.(line("'>")+1)."l") -- cgit v1.2.3