I'm trying to use the vim-coffee-script plugin https://github.com/kchmck/vim-coffee-script but its not detecting a test file as a coffeescript filetype. However when I do it manually
:set ft=coffee
it works. What's going on?
.vimrc and test.coffee https://gist.github.com/911087
I figured it out.. I had to force reloading of the filetype by setting
filetype off
filetype on
Specifically, I had to do this AFTER running
syntax on
This is mostly explained in the pathogen readme
http://www.vim.org/scripts/script.php?script_id=2332
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With