vim:keys: Add <leader>g* analog to <leader>*

Do the same thing without the word boundaries.
This commit is contained in:
2023-05-22 15:14:13 +02:00
parent 52963bf2be
commit b64e5fef4d

View File

@@ -109,6 +109,9 @@ nmap <leader>* :let @/ = '\<' . expand('<cword>') . '\>' <bar>
vmap <leader>* :<C-U>let @/ = "\\V<C-R>=escape(escape(GetVisualSelection(), '\'), '"\')<CR>" <bar>
\ set hlsearch <bar>
\ Rg <C-R>=escape(GetVisualSelection(), '.\[]<bar>*+?{}^$()')<CR><CR>
nmap <leader>g* :let @/ = expand('<cword>') <bar>
\ set hlsearch <bar>
\ Rg <C-R>=expand('<cword>')<CR><CR>
" Search inside visual selection
noremap <leader>v/ /\%V