qstrahl/vim-matchmaker

First word on the line is highlighted even if not under the cursor

jordelver opened this issue · 5 comments

2013-08-08 at 17 11

Is this correct behaviour? I was not expecting the words to be highlighted as the cursor is not over the word.

This is because matchmaker's default needle function uses <cword>, defined by Vim as "the word under the cursor". <cword> matches the word after the cursor if there is none directly under it; for the sake of consistency, this is the expected behaviour for Matchmaker.

Ok, cool. Could we make this configurable somehow? Is it possible?

It's possible, but unwelcome; I'd rather be consistent with Vim. Other "wordwise" operations like * and # also exhibit this behaviour.

Ok, I can appreciate that. Thanks for the plugin 👍

Thanks for the help!