Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is VIM not detecting my coffescript filetype?

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

like image 947
noli Avatar asked Apr 09 '11 03:04

noli


1 Answers

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

like image 192
noli Avatar answered Nov 13 '22 10:11

noli