diff options
| author | jdhao <jdhao@hotmail.com> | 2020-10-13 00:37:02 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2020-10-13 00:37:02 +0800 |
| commit | 1d1a0a22266102a0c1cae0dc19cbe4de22f8a51a (patch) | |
| tree | 5784ce6270f5689351b348a61166522f603293cb | |
| parent | 08c021e8e5068ac009c62e9e72303e9fc1dda2cd (diff) | |
fix mapping bugs
| -rw-r--r-- | mappings.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mappings.vim b/mappings.vim index a5c200c..da0781e 100644 --- a/mappings.vim +++ b/mappings.vim @@ -119,8 +119,8 @@ nnoremap <silent> <leader>ev :tabnew $MYVIMRC <bar> tcd %:h<cr> nnoremap <silent> <leader>sv :silent update $MYVIMRC <bar> source $MYVIMRC <bar> \ echomsg "Nvim config successfully reloaded!"<cr> -" Reselect the text that has just been pasted -nnoremap <leader>v `[V`] +" Reselect the text that has just been pasted, see also https://stackoverflow.com/a/4317090/6064933. +nnoremap <expr> <leader>v printf('`[%s`]', getregtype()[0]) " Search in selected region vnoremap / :<C-U>call feedkeys('/\%>'.(line("'<")-1).'l\%<'.(line("'>")+1)."l")<CR> |
