Skip to content
This repository has been archived by the owner on Jan 23, 2022. It is now read-only.

html.django_template not working #1

Closed
AdrianRibao opened this issue Dec 19, 2009 · 3 comments
Closed

html.django_template not working #1

AdrianRibao opened this issue Dec 19, 2009 · 3 comments

Comments

@AdrianRibao
Copy link

Hello,
I have added these two lines to my vimrc:

autocmd FileType python set ft=python.django " For SnipMate
autocmd FileType html set ft=html.django_template " For SnipMate

But only the django snippets are working. I can make the django_html work.

But if I type:
:set ft=html.django_template

when I'm in Vim, it works.

Do you know what's going on?

Thank you.

@AdrianRibao
Copy link
Author

Ok, problem solved, the filetype wasn't well detected because it was a django template. Now it detects all *.html files as html.

It works now.

@AdrianRibao
Copy link
Author

Better solution:
If django.vim is active (http://www.vim.org/scripts/script.php?script_id=1487) the line:

autocmd FileType html set ft=html.django_template " For SnipMate

should be:

autocmd FileType htmldjango set ft=html.django_template " For SnipMate

@robhudson
Copy link
Owner

Thanks for the follow up replies.

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants