Using * when the cursor is on a word theWord
, vim directly jumps to the next appearance of exactly that word, i.e. performes /\\
Try something like:
:let @/=@/.'\|\<'.expand("").'\>'
this appends to the previous search pattern the current word under the cursor) with some delimiters (\|
and the word boundaries...)nnoremap :let @/.='\\|\<'.expand("").'\>'