When one triggers a completion, vim guesses what was the expression (behind the cursor) that you want to complete. I don't fully understand the logic, but it seems that it assumes that the expression is a sequence of alphabetic chars+some additional.
Suppose I have a graph named "G_{walk}" (I do have - latex). I want to refer to it.
I can trigger a completion that would recognize it when I type G_<c-x><c-n>
. But if I type G_{<c-x><c-n>
, it regards whatever that follows {
as a completely different expression and it won't find "G_{walk}".
So, how can I control the expression? Sometimes I just want it to ignore all its stupid rules, and complete from the moment I press a key and until I tell it to stop. Can it be done?
Thanks.
PS I did read about ins-completion. I don't understand how what I see in syntax list
or how omnifunction
related to the question I asked about <c-x><c-n>
as main example.