Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • Thanks for your answer, it was useful. I updated my question with my .vimrc , which already had the filetype on directive in it (without the colon, but I think that's normal, isn'it?) putting the filetype.vim in my .vim folder did the trick! Now what if I want to add another coloration plugin? Should I add more things in this file? Or was this all for debugging purposes and are you going to give me a better solution? Commented Oct 2, 2011 at 9:57
  • I added a link to my .vim folder on github in my question, so now you can have a look at it. Commented Oct 2, 2011 at 10:18
  • To add new filetypes, just put the $filetype.vim file in your .vim/ftplugin/ directory, and then add another au! line to your .vim/filetype.vim file, between the augroup filetypedetect and augroup END lines. Commented Oct 2, 2011 at 13:05
  • I think it is the purpose of this file : github.com/greg0ire/dotvim/blob/master/bundle/handlebars/… The code you made me write in filetype.vim looks like a duplicate of it. What I would like is have this piece of code run. I think it is the purpose of the filetype plugin on directive, isn't it? Commented Oct 2, 2011 at 13:09
  • I actually meant this file : github.com/nono/vim-handlebars/blob/master/ftdetect/… Commented Oct 2, 2011 at 13:17