summaryrefslogtreecommitdiffstats
path: root/ftdetect
diff options
context:
space:
mode:
Diffstat (limited to 'ftdetect')
-rw-r--r--ftdetect/polyglot.vim42
-rw-r--r--ftdetect/polyglot_auto.vim59
2 files changed, 59 insertions, 42 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 9bf5a146..b6b51ac1 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -46,48 +46,6 @@ call s:SetDefault('g:python_highlight_operators', 1)
call s:SetDefault('g:python_highlight_file_headers_as_comments', 1)
call s:SetDefault('g:python_slow_sync', 1)
-if index(g:polyglot_disabled, 'acpiasl') == -1
- au BufNewFile,BufRead *.asl set ft=asl
- au BufNewFile,BufRead *.dsl set ft=asl
-endif
-
-if index(g:polyglot_disabled, 'apiblueprint') == -1
- au BufNewFile,BufRead *.apib set ft=apiblueprint
-endif
-
-if index(g:polyglot_disabled, 'applescript') == -1
- au BufNewFile,BufRead *.scpt set ft=applescript
- au BufNewFile,BufRead *.applescript set ft=applescript
-endif
-
-if index(g:polyglot_disabled, 'arduino') == -1
- au BufNewFile,BufRead *.ino,*.pde set ft=arduino
-endif
-
-if index(g:polyglot_disabled, 'asciidoc') == -1
- au BufNewFile,BufRead *.asciidoc,*.adoc set ft=asciidoc
-endif
-
-if index(g:polyglot_disabled, 'blade') == -1
- au BufNewFile,BufRead *.blade.php set ft=blade
-endif
-
-if index(g:polyglot_disabled, 'brewfile') == -1
- au BufNewFile,BufRead Brewfile,.Brewfile set ft=ruby syn=brewfile
-endif
-
-if index(g:polyglot_disabled, 'caddyfile') == -1
- au BufNewFile,BufRead Caddyfile set ft=caddyfile
-endif
-
-if index(g:polyglot_disabled, 'carp') == -1
- au BufNewFile,BufRead *.carp set ft=carp
-endif
-
-if index(g:polyglot_disabled, 'cjsx') == -1
- au BufNewFile,BufRead *.csx,*.cjsx set ft=coffee
-endif
-
if index(g:polyglot_disabled, 'clojure') == -1
au BufNewFile,BufRead *.clj,*.cljs,*.edn,*.cljx,*.cljc,{build,profile}.boot set ft=clojure
endif
diff --git a/ftdetect/polyglot_auto.vim b/ftdetect/polyglot_auto.vim
new file mode 100644
index 00000000..75dd91fd
--- /dev/null
+++ b/ftdetect/polyglot_auto.vim
@@ -0,0 +1,59 @@
+if index(g:polyglot_disabled, 'acpiasl') == -1
+ au BufNewFile,BufRead *.asl set ft=asl
+ au BufNewFile,BufRead *.dsl set ft=asl
+endif
+
+if index(g:polyglot_disabled, 'apiblueprint') == -1
+ au BufNewFile,BufRead *.apib set ft=apiblueprint
+endif
+
+if index(g:polyglot_disabled, 'applescript') == -1
+ au BufNewFile,BufRead *.applescript set ft=applescript
+ au BufNewFile,BufRead *.scpt set ft=applescript
+endif
+
+if index(g:polyglot_disabled, 'arduino') == -1
+ au BufNewFile,BufRead *.pde set ft=arduino
+ au BufNewFile,BufRead *.ino set ft=arduino
+endif
+
+if index(g:polyglot_disabled, 'asciidoc') == -1
+ au BufNewFile,BufRead *.asciidoc set ft=asciidoc
+ au BufNewFile,BufRead *.adoc set ft=asciidoc
+ au BufNewFile,BufRead *.asc set ft=asciidoc
+endif
+
+if index(g:polyglot_disabled, 'blade') == -1
+ au BufNewFile,BufRead *.blade set ft=blade
+ au BufNewFile,BufRead *.blade.php set ft=blade
+endif
+
+if index(g:polyglot_disabled, 'caddyfile') == -1
+ au BufNewFile,BufRead *Caddyfile set ft=caddyfile
+endif
+
+if index(g:polyglot_disabled, 'carp') == -1
+ au BufNewFile,BufRead *.carp set ft=carp
+endif
+
+if index(g:polyglot_disabled, 'coffee') == -1
+ au BufNewFile,BufRead *.coffee set ft=coffee
+ au BufNewFile,BufRead *._coffee set ft=coffee
+ au BufNewFile,BufRead *.cake set ft=coffee
+ au BufNewFile,BufRead *.cjsx set ft=coffee
+ au BufNewFile,BufRead *.iced set ft=coffee
+ au BufNewFile,BufRead Cakefile set ft=coffee
+endif
+
+if index(g:polyglot_disabled, 'clojure') == -1
+ au BufNewFile,BufRead *.clj set ft=clojure
+ au BufNewFile,BufRead *.boot set ft=clojure
+ au BufNewFile,BufRead *.cl2 set ft=clojure
+ au BufNewFile,BufRead *.cljc set ft=clojure
+ au BufNewFile,BufRead *.cljs set ft=clojure
+ au BufNewFile,BufRead *.cljs.hl set ft=clojure
+ au BufNewFile,BufRead *.cljscm set ft=clojure
+ au BufNewFile,BufRead *.cljx set ft=clojure
+ au BufNewFile,BufRead *.hic set ft=clojure
+ au BufNewFile,BufRead riemann.config set ft=clojure
+endif