qstrahl / vim-matchmaker

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

not hightlight if currently under blank #21

Closed idning closed 8 years ago

idning commented 8 years ago

amazing plugin. I tried to use

  1. search register
  2. add match highlight

but I found this plugin is exactly what I need.

the have a problem is when my cursor is before a word, it will expand to that word. let's avoid it

qstrahl commented 8 years ago

Hey, thanks!

I originally decided to use <cword> for the sake of consistency -- for example, if you place your cursor before a word and do ciw, it will change that word; vim doesn't need you to put your cursor right on the word for that. I don't mind deviating from that, since there is obviously enough demand for it that you opened this PR, but I would like to leave it open for a few days to see if anyone watching this plugin feels more strongly about this than I do.

idning commented 8 years ago

tumblr_inline_nwy7btnrrf1tcrrow_1280

qstrahl commented 8 years ago

Well I think it's been long enough, and based on the conversations I've had, you're not the only person who expects this behaviour, so merge time! Thanks for the commits and the patience :D

idning commented 8 years ago

cool!