qstrahl / vim-matchmaker

Highlight matches for the word under the cursor
38 stars 10 forks source link

Don't highlight when there are no other matches #15

Closed xanderdunn closed 6 years ago

xanderdunn commented 9 years ago

Many thanks for this great plugin! It does for me what most GUI IDEs do, and it doesn't even interfere with vim's search highlighting.

It would be nice if there were an option to disable highlighting when there are no matches to the word under the cursor. It seems unnecessary to highlight the word under the cursor if there is nothing else to highlight.

Thanks!

qstrahl commented 9 years ago

Good idea! I'll look into that

qstrahl commented 6 years ago

Hey @xanderdunn! This is now possible as of a0b27f3c4fa9ab9d50b9a2823f1e9d305650fee3 - all you have to do is add let g:matchmaker_ignore_single_match = 1 to your vimrc