Closed gatspy closed 8 years ago
What is the error?
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
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.
thank you for your reply. After the update, works well.
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.