junegunn / vim-slash

Enhancing in-buffer search experience
MIT License
332 stars 33 forks source link

Hitting * after a visual selection is made doesn't highlight the matches #20

Open nickjj opened 5 years ago

nickjj commented 5 years ago

Hi,

Steps to reproduce with Vim 8.0:

  1. Create a file with this content:
hello world
hello world
  1. Visually select the first line's hello world

  2. Press *

  3. Nothing is highlighted but the command window will show /\Vhello world

I would have expected both hello world lines to be highlighted which is the behavior with vim-visual-star-search (which I uninstalled to avoid conflicts).

It's also worth pointing out if I move the cursor over the word hello and press * then it immediately highlights both hello strings, so this seems isolated to visually selecting words.

Also, if I press n after visually selecting text then the highlight happens but that seems like an unexpected event.

Am I doing something wrong? It's supposed to highlight the match after only pressing * right?

danihodovic commented 5 years ago

I'm facing the same issue.