0

I would like to do something like we have in Notepad++. If I select particular sentence or word through a mouse then I want to highlight all the occurrence of that sentence in the file. Does anybody gone through this?

Thanks.

Jariwala Atit
  • 19
  • 1
  • 2
  • 2
    Possible duplicate of [Highlight all occurrence of a selected word?](http://stackoverflow.com/questions/3431184/highlight-all-occurrence-of-a-selected-word) – Imran Ali Sep 22 '16 at 21:37
  • Just press `/` and then right click and enter. Or, if you have set incremental search, you can just press `/` and right click. – SibiCoder Sep 23 '16 at 06:00

1 Answers1

1

My SearchHighlighting plugin has (among others) a :SearchAutoHighlighting command that turns on highlighting of the current word or selection.

If you're interested in a smaller, more focussed plugin, there are many alternative plugins. Many of them are listed on the plugin page.

Ingo Karkat
  • 167,457
  • 16
  • 250
  • 324