vim:keys:vmap *: Center search results
Center search results by further evaluating mappings in {rhs}.
This commit is contained in:
@@ -97,8 +97,8 @@ function! GetVisualSelection()
|
|||||||
return l:sel
|
return l:sel
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
vnoremap * /\V<C-R>=escape(GetVisualSelection(),'/\')<CR><CR>
|
vmap * /\V<C-R>=escape(GetVisualSelection(),'/\')<CR><CR>
|
||||||
vnoremap # ?\V<C-R>=escape(GetVisualSelection(),'?\')<CR><CR>
|
vmap # ?\V<C-R>=escape(GetVisualSelection(),'?\')<CR><CR>
|
||||||
|
|
||||||
" Extended `*`. Starts vim search (without jump) and ripgrep search for cword
|
" Extended `*`. Starts vim search (without jump) and ripgrep search for cword
|
||||||
nmap <leader>* :let @/ = '\<' . expand('<cword>') . '\>' <bar>
|
nmap <leader>* :let @/ = '\<' . expand('<cword>') . '\>' <bar>
|
||||||
|
|||||||
Reference in New Issue
Block a user