On Tue 17-Oct-06 4:03pm -0600, Lev Lvovsky wrote: > Is it possible to search for a string by selecting that string in > visual mode? Meaning, if I highlight something, and then want to > search for that thing which is highlighted in the rest of the doc?
You can do this with a visual map: vnoremap <leader>/ y/<C-R>"<CR> This will not always work - the visual area may contain characters will special meaning in a pattern. See :h :y :h c_CTRL-R_= -- Best regards, Bill