Suppose I have selected a word in visual mode. Now I want to search that word in the document.
How can I do that?
Thanks in advance.
Press y (you'll exit from visual mode after that) then press / Ctrl+r then " end hit enter.
You can use it to bind // for this action:
:vmap // y/"
If you select special chars you better use this
:vmap // y/=escape(@", '\\/.*$^~[]')