filetype detection not working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
UltiSnips |
Fix Committed
|
Medium
|
Unassigned |
Bug Description
Just installed UltiSnips from the tarball, on vimscripts version 2.2. It works but I only get the "all" snippets in files which are otherwise correctly identified by the filetype plugin as Perl and BASH files (filetype is correctly showing up in the status line and syntax highlighting and indentation work as before).
Manually adding the filetype with, e.g.
:UltiSnipsAddFi
loads the perl snippets and all works correctly.
I have installed UltiSnips as suggested by extracting the tarball into a directory which I then added to the path in my .vimrc
I have seen the same error reported in conjunction with Vundle but I'm not using Vundle, so not sure what the problem could be or how to investigate this further. Thanks for your help!
my vim version
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Apr 16 2010 12:40:58)
:py import sys; print sys.version
2.6.5 (r265:79063, Oct 1 2012, 22:19:00)
[GCC 4.4.3]
Changed in ultisnips: | |
status: | Fix Committed → Incomplete |
You are right, there is a step missing in the documentation - it only
became necessary recently. I added this to the documentation and pushed
a new version, for your convenience, the paragraph is repeated here:
UltiSnips also needs that Vim sources files from the after/ directory. after/plugin/ ultisnips_ rep/after/ plugin/ * ~/.vim/ after/plugin/
Unfortunately, vim only allows this in the home directory. You therefore have
to symlink/copy the files from after: >
mkdir -p ~/.vim/
ln -s ~/.vim/
status fixcommitted
importance medium