tweekmonster / django-plus.vim

:guitar: Improvements to the handling of Django related files in Vim
MIT License
179 stars 15 forks source link

filetype check error #4

Closed gatspy closed 8 years ago

gatspy commented 8 years ago

open a template html, the syntax is jinja. edit a file is not saved on the hard disk,only in the buffer, the syntax is html.

tweekmonster commented 8 years ago

What is the error?

gatspy commented 8 years ago

I'm sorry , I was wrong. not syntax , it's filetype check error. open a template html, the filetype as jinja. edit a file is not saved on the hard disk,only in the buffer, the filetype as html. Now I'm in command-line mode to manually change the file type

tweekmonster commented 8 years ago

Oh okay. So to be clear, your default filetype for *.html is jinja, but when you start a new buffer (e.g. with :e test.html) and Vim's current directory is a Django project, it doesn't change to the filetype to htmldjango?

If that's the case, I think I can fix that.

gatspy commented 8 years ago

thank you for your reply. After the update, works well.