Snips by filetype not work

Asked by Thik

I installed ultisnips via pathogen and set
 let g:UltiSnipsSnippetsDir="~/.vim/bundle/ultisnips/UltiSnips"
in my .vimrc. But when i edit a file, using command UltiSnipsEdit, it always open file ~/.vim/bundle/ultisnips/UltiSnips/all.snippets. And i must using UltiSnipsAddFiletypes to make snips work.
How do fix it?
Thank!

Question information

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

Likely you do not call pathogen#infect() in your vimrc. For this reason, ftdetect/ scripts are not run as they should be.

Revision history for this message
Thik (coder53) said :
#2

Thanks SirVer, that solved my question.