I added a dictionnary with this kind of words :
foo.bar
this.is.a.test
I did :set iskeyword+=. to have completion works despite dots :
When I type fo<TAB> --> foo.bar
But I would like to have also this kind of completion :
test<TAB> --> this.is.a.test
I mean, I won't type always the beginning of a word.
I hope I was clear
Thanks in advance
The built-in completions always offer matches that start with the completion base. However, you can write a custom completion that implements different strategies.
If your dictionary is a loaded buffer (not the built-in dictionary completion
:help i_CTRL-X_CTRL-K), my CompleteHelper plugin makes it easier to implement the extraction of matches. With it, the BidiComplete plugin offers something related: Completion ofthis.is.a.testwhen the cursor is to the left of|test. (I also have a MiddleEndComplete plugin in the works that may be close to what you want.)