Way 1:
- yank the selected text with y
- go to search mode /
- paste the last yanked text with Ctrl+R 0
Ctrl-R 0
is to get register 0’s value. Use:reg
to see what’s in your registers.
Way 2:
- yank the selected text with y
- go to search mode with command-line window q/
- paste p (and you can continue editing)