When I'm on Windows, I use notepad++, and on Linux I use vim. I really like vim. But there is at least one thing I find really interesting in notepad++. You can double-click on a word and it highlights all occurrences of that word automatically. I was wondering if I could do something like that with vim? So the question is how to highlight all occurrences of a word when you double click on the word in vim.
Obviously, I don't want to search for that word, or change my cursor position, just highlighting. My :set hlsearch
is also on.
probably you may want to avoid the mouse in vim, but I make an exception here :).
I know that *
does the same job, but what about mouse?
*
will move cursor to next occurrence of the word. – Eleph