62
13
I'm aware that I can use / followed by a regex to search something. And I can use ? to search backwards. And I can use n and N to repeat the search forward and backward.
There are also two nice shortcuts: * or # will search for the word under the cursor (forward/backward). That's very useful! (there are also g* and g# variants)
But... Once I've selected text using visual mode (v), how can I ask Vim to search for exactly that text? A quick look at :help
did not... huh... help me.
Thanks for the tips with
*
and#
! Would be nice if your question would also explain whatg*
andg#
would do ;) – winklerrr – 2018-10-25T15:28:02.3573
Related to Search for selection in Vim.
– Rodrigue – 2012-10-08T15:06:24.350