snipmate_for_django
snipmate_for_django copied to clipboard
Don't work with TagList plugin
If you install this snippets, the TagList plugin http://www.vim.org/scripts/script.php?script_id=273 don't show the tags in python
I have the same problem. Has anyone found a solution?
me too
I haven't found one. Honestly, the best thing to do would probably be to just cat django.snippets >> python.snippets
, not mess with ft
, and be done with it. I thought the dot-convention was internal to vim and the natural way of using filetype, but it appears most plugins don't use it that way. Another tag-related plugin, easytags.vim, does the same thing and it's clear it's simply passing django.python
to ctags
, which rightly doesn't recognize it. It should be splitting on .
and then trying each one until there's a hit, in my opinion.
I had the same problem with snippets for symfony and I just made a quick fix to the Taglist plugin so that it only considers the first part of the filetype when it is a composed one.
So if you choose python.django
as filetype, only python
will be considered by taglist.
Here is my modified version : https://github.com/K-Phoen/Config/blob/master/vim/vim/plugin/taglist.vim
Hope it will help you ;)