Tab-Expansion only works after re-sourcing vimrc and re-editing a file

Asked by Thomas Reuss

I have a weird problem lately:
when opening a PHP-Script (or any other source code file), I can't insert UltiSnip snippets because <tab> wouldn't trigger a the snippet expansion.
If I enter
:verbose map <tab> ,
everything looks very well. Exactly the correct UltiSnip function is mapped.
Now, if I do
:source $MYVIMRC
followed by
:e! ,
Tab suddenly works again!
Any idea?

Thanks in advance!

EDIT:
Interestingly, the lorem-snippet works!

Question information

Language:
English Edit question
Status:
Solved
For:
UltiSnips Edit question
Assignee:
No assignee Edit question
Solved by:
Thomas Reuss
Solved:
Last query:
Last reply:
Revision history for this message
SirVer (sirver) said :
#1

if the lorem snippet works, it likely means that the filetype is not correct or ftdetect/Ultisnips.vim is not properly sourced. How have you Ultisnips installed? Also check the output of :set ft in the file where the triggers do not work. Maybe some plugin screws it up.

Revision history for this message
Thomas Reuss (thomas-reuss) said :
#2

Thanks for your valuable tips!
I tried lots of things on my vimrc and finally noticed, that one/some of my Vundle bundles screwed it up. After moving all the Vundle configuration to the top of vimrc, everything was fine again!
Now UltiSnips works again. Awesome plugin, by the way! Good work!!