-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add support for configuring custom filetypes #1020
Comments
There is in fact a way, and you missed it. :) You might do something like this: augroup filetype
autocmd! BufRead,BufNewFile *.jays set filetype=jays
augroup END
let g:syntastic_filetype_map = { "jays": "javascript" } |
Thanks for the help, but this doesn't seem to be working. This is everything I have in my .vimrc for Syntastic (note that the extension is actually .template):
|
Please define "doesn't seem to be working". What did you do, what did you expect to happen, and what happened instead? |
Sorry. Opened a file with a ".template" extension in vim, and another file with a ".js" extension in vim (with the .vimrc shown above -- I copied and pasted that wrong, the first line (# 17) should actually be at the bottom, on line # 33. Sorry). I expected to see syntax highlighting in both, but I only see syntax highlighting in the .js file. |
You are confused. Syntastic doesn't have anything to do with syntax highlighting (not in the sense you mean it anyway). |
I can confirm that I am in fact a very confused little boy. This was all I needed: au BufRead,BufNewFile *.template set filetype=javascript |
Say I have a new filetype I'm defining for my project that is .jays, which is very similar to a javascript (.js) file but slightly different.
As far as I can tell there is no way to tell Syntastic to run my javascript checker on .jays files. Unless there is in fact a way and I missed it, could we add support for this?
The text was updated successfully, but these errors were encountered: