To use, should, I have to set the file type?

Asked by Peter Shannon

Hi,

I can't seem to get UltiSnips to work without setting the file type once the file has loaded, or by simply typing e!, is this correct?

For instance gvim foo.py then :e!
or set ft= python

I also often see an error on startup, something like: ultisnips_fileTypeChanged unknown function which must be related somehow.

Best regards,

Peter.

Question information

Language:
English Edit question
Status:
Solved
For:
UltiSnips Edit question
Assignee:
No assignee Edit question
Solved by:
Peter Shannon
Solved:
Last query:
Last reply:
Revision history for this message
Peter Shannon (peterdshannon) said :
#1

I've been fiddling with this and it's strange. The problem has gone away but, for the life of me, I couldn't tell you why.

I wanted to experiment with an add-on manager and I've been using VAM but I also tried vundle with the same lack of success.

I don't think I've changed anything in my .vimrc and I'd even tried a minimalist rc with only the stuff in the getting-started documentation and it didn't help before. It's not a fluke either, I just moved the .vim folder away and and reran with the same success.

Revision history for this message
SirVer (sirver) said :
#2

My bet is that the ftdetect script was not properly executed. This is likely because you did not install vundle exactly right (and the other managers will have similar problems I guess). See vundle docs: https://github.com/gmarik/vundle/blob/master/doc/vundle.txt#L51