The dictionary feature in vim allows you to use a file (for instance /usr/share/dict/words
) and set multiple paths within the dict
option to search on.
Now the file I'm searching on has several words with -
in them, and I still wish to match after the -
after activating autocomplete, so is there a way to make the -
a matched character within the dict
feature?
set iskeyword+=-
should do what you want. See:h 'iskeyword'
. I'm not posting this as an answer because I can't test it right now so let me know if that work?