diff options
| author | jdhao <jdhao@hotmail.com> | 2020-11-12 21:31:48 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2020-11-12 21:31:48 +0800 |
| commit | 6322fed22155b2c784ddf68bfb3e4b2c6fed09e2 (patch) | |
| tree | 4b7403b462bfc2d808e3a4810e41119c1dabc17d /core/mappings.vim | |
| parent | 1856ee39e6f7686e063d458e0653940414648073 (diff) | |
update xmap for visual mode mappings
Diffstat (limited to 'core/mappings.vim')
| -rw-r--r-- | core/mappings.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/mappings.vim b/core/mappings.vim index eb6ebef..81646f7 100644 --- a/core/mappings.vim +++ b/core/mappings.vim @@ -119,7 +119,7 @@ nnoremap <silent> <leader>sv :<C-U>silent update $MYVIMRC <bar> source $MYVIMRC nnoremap <expr> <leader>v printf('`[%s`]', getregtype()[0]) " Search in selected region -vnoremap / :<C-U>call feedkeys('/\%>'.(line("'<")-1).'l\%<'.(line("'>")+1)."l")<CR> +xnoremap / :<C-U>call feedkeys('/\%>'.(line("'<")-1).'l\%<'.(line("'>")+1)."l")<CR> " Find and replace (like Sublime Text 3) nnoremap <C-H> :%s/ @@ -211,7 +211,7 @@ nnoremap <Right> <C-W>l nnoremap <Up> <C-W>k nnoremap <Down> <C-W>j -vnoremap <silent> iu :<C-U>call <SID>URLTextObj()<CR> +xnoremap <silent> iu :<C-U>call <SID>URLTextObj()<CR> onoremap <silent> iu :<C-U>call <SID>URLTextObj()<CR> function! s:URLTextObj() abort |
