Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Vim sets filetype to HTML (not Slim) when using 'doctype html' #38
I was editing my Rails application layout file in Vim 7.3 with this vim-slim plugin installed and noticed that Vim was using a filetype of HTML instead of Slim for my application.html.slim file and not providing syntax highlighting.
My other views that followed the *.html.slim naming convention were correctly using the Slim filetype and syntax.
The culprit seemed to be the first line of the file, which was
Sep 4, 2013
1e4e488 should be reverted.
Vim's filetype.vim has an autocmd that tries to detect html files based on doctype and this is triggered before scripts in ftdetect/* are sourced. IMO that seems wrong, but what can you do I guess.
Sorry for the hassle everyone.
pushed a commit
Sep 15, 2013
yeah... it would be great if I had the time... Maybe did my comment sound like a criticism? No my intention, it was just an ascertainment. I understand it is difficult to find the time to maintain a project, like I find difficult to find the time to prepare the pull request...