|
|
|
|
@@ -2,6 +2,10 @@
|
|
|
|
|
let s:cpo_save = &cpo
|
|
|
|
|
set cpo&vim
|
|
|
|
|
|
|
|
|
|
if !exists('g:polyglot_disabled')
|
|
|
|
|
let g:polyglot_disabled = []
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
function! s:SetDefault(name, value)
|
|
|
|
|
if !exists(a:name)
|
|
|
|
|
let {a:name} = a:value
|
|
|
|
|
@@ -42,378 +46,409 @@ 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)
|
|
|
|
|
|
|
|
|
|
" visualbasic
|
|
|
|
|
au BufNewFile,BufRead *.vb set ft=vbnet
|
|
|
|
|
if index(g:polyglot_disabled, 'acpiasl') == -1
|
|
|
|
|
au BufNewFile,BufRead *.asl set ft=asl
|
|
|
|
|
au BufNewFile,BufRead *.dsl set ft=asl
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" julia
|
|
|
|
|
au BufNewFile,BufRead *.jl set ft=julia
|
|
|
|
|
if index(g:polyglot_disabled, 'apiblueprint') == -1
|
|
|
|
|
au BufNewFile,BufRead *.apib set ft=apiblueprint
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" coffeescript
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
if index(g:polyglot_disabled, 'coffee-script') == -1
|
|
|
|
|
au BufNewFile,BufRead *.coffee set ft=coffee
|
|
|
|
|
au BufNewFile,BufRead *Cakefile set ft=coffee
|
|
|
|
|
au BufNewFile,BufRead *.coffeekup,*.ck set ft=coffee
|
|
|
|
|
au BufNewFile,BufRead *._coffee set ft=coffee
|
|
|
|
|
au BufNewFile,BufRead *.litcoffee set ft=litcoffee
|
|
|
|
|
au BufNewFile,BufRead *.coffee.md set ft=litcoffee
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" elixir
|
|
|
|
|
if index(g:polyglot_disabled, 'cql') == -1
|
|
|
|
|
au BufNewFile,BufRead *.cql set ft=cql
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if index(g:polyglot_disabled, 'cryptol') == -1
|
|
|
|
|
au BufNewFile,BufRead *.cry set ft=cryptol
|
|
|
|
|
au BufNewFile,BufRead *.cyl set ft=cryptol
|
|
|
|
|
au BufNewFile,BufRead *.lcry set ft=cryptol
|
|
|
|
|
au BufNewFile,BufRead *.lcyl set ft=cryptol
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if index(g:polyglot_disabled, 'crystal') == -1
|
|
|
|
|
au BufNewFile,BufRead *.cr set ft=crystal
|
|
|
|
|
au BufNewFile,BufRead Projectfile set ft=crystal
|
|
|
|
|
au BufNewFile,BufRead *.ecr set ft=ecrystal
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if index(g:polyglot_disabled, 'csv') == -1
|
|
|
|
|
au BufNewFile,BufRead *.csv,*.dat,*.tsv,*.tab set ft=csv
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if index(g:polyglot_disabled, 'cucumber') == -1
|
|
|
|
|
au BufNewFile,BufRead *.feature,*.story set ft=cucumber
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if index(g:polyglot_disabled, 'cue') == -1
|
|
|
|
|
au BufNewFile,BufRead *.cue set ft=cuesheet
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if index(g:polyglot_disabled, 'dart') == -1
|
|
|
|
|
au BufNewFile,BufRead *.dart set ft=dart
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if index(g:polyglot_disabled, 'dhall') == -1
|
|
|
|
|
au BufNewFile,BufRead *.dhall set ft=dhall
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if index(g:polyglot_disabled, 'dlang') == -1
|
|
|
|
|
au BufNewFile,BufRead *.d set ft=d
|
|
|
|
|
au BufNewFile,BufRead *.lst set ft=dcov
|
|
|
|
|
au BufNewFile,BufRead *.dd set ft=dd
|
|
|
|
|
au BufNewFile,BufRead *.ddoc set ft=ddoc
|
|
|
|
|
au BufNewFile,BufRead *.sdl set ft=dsdl
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if index(g:polyglot_disabled, 'dockerfile') == -1
|
|
|
|
|
au BufNewFile,BufRead [Dd]ockerfile set ft=Dockerfile
|
|
|
|
|
au BufNewFile,BufRead Dockerfile* set ft=Dockerfile
|
|
|
|
|
au BufNewFile,BufRead [Dd]ockerfile.vim set ft=vim
|
|
|
|
|
au BufNewFile,BufRead *.dock set ft=Dockerfile
|
|
|
|
|
au BufNewFile,BufRead *.[Dd]ockerfile set ft=Dockerfile
|
|
|
|
|
au BufNewFile,BufRead docker-compose*.{yaml,yml}* set ft=yaml.docker-compose
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if index(g:polyglot_disabled, 'elixir') == -1
|
|
|
|
|
au BufNewFile,BufRead *.ex,*.exs set ft=elixir
|
|
|
|
|
au BufNewFile,BufRead *.eex,*.leex set ft=eelixir
|
|
|
|
|
au BufNewFile,BufRead mix.lock set ft=elixir
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" fish
|
|
|
|
|
if index(g:polyglot_disabled, 'elm') == -1
|
|
|
|
|
au BufNewFile,BufRead *.elm set ft=elm
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if index(g:polyglot_disabled, 'emberscript') == -1
|
|
|
|
|
au BufNewFile,BufRead *.em set ft=ember-script
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if index(g:polyglot_disabled, 'emblem') == -1
|
|
|
|
|
au BufNewFile,BufRead *.emblem set ft=emblem
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if index(g:polyglot_disabled, 'erlang') == -1
|
|
|
|
|
au BufNewFile,BufRead *.erl,*.hrl,rebar.config,*.app,*.app.src,*.yaws,*.xrl,*.escript set ft=erlang
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if index(g:polyglot_disabled, 'ferm') == -1
|
|
|
|
|
au BufNewFile,BufRead ferm.conf set ft=ferm
|
|
|
|
|
au BufNewFile,BufRead *.ferm set ft=ferm
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if index(g:polyglot_disabled, 'fish') == -1
|
|
|
|
|
au BufNewFile,BufRead *.fish set ft=fish
|
|
|
|
|
au BufNewFile,BufRead ~/.config/fish/fish_{read_,}history set ft=yaml
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" git
|
|
|
|
|
if index(g:polyglot_disabled, 'flatbuffers') == -1
|
|
|
|
|
au BufNewFile,BufRead *.fbs set ft=fbs
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if index(g:polyglot_disabled, 'fsharp') == -1
|
|
|
|
|
au BufNewFile,BufRead *.fs,*.fsi,*.fsx set ft=fsharp
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if index(g:polyglot_disabled, 'gdscript') == -1
|
|
|
|
|
au BufNewFile,BufRead *.gd set ft=gdscript3
|
|
|
|
|
au BufNewFile,BufRead *.shader set ft=gsl
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if index(g:polyglot_disabled, 'git') == -1
|
|
|
|
|
au BufNewFile,BufRead *.git/{,modules/**/,worktrees/*/}{COMMIT_EDIT,TAG_EDIT,MERGE_,}MSG set ft=gitcommit
|
|
|
|
|
au BufNewFile,BufRead *.git/config,.gitconfig,gitconfig,.gitmodules set ft=gitconfig
|
|
|
|
|
au BufNewFile,BufRead */.config/git/config set ft=gitconfig
|
|
|
|
|
au BufNewFile,BufRead *.git/modules/**/config set ft=gitconfig
|
|
|
|
|
au BufNewFile,BufRead git-rebase-todo set ft=gitrebase
|
|
|
|
|
au BufNewFile,BufRead .gitsendemail.* set ft=gitsendemail
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" plantuml
|
|
|
|
|
au BufNewFile,BufRead *.pu,*.uml,*.plantuml,*.puml set ft=plantuml
|
|
|
|
|
|
|
|
|
|
" scala
|
|
|
|
|
au BufNewFile,BufRead *.scala,*.sc set ft=scala
|
|
|
|
|
au BufNewFile,BufRead *.sbt set ft=sbt.scala
|
|
|
|
|
|
|
|
|
|
" swift
|
|
|
|
|
au BufNewFile,BufRead *.swift set ft=swift
|
|
|
|
|
|
|
|
|
|
"jinja
|
|
|
|
|
au BufNewFile,BufRead *.jinja2,*.j2,*.jinja,*.nunjucks,*.nunjs,*.njk set ft=jinja
|
|
|
|
|
au BufNewFile,BufRead *.html.jinja2,*.html.j2,*.html.jinja,*.htm.jinja2,*.htm.j2,*.htm.jinja set ft=jinja.html
|
|
|
|
|
|
|
|
|
|
"jsx
|
|
|
|
|
au BufNewFile,BufRead *.jsx set ft=javascriptreact
|
|
|
|
|
|
|
|
|
|
"fsharp
|
|
|
|
|
au BufNewFile,BufRead *.fs,*.fsi,*.fsx set ft=fsharp
|
|
|
|
|
" acpiasl, from asl.vim in martinlroth/vim-acpi-asl
|
|
|
|
|
au BufNewFile,BufRead *.asl set ft=asl
|
|
|
|
|
au BufNewFile,BufRead *.dsl set ft=asl
|
|
|
|
|
|
|
|
|
|
" apiblueprint, from apiblueprint.vim in sheerun/apiblueprint.vim
|
|
|
|
|
au BufNewFile,BufRead *.apib set ft=apiblueprint
|
|
|
|
|
|
|
|
|
|
" applescript, from applescript.vim in mityu/vim-applescript:_SYNTAX
|
|
|
|
|
|
|
|
|
|
au BufNewFile,BufRead *.scpt set ft=applescript
|
|
|
|
|
au BufNewFile,BufRead *.applescript set ft=applescript
|
|
|
|
|
|
|
|
|
|
" vim: foldmethod=marker
|
|
|
|
|
|
|
|
|
|
" arduino, from arduino.vim in sudar/vim-arduino-syntax
|
|
|
|
|
au BufNewFile,BufRead *.ino,*.pde set ft=arduino
|
|
|
|
|
|
|
|
|
|
" asciidoc, from asciidoc.vim in asciidoc/vim-asciidoc
|
|
|
|
|
au BufNewFile,BufRead *.asciidoc,*.adoc
|
|
|
|
|
\ set ft=asciidoc
|
|
|
|
|
|
|
|
|
|
" blade, from blade.vim in jwalton512/vim-blade
|
|
|
|
|
au BufNewFile,BufRead *.blade.php set ft=blade
|
|
|
|
|
|
|
|
|
|
" brewfile, from brewfile.vim in bfontaine/Brewfile.vim
|
|
|
|
|
au BufNewFile,BufRead Brewfile,.Brewfile set ft=ruby syntax=brewfile
|
|
|
|
|
|
|
|
|
|
" caddyfile, from caddyfile.vim in isobit/vim-caddyfile
|
|
|
|
|
au BufNewFile,BufRead Caddyfile set ft=caddyfile
|
|
|
|
|
|
|
|
|
|
" carp, from carp.vim in hellerve/carp-vim
|
|
|
|
|
au BufNewFile,BufRead *.carp set ft=carp
|
|
|
|
|
|
|
|
|
|
" cjsx, from cjsx.vim in mtscout6/vim-cjsx
|
|
|
|
|
au BufNewFile,BufRead *.csx,*.cjsx set ft=coffee
|
|
|
|
|
|
|
|
|
|
" clojure, from clojure.vim in guns/vim-clojure-static
|
|
|
|
|
au BufNewFile,BufRead *.clj,*.cljs,*.edn,*.cljx,*.cljc,{build,profile}.boot set ft=clojure
|
|
|
|
|
|
|
|
|
|
" cql, from cql.vim in elubow/cql-vim
|
|
|
|
|
au BufNewFile,BufRead *.cql set ft=cql
|
|
|
|
|
|
|
|
|
|
" cryptol, from cryptol.vim in victoredwardocallaghan/cryptol.vim
|
|
|
|
|
au BufNewFile,BufRead *.cry set ft=cryptol
|
|
|
|
|
au BufNewFile,BufRead *.cyl set ft=cryptol
|
|
|
|
|
au BufNewFile,BufRead *.lcry set ft=cryptol
|
|
|
|
|
au BufNewFile,BufRead *.lcyl set ft=cryptol
|
|
|
|
|
|
|
|
|
|
" crystal, from crystal.vim in rhysd/vim-crystal
|
|
|
|
|
au BufNewFile,BufRead *.cr set ft=crystal
|
|
|
|
|
au BufNewFile,BufRead Projectfile set ft=crystal
|
|
|
|
|
|
|
|
|
|
" crystal, from ecrystal.vim in rhysd/vim-crystal
|
|
|
|
|
au BufNewFile,BufRead *.ecr set ft=ecrystal
|
|
|
|
|
|
|
|
|
|
" csv, from csv.vim in chrisbra/csv.vim
|
|
|
|
|
au BufNewFile,BufRead *.csv,*.dat,*.tsv,*.tab set ft=csv
|
|
|
|
|
|
|
|
|
|
" cucumber, from cucumber.vim in tpope/vim-cucumber
|
|
|
|
|
au BufNewFile,BufRead *.feature,*.story set ft=cucumber
|
|
|
|
|
|
|
|
|
|
" cue, from cuesheet.vim in mgrabovsky/vim-cuesheet
|
|
|
|
|
au BufNewFile,BufRead *.cue set ft=cuesheet
|
|
|
|
|
|
|
|
|
|
" dart, from dart.vim in dart-lang/dart-vim-plugin
|
|
|
|
|
au BufNewFile,BufRead *.dart set ft=dart
|
|
|
|
|
|
|
|
|
|
" dhall, from dhall.vim in vmchale/dhall-vim
|
|
|
|
|
au BufNewFile,BufRead *.dhall set ft=dhall
|
|
|
|
|
|
|
|
|
|
" dlang, from d.vim in JesseKPhillips/d.vim
|
|
|
|
|
au BufNewFile,BufRead *.d set ft=d
|
|
|
|
|
|
|
|
|
|
" dlang, from dcov.vim in JesseKPhillips/d.vim
|
|
|
|
|
au BufNewFile,BufRead *.lst set ft=dcov
|
|
|
|
|
|
|
|
|
|
" dlang, from dd.vim in JesseKPhillips/d.vim
|
|
|
|
|
au BufNewFile,BufRead *.dd set ft=dd
|
|
|
|
|
|
|
|
|
|
" dlang, from ddoc.vim in JesseKPhillips/d.vim
|
|
|
|
|
au BufNewFile,BufRead *.ddoc set ft=ddoc
|
|
|
|
|
|
|
|
|
|
" dlang, from dsdl.vim in JesseKPhillips/d.vim
|
|
|
|
|
au BufNewFile,BufRead *.sdl set ft=dsdl
|
|
|
|
|
|
|
|
|
|
" dockerfile, from Dockerfile.vim in ekalinin/Dockerfile.vim
|
|
|
|
|
" vint: -ProhibitAutocmdWithNoGroup
|
|
|
|
|
|
|
|
|
|
" Dockerfile
|
|
|
|
|
au BufNewFile,BufRead [Dd]ockerfile set ft=Dockerfile
|
|
|
|
|
au BufNewFile,BufRead Dockerfile* set ft=Dockerfile
|
|
|
|
|
au BufNewFile,BufRead [Dd]ockerfile.vim set ft=vim
|
|
|
|
|
au BufNewFile,BufRead *.dock set ft=Dockerfile
|
|
|
|
|
au BufNewFile,BufRead *.[Dd]ockerfile set ft=Dockerfile
|
|
|
|
|
|
|
|
|
|
" dockerfile, from docker-compose.vim in ekalinin/Dockerfile.vim
|
|
|
|
|
au BufNewFile,BufRead docker-compose*.{yaml,yml}* set ft=yaml.docker-compose
|
|
|
|
|
|
|
|
|
|
" elm, from elm.vim in andys8/vim-elm-syntax
|
|
|
|
|
" detection for Elm (https://elm-lang.org)
|
|
|
|
|
|
|
|
|
|
au BufNewFile,BufRead *.elm set ft=elm
|
|
|
|
|
|
|
|
|
|
" emberscript, from ember-script.vim in yalesov/vim-ember-script
|
|
|
|
|
au BufNewFile,BufRead *.em set ft=ember-script
|
|
|
|
|
|
|
|
|
|
" emblem, from emblem.vim in yalesov/vim-emblem
|
|
|
|
|
au BufNewFile,BufRead *.emblem set ft=emblem
|
|
|
|
|
|
|
|
|
|
" erlang, from erlang.vim in vim-erlang/vim-erlang-runtime
|
|
|
|
|
au BufNewFile,BufRead *.erl,*.hrl,rebar.config,*.app,*.app.src,*.yaws,*.xrl,*.escript set ft=erlang
|
|
|
|
|
|
|
|
|
|
" ferm, from ferm.vim in vim-scripts/ferm.vim
|
|
|
|
|
au BufNewFile,BufRead ferm.conf set ft=ferm
|
|
|
|
|
au BufNewFile,BufRead *.ferm set ft=ferm
|
|
|
|
|
|
|
|
|
|
" flatbuffers, from fbs.vim in dcharbon/vim-flatbuffers
|
|
|
|
|
au BufNewFile,BufRead *.fbs set ft=fbs
|
|
|
|
|
|
|
|
|
|
" gdscript, from gdscript3.vim in calviken/vim-gdscript3
|
|
|
|
|
au BufNewFile,BufRead *.gd set ft=gdscript3
|
|
|
|
|
|
|
|
|
|
" gdscript, from gsl.vim in calviken/vim-gdscript3
|
|
|
|
|
au BufNewFile,BufRead *.shader set ft=gsl
|
|
|
|
|
|
|
|
|
|
" glsl, from glsl.vim in tikhomirov/vim-glsl:_NOAFTER
|
|
|
|
|
if index(g:polyglot_disabled, 'glsl') == -1
|
|
|
|
|
au BufNewFile,BufRead *.vert,*.tesc,*.tese,*.glsl,*.geom,*.frag,*.comp set ft=glsl
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" gmpl, from gmpl.vim in maelvalais/gmpl.vim
|
|
|
|
|
if index(g:polyglot_disabled, 'gmpl') == -1
|
|
|
|
|
au BufNewFile,BufRead *.mod set ft=gmpl
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" go, from gofiletype.vim in fatih/vim-go:_BASIC
|
|
|
|
|
if index(g:polyglot_disabled, 'go') == -1
|
|
|
|
|
au BufNewFile,BufRead *.go set ft=go
|
|
|
|
|
au BufNewFile,BufRead *.s set ft=asm
|
|
|
|
|
au BufNewFile,BufRead *.tmpl set ft=gohtmltmpl
|
|
|
|
|
|
|
|
|
|
" go.mod
|
|
|
|
|
au BufNewFile,BufRead go.mod set ft=gomod
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" graphql
|
|
|
|
|
if index(g:polyglot_disabled, 'graphql') == -1
|
|
|
|
|
au BufNewFile,BufRead *.graphql,*.graphqls,*.gql set ft=graphql
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" gradle, from gradle.vim in tfnico/vim-gradle
|
|
|
|
|
if index(g:polyglot_disabled, 'gradle') == -1
|
|
|
|
|
au BufNewFile,BufRead *.gradle set ft=groovy
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" haml, from haml.vim in sheerun/vim-haml
|
|
|
|
|
if index(g:polyglot_disabled, 'haml') == -1
|
|
|
|
|
au BufNewFile,BufRead *.haml,*.hamlbars,*.hamlc set ft=haml
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" handlebars, from mustache.vim in mustache/vim-mustache-handlebars
|
|
|
|
|
au BufNewFile,BufRead *.mustache,*.hogan,*.hulk,*.hjs set ft=html.mustache syntax=mustache | runtime! ftplugin/mustache.vim ftplugin/mustache*.vim ftplugin/mustache/*.vim indent/handlebars.vim
|
|
|
|
|
au BufNewFile,BufRead *.handlebars,*.hdbs,*.hbs,*.hb set ft=html.handlebars syntax=mustache | runtime! ftplugin/mustache.vim ftplugin/mustache*.vim ftplugin/mustache/*.vim
|
|
|
|
|
if index(g:polyglot_disabled, 'handlebars') == -1
|
|
|
|
|
au BufNewFile,BufRead *.mustache,*.hogan,*.hulk,*.hjs set ft=html.mustache syn=mustache | runtime! ftplugin/mustache.vim ftplugin/mustache*.vim ftplugin/mustache/*.vim indent/handlebars.vim
|
|
|
|
|
au BufNewFile,BufRead *.handlebars,*.hdbs,*.hbs,*.hb set ft=html.handlebars syn=mustache | runtime! ftplugin/mustache.vim ftplugin/mustache*.vim ftplugin/mustache/*.vim
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" haproxy, from haproxy.vim in CH-DanReif/haproxy.vim
|
|
|
|
|
if index(g:polyglot_disabled, 'haproxy') == -1
|
|
|
|
|
au BufNewFile,BufRead haproxy*.c* set ft=haproxy
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" haskell, from haskell.vim in neovimhaskell/haskell-vim
|
|
|
|
|
if index(g:polyglot_disabled, 'haskell') == -1
|
|
|
|
|
au BufNewFile,BufRead *.hsc set ft=haskell
|
|
|
|
|
au BufNewFile,BufRead *.bpk set ft=haskell
|
|
|
|
|
au BufNewFile,BufRead *.hsig set ft=haskell
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" haxe, from haxe.vim in yaymukund/vim-haxe
|
|
|
|
|
if index(g:polyglot_disabled, 'haxe') == -1
|
|
|
|
|
au BufNewFile,BufRead *.hx set ft=haxe
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" hcl, from hcl.vim in b4b4r07/vim-hcl
|
|
|
|
|
if index(g:polyglot_disabled, 'hcl') == -1
|
|
|
|
|
au BufNewFile,BufRead *.hcl set ft=hcl
|
|
|
|
|
au BufNewFile,BufRead *.nomad set ft=hcl
|
|
|
|
|
au BufNewFile,BufRead *.tf set ft=hcl
|
|
|
|
|
au BufNewFile,BufRead Appfile set ft=hcl
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" helm, from helm.vim in towolf/vim-helm
|
|
|
|
|
if index(g:polyglot_disabled, 'helm') == -1
|
|
|
|
|
au BufNewFile,BufRead */templates/*.yaml,*/templates/*.tpl set ft=helm
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" hive, from hive.vim in zebradil/hive.vim
|
|
|
|
|
if index(g:polyglot_disabled, 'hive') == -1
|
|
|
|
|
au BufNewFile,BufRead *.hql set ft=hive
|
|
|
|
|
au BufNewFile,BufRead *.ql set ft=hive
|
|
|
|
|
au BufNewFile,BufRead *.q set ft=hive
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" i3, from i3config.vim in mboughaba/i3config.vim
|
|
|
|
|
if index(g:polyglot_disabled, 'i3') == -1
|
|
|
|
|
au BufNewFile,BufRead .i3.config,i3.config,*.i3config,*.i3.config set ft=i3config
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" idris, from idris.vim in idris-hackers/idris-vim
|
|
|
|
|
if index(g:polyglot_disabled, 'idris') == -1
|
|
|
|
|
au BufNewFile,BufRead *.idr set ft=idris
|
|
|
|
|
au BufNewFile,BufRead idris-response set ft=idris
|
|
|
|
|
|
|
|
|
|
" idris, from lidris.vim in idris-hackers/idris-vim
|
|
|
|
|
au BufNewFile,BufRead *.lidr set ft=lidris
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" ion, from ion.vim in vmchale/ion-vim
|
|
|
|
|
if index(g:polyglot_disabled, 'ion') == -1
|
|
|
|
|
au BufNewFile,BufRead ~/.config/ion/initrc set ft=ion
|
|
|
|
|
au BufNewFile,BufRead *.ion set ft=ion
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" javascript, from flow.vim in pangloss/vim-javascript:_JAVASCRIPT
|
|
|
|
|
if index(g:polyglot_disabled, 'javascript') == -1
|
|
|
|
|
au BufNewFile,BufRead *.flow set ft=flow
|
|
|
|
|
|
|
|
|
|
" javascript, from javascript.vim in pangloss/vim-javascript:_JAVASCRIPT
|
|
|
|
|
au BufNewFile,BufRead *.{js,mjs,cjs,jsm,es,es6},Jakefile set ft=javascript
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" jenkins, from Jenkinsfile.vim in martinda/Jenkinsfile-vim-syntax
|
|
|
|
|
if index(g:polyglot_disabled, 'jenkins') == -1
|
|
|
|
|
au BufNewFile,BufRead Jenkinsfile set ft=Jenkinsfile
|
|
|
|
|
au BufNewFile,BufRead Jenkinsfile* set ft=Jenkinsfile
|
|
|
|
|
au BufNewFile,BufRead *.jenkinsfile set ft=Jenkinsfile
|
|
|
|
|
au BufNewFile,BufRead *.jenkinsfile set ft=Jenkinsfile
|
|
|
|
|
au BufNewFile,BufRead *.Jenkinsfile set ft=Jenkinsfile
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" json5, from json5.vim in GutenYe/json5.vim
|
|
|
|
|
if index(g:polyglot_disabled, 'jinja') == -1
|
|
|
|
|
au BufNewFile,BufRead *.jinja2,*.j2,*.jinja,*.nunjucks,*.nunjs,*.njk set ft=jinja
|
|
|
|
|
au BufNewFile,BufRead *.html.jinja2,*.html.j2,*.html.jinja,*.htm.jinja2,*.htm.j2,*.htm.jinja set ft=jinja.html
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if index(g:polyglot_disabled, 'json5') == -1
|
|
|
|
|
au BufNewFile,BufRead *.json5 set ft=json5
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" json, from json.vim in elzr/vim-json
|
|
|
|
|
if index(g:polyglot_disabled, 'json') == -1
|
|
|
|
|
au BufNewFile,BufRead *.json set ft=json
|
|
|
|
|
au BufNewFile,BufRead *.jsonl set ft=json
|
|
|
|
|
au BufNewFile,BufRead *.jsonp set ft=json
|
|
|
|
|
au BufNewFile,BufRead *.geojson set ft=json
|
|
|
|
|
au BufNewFile,BufRead *.template set ft=json
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" jst, from jst.vim in briancollins/vim-jst
|
|
|
|
|
if index(g:polyglot_disabled, 'jst') == -1
|
|
|
|
|
au BufNewFile,BufRead *.ejs set ft=jst
|
|
|
|
|
au BufNewFile,BufRead *.jst set ft=jst
|
|
|
|
|
au BufNewFile,BufRead *.djs set ft=jst
|
|
|
|
|
au BufNewFile,BufRead *.hamljs set ft=jst
|
|
|
|
|
au BufNewFile,BufRead *.ect set ft=jst
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" kotlin, from kotlin.vim in udalov/kotlin-vim
|
|
|
|
|
if index(g:polyglot_disabled, 'jsx') == -1
|
|
|
|
|
au BufNewFile,BufRead *.jsx set ft=javascriptreact
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if index(g:polyglot_disabled, 'julia') == -1
|
|
|
|
|
au BufNewFile,BufRead *.jl set ft=julia
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if index(g:polyglot_disabled, 'kotlin') == -1
|
|
|
|
|
au BufNewFile,BufRead *.kt set ft=kotlin
|
|
|
|
|
au BufNewFile,BufRead *.kts set ft=kotlin
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" less, from less.vim in groenewege/vim-less:_NOAFTER
|
|
|
|
|
if index(g:polyglot_disabled, 'ledger') == -1
|
|
|
|
|
au BufNewFile,BufRead *.ldg,*.ledger,*.journal set ft=ledger
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if index(g:polyglot_disabled, 'less') == -1
|
|
|
|
|
au BufNewFile,BufRead *.less set ft=less
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" lilypond, from lilypond.vim in anowlcalledjosh/vim-lilypond
|
|
|
|
|
if index(g:polyglot_disabled, 'lilypond') == -1
|
|
|
|
|
au BufNewFile,BufRead *.ly,*.ily set ft=lilypond
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" livescript, from ls.vim in gkz/vim-ls
|
|
|
|
|
if index(g:polyglot_disabled, 'livescript') == -1
|
|
|
|
|
au BufNewFile,BufRead *.ls set ft=ls
|
|
|
|
|
au BufNewFile,BufRead *Slakefile set ft=ls
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" llvm, from llvm.vim in rhysd/vim-llvm
|
|
|
|
|
if index(g:polyglot_disabled, 'llvm') == -1
|
|
|
|
|
au BufNewFile,BufRead *.ll set ft=llvm
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" llvm, from llvm-lit.vim in rhysd/vim-llvm
|
|
|
|
|
if index(g:polyglot_disabled, 'llvm') == -1
|
|
|
|
|
au BufNewFile,BufRead lit.*cfg set ft=python
|
|
|
|
|
|
|
|
|
|
" llvm, from tablegen.vim in rhysd/vim-llvm
|
|
|
|
|
au BufNewFile,BufRead *.td set ft=tablegen
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" log, from log.vim in MTDL9/vim-log-highlighting
|
|
|
|
|
if index(g:polyglot_disabled, 'log') == -1
|
|
|
|
|
au BufNewFile,BufRead *.log set ft=log
|
|
|
|
|
au BufNewFile,BufRead *_log set ft=log
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" mako, from mako.vim in sophacles/vim-bundle-mako
|
|
|
|
|
if index(g:polyglot_disabled, 'mako') == -1
|
|
|
|
|
au BufNewFile *.*.mako execute "do BufNewFile filetypedetect " . expand("<afile>:r") | let b:mako_outer_lang = &filetype
|
|
|
|
|
au BufReadPre *.*.mako execute "do BufRead filetypedetect " . expand("<afile>:r") | let b:mako_outer_lang = &filetype
|
|
|
|
|
au BufNewFile,BufRead *.mako set ft=mako
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" markdown, from markdown.vim in plasticboy/vim-markdown:_NOAFTER
|
|
|
|
|
if index(g:polyglot_disabled, 'markdown') == -1
|
|
|
|
|
au BufNewFile,BufRead *.{md,mdown,mkd,mkdn,markdown,mdwn} set ft=markdown
|
|
|
|
|
au BufNewFile,BufRead *.{md,mdown,mkd,mkdn,markdown,mdwn}.{des3,des,bf,bfa,aes,idea,cast,rc2,rc4,rc5,desx} set ft=markdown
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" mathematica, from mma.vim in voldikss/vim-mma
|
|
|
|
|
if index(g:polyglot_disabled, 'mathematica') == -1
|
|
|
|
|
au BufNewFile,BufRead *.wl set ft=mma
|
|
|
|
|
au BufNewFile,BufRead *.wls set ft=mma
|
|
|
|
|
au BufNewFile,BufRead *.nb set ft=mma
|
|
|
|
|
au BufNewFile,BufRead *.m set ft=mma
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" mdx, from mdx.vim in jxnblk/vim-mdx-js
|
|
|
|
|
if index(g:polyglot_disabled, 'mdx') == -1
|
|
|
|
|
au BufNewFile,BufRead *.mdx set ft=markdown.mdx
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" meson, from meson.vim in mesonbuild/meson:_ALL:/data/syntax-highlighting/vim/
|
|
|
|
|
if index(g:polyglot_disabled, 'meson') == -1
|
|
|
|
|
au BufNewFile,BufRead meson.build set ft=meson
|
|
|
|
|
au BufNewFile,BufRead meson_options.txt set ft=meson
|
|
|
|
|
au BufNewFile,BufRead *.wrap set ft=dosini
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" moonscript, from moon.vim in leafo/moonscript-vim
|
|
|
|
|
if index(g:polyglot_disabled, 'moonscript') == -1
|
|
|
|
|
au BufNewFile,BufRead *.moon set ft=moon
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" nginx, from nginx.vim in chr4/nginx.vim
|
|
|
|
|
if index(g:polyglot_disabled, 'nginx') == -1
|
|
|
|
|
au BufNewFile,BufRead *.nginx set ft=nginx
|
|
|
|
|
au BufNewFile,BufRead nginx*.conf set ft=nginx
|
|
|
|
|
au BufNewFile,BufRead *nginx.conf set ft=nginx
|
|
|
|
|
au BufNewFile,BufRead */etc/nginx/* set ft=nginx
|
|
|
|
|
au BufNewFile,BufRead */usr/local/nginx/conf/* set ft=nginx
|
|
|
|
|
au BufNewFile,BufRead */nginx/*.conf set ft=nginx
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" nim, from nim.vim in zah/nim.vim:_BASIC
|
|
|
|
|
if index(g:polyglot_disabled, 'nim') == -1
|
|
|
|
|
au BufNewFile,BufRead *.nim,*.nims,*.nimble set ft=nim
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" nix, from nix.vim in LnL7/vim-nix
|
|
|
|
|
if index(g:polyglot_disabled, 'nix') == -1
|
|
|
|
|
au BufNewFile,BufRead *.nix set ft=nix
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" ocaml, from dune.vim in rgrinberg/vim-ocaml
|
|
|
|
|
if index(g:polyglot_disabled, 'ocaml') == -1
|
|
|
|
|
au BufNewFile,BufRead jbuild,dune,dune-project,dune-workspace set ft=dune
|
|
|
|
|
|
|
|
|
|
" ocaml, from oasis.vim in rgrinberg/vim-ocaml
|
|
|
|
|
au BufNewFile,BufRead _oasis set ft=oasis
|
|
|
|
|
|
|
|
|
|
" ocaml, from ocaml.vim in rgrinberg/vim-ocaml
|
|
|
|
|
au BufNewFile,BufRead *.ml,*.mli,*.mll,*.mly,.ocamlinit,*.mlt,*.mlp,*.mlip,*.mli.cppo,*.ml.cppo set ft=ocaml
|
|
|
|
|
|
|
|
|
|
" ocaml, from ocamlbuild_tags.vim in rgrinberg/vim-ocaml
|
|
|
|
|
au BufNewFile,BufRead _tags set ft=ocamlbuild_tags
|
|
|
|
|
|
|
|
|
|
" ocaml, from omake.vim in rgrinberg/vim-ocaml
|
|
|
|
|
au BufNewFile,BufRead OMakefile,OMakeroot,*.om,OMakeroot.in set ft=omake
|
|
|
|
|
|
|
|
|
|
" ocaml, from opam.vim in rgrinberg/vim-ocaml
|
|
|
|
|
au BufNewFile,BufRead opam,*.opam,*.opam.template set ft=opam
|
|
|
|
|
|
|
|
|
|
" ocaml, from sexplib.vim in rgrinberg/vim-ocaml
|
|
|
|
|
au BufNewFile,BufRead *.sexp set ft=sexplib
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" opencl, from opencl.vim in petRUShka/vim-opencl
|
|
|
|
|
if index(g:polyglot_disabled, 'opencl') == -1
|
|
|
|
|
au BufNewFile,BufRead *.cl set ft=opencl
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" perl, from perl11.vim in vim-perl/vim-perl
|
|
|
|
|
if index(g:polyglot_disabled, 'perl') == -1
|
|
|
|
|
au BufNew,BufNewFile,BufRead *.nqp set ft=perl6
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" pgsql, from pgsql.vim in lifepillar/pgsql.vim
|
|
|
|
|
if index(g:polyglot_disabled, 'pgsql') == -1
|
|
|
|
|
au BufNewFile,BufRead *.pgsql let b:sql_type_override='pgsql' | set ft=sql
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" pony, from pony.vim in jakwings/vim-pony
|
|
|
|
|
if index(g:polyglot_disabled, 'plantuml') == -1
|
|
|
|
|
au BufNewFile,BufRead *.pu,*.uml,*.plantuml,*.puml set ft=plantuml
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if index(g:polyglot_disabled, 'pony') == -1
|
|
|
|
|
au BufNewFile,BufRead *.pony set ft=pony
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" powershell, from ps1.vim in PProvost/vim-ps1
|
|
|
|
|
if index(g:polyglot_disabled, 'powershell') == -1
|
|
|
|
|
au BufNewFile,BufRead *.ps1 set ft=ps1
|
|
|
|
|
au BufNewFile,BufRead *.psd1 set ft=ps1
|
|
|
|
|
au BufNewFile,BufRead *.psm1 set ft=ps1
|
|
|
|
|
@@ -421,51 +456,62 @@ au BufNewFile,BufRead *.pssc set ft=ps1
|
|
|
|
|
au BufNewFile,BufRead *.ps1xml set ft=ps1xml
|
|
|
|
|
au BufNewFile,BufRead *.cdxml set ft=xml
|
|
|
|
|
au BufNewFile,BufRead *.psc1 set ft=xml
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" protobuf, from proto.vim in uarun/vim-protobuf
|
|
|
|
|
if index(g:polyglot_disabled, 'protobuf') == -1
|
|
|
|
|
au BufNewFile,BufRead *.proto set ft=proto
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" pug, from pug.vim in digitaltoad/vim-pug
|
|
|
|
|
if index(g:polyglot_disabled, 'pug') == -1
|
|
|
|
|
au BufNewFile,BufRead *.pug set ft=pug
|
|
|
|
|
|
|
|
|
|
" Jade
|
|
|
|
|
au BufNewFile,BufRead *.jade set ft=pug
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" puppet, from puppet.vim in rodjek/vim-puppet
|
|
|
|
|
if index(g:polyglot_disabled, 'puppet') == -1
|
|
|
|
|
au BufNewFile,BufRead *.pp set ft=puppet
|
|
|
|
|
au BufNewFile,BufRead *.epp set ft=embeddedpuppet
|
|
|
|
|
au BufNewFile,BufRead Puppetfile set ft=ruby
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" purescript, from purescript.vim in purescript-contrib/purescript-vim
|
|
|
|
|
if index(g:polyglot_disabled, 'purescript') == -1
|
|
|
|
|
au BufNewFile,BufRead *.purs set ft=purescript
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" qmake, from pri.vim in artoj/qmake-syntax-vim
|
|
|
|
|
if index(g:polyglot_disabled, 'qmake') == -1
|
|
|
|
|
au BufNewFile,BufRead *.pri set ft=qmake
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" qmake, from pro.vim in artoj/qmake-syntax-vim
|
|
|
|
|
if index(g:polyglot_disabled, 'qmake') == -1
|
|
|
|
|
au BufNewFile,BufRead *.pro set ft=qmake
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" qml, from qml.vim in peterhoeg/vim-qml
|
|
|
|
|
if index(g:polyglot_disabled, 'qml') == -1
|
|
|
|
|
au BufNewFile,BufRead *.qml set ft=qml
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" racket, from racket.vim in wlangstroth/vim-racket
|
|
|
|
|
if index(g:polyglot_disabled, 'racket') == -1
|
|
|
|
|
au BufNewFile,BufRead *.rkt,*.rktl set ft=racket
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" raku, from raku.vim in Raku/vim-raku
|
|
|
|
|
if index(g:polyglot_disabled, 'raku') == -1
|
|
|
|
|
au BufNewFile,BufRead *.pm6,*.p6,*.t6,*.pod6,*.raku,*.rakumod,*.rakudoc,*.rakutest set ft=raku
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" raml, from raml.vim in IN3D/vim-raml
|
|
|
|
|
if index(g:polyglot_disabled, 'raml') == -1
|
|
|
|
|
au BufNewFile,BufRead *.raml set ft=raml
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" razor, from razor.vim in adamclerk/vim-razor
|
|
|
|
|
if index(g:polyglot_disabled, 'razor') == -1
|
|
|
|
|
au BufNewFile,BufRead *.cshtml set ft=razor
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" reason, from reason.vim in reasonml-editor/vim-reason-plus
|
|
|
|
|
if index(g:polyglot_disabled, 'reason') == -1
|
|
|
|
|
au BufNewFile,BufRead *.re set ft=reason
|
|
|
|
|
au BufNewFile,BufRead *.rei set ft=reason
|
|
|
|
|
au BufNewFile,BufRead .merlin set ft=merlin
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" ruby, from ruby.vim in vim-ruby/vim-ruby
|
|
|
|
|
if index(g:polyglot_disabled, 'ruby') == -1
|
|
|
|
|
au BufNewFile,BufRead *.erb,*.rhtml set ft=eruby
|
|
|
|
|
au BufNewFile,BufRead .irbrc,irbrc set ft=ruby
|
|
|
|
|
au BufNewFile,BufRead *.rb,*.rbw,*.gemspec set ft=ruby
|
|
|
|
|
@@ -494,39 +540,56 @@ au BufNewFile,BufRead .simplecov set ft=ruby
|
|
|
|
|
au BufNewFile,BufRead *.rbi set ft=ruby
|
|
|
|
|
au BufNewFile,BufRead [tT]horfile,*.thor set ft=ruby
|
|
|
|
|
au BufNewFile,BufRead [vV]agrantfile set ft=ruby
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" rust, from rust.vim in rust-lang/rust.vim
|
|
|
|
|
if index(g:polyglot_disabled, 'rust') == -1
|
|
|
|
|
au BufNewFile,BufRead *.rs set ft=rust
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" sbt, from sbt.vim in derekwyatt/vim-sbt
|
|
|
|
|
if index(g:polyglot_disabled, 'scala') == -1
|
|
|
|
|
au BufNewFile,BufRead *.scala,*.sc set ft=scala
|
|
|
|
|
au BufNewFile,BufRead *.sbt set ft=sbt.scala
|
|
|
|
|
au BufNewFile,BufRead *.sbt set ft=sbt.scala
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" scss, from scss.vim in cakebaker/scss-syntax.vim
|
|
|
|
|
if index(g:polyglot_disabled, 'scss') == -1
|
|
|
|
|
au BufNewFile,BufRead *.scss set ft=scss
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" slim, from slim.vim in slim-template/vim-slim
|
|
|
|
|
if index(g:polyglot_disabled, 'slim') == -1
|
|
|
|
|
au BufNewFile,BufRead *.slim set ft=slim
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" slime, from slime.vim in slime-lang/vim-slime-syntax
|
|
|
|
|
if index(g:polyglot_disabled, 'slime') == -1
|
|
|
|
|
au BufNewFile,BufRead *.slime set ft=slime
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" smt2, from smt2.vim in bohlender/vim-smt2
|
|
|
|
|
if index(g:polyglot_disabled, 'smt2') == -1
|
|
|
|
|
au BufNewFile,BufRead *.smt,*.smt2 set ft=smt2
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" solidity, from solidity.vim in tomlion/vim-solidity
|
|
|
|
|
au BufNewFile,BufRead *.sol setf solidity
|
|
|
|
|
if index(g:polyglot_disabled, 'solidity') == -1
|
|
|
|
|
au BufNewFile,BufRead *.sol set ft=solidity
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" stylus, from stylus.vim in wavded/vim-stylus
|
|
|
|
|
" Stylus
|
|
|
|
|
if index(g:polyglot_disabled, 'stylus') == -1
|
|
|
|
|
au BufNewFile,BufRead *.styl set ft=stylus
|
|
|
|
|
au BufNewFile,BufRead *.stylus set ft=stylus
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" svelte, from svelte.vim in evanleck/vim-svelte
|
|
|
|
|
if index(g:polyglot_disabled, 'svelte') == -1
|
|
|
|
|
au BufNewFile,BufRead *.svelte set ft=svelte
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if index(g:polyglot_disabled, 'swift') == -1
|
|
|
|
|
au BufNewFile,BufRead *.swift set ft=swift
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if index(g:polyglot_disabled, 'sxhkd') == -1
|
|
|
|
|
au BufNewFile,BufRead sxhkdrc,*.sxhkdrc set ft=sxhkdrc
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" systemd, from systemd.vim in wgwoods/vim-systemd-syntax
|
|
|
|
|
if index(g:polyglot_disabled, 'systemd') == -1
|
|
|
|
|
au BufNewFile,BufRead *.automount set ft=systemd
|
|
|
|
|
au BufNewFile,BufRead *.mount set ft=systemd
|
|
|
|
|
au BufNewFile,BufRead *.path set ft=systemd
|
|
|
|
|
@@ -535,80 +598,90 @@ au BufNewFile,BufRead *.socket set ft=systemd
|
|
|
|
|
au BufNewFile,BufRead *.swap set ft=systemd
|
|
|
|
|
au BufNewFile,BufRead *.target set ft=systemd
|
|
|
|
|
au BufNewFile,BufRead *.timer set ft=systemd
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" terraform, from terraform.vim in hashivim/vim-terraform
|
|
|
|
|
if index(g:polyglot_disabled, 'terraform') == -1
|
|
|
|
|
au BufNewFile,BufRead *.tf set ft=terraform
|
|
|
|
|
au BufNewFile,BufRead *.tfvars set ft=terraform
|
|
|
|
|
au BufNewFile,BufRead *.tfstate set ft=json
|
|
|
|
|
au BufNewFile,BufRead *.tfstate.backup set ft=json
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" textile, from textile.vim in timcharper/textile.vim
|
|
|
|
|
if index(g:polyglot_disabled, 'textile') == -1
|
|
|
|
|
au BufNewFile,BufRead *.textile set ft=textile
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" thrift, from thrift.vim in solarnz/thrift.vim
|
|
|
|
|
if index(g:polyglot_disabled, 'thrift') == -1
|
|
|
|
|
au BufNewFile,BufRead *.thrift set ft=thrift
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" tmux, from tmux.vim in ericpruitt/tmux.vim:_ALL:/vim/
|
|
|
|
|
if index(g:polyglot_disabled, 'tmux') == -1
|
|
|
|
|
au BufNewFile,BufRead {.,}tmux.conf set ft=tmux
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" toml, from toml.vim in cespare/vim-toml
|
|
|
|
|
au BufNewFile,BufRead *.toml,Gopkg.lock,Cargo.lock,*/.cargo/config,*/.cargo/credentials,Pipfile setf toml
|
|
|
|
|
if index(g:polyglot_disabled, 'toml') == -1
|
|
|
|
|
au BufNewFile,BufRead *.toml,Gopkg.lock,Cargo.lock,*/.cargo/config,*/.cargo/credentials,Pipfile set ft=toml
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" tptp, from tptp.vim in c-cube/vim-tptp
|
|
|
|
|
if index(g:polyglot_disabled, 'tptp') == -1
|
|
|
|
|
au BufNewFile,BufRead *.p set ft=tptp
|
|
|
|
|
au BufNewFile,BufRead *.p set syntax=tptp
|
|
|
|
|
au BufNewFile,BufRead *.tptp set ft=tptp
|
|
|
|
|
au BufNewFile,BufRead *.tptp set syntax=tptp
|
|
|
|
|
au BufNewFile,BufRead *.ax set ft=tptp
|
|
|
|
|
au BufNewFile,BufRead *.ax set syntax=tptp
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" twig, from twig.vim in lumiliet/vim-twig
|
|
|
|
|
if index(g:polyglot_disabled, 'twig') == -1
|
|
|
|
|
au BufNewFile,BufRead *.twig set ft=html.twig
|
|
|
|
|
au BufNewFile,BufRead *.html.twig set ft=html.twig
|
|
|
|
|
au BufNewFile,BufRead *.xml.twig set ft=xml.twig
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" typescript, from typescript.vim in HerringtonDarkholme/yats.vim
|
|
|
|
|
au BufNewFile,BufRead *.ts set ft=typescript
|
|
|
|
|
|
|
|
|
|
" typescript, from typescriptreact.vim in HerringtonDarkholme/yats.vim
|
|
|
|
|
if index(g:polyglot_disabled, 'typescript') == -1
|
|
|
|
|
au BufNewFile,BufRead *.tsx set ft=typescriptreact
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" v, from vlang.vim in ollykel/v-vim
|
|
|
|
|
if index(g:polyglot_disabled, 'v') == -1
|
|
|
|
|
au BufNewFile,BufRead *.v set ft=vlang
|
|
|
|
|
au BufNewFile,BufRead *.v set syntax=vlang
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" vala, from vala.vim in arrufat/vala.vim
|
|
|
|
|
if index(g:polyglot_disabled, 'vala') == -1
|
|
|
|
|
au BufNewFile,BufRead *.vala,*.vapi,*.valadoc set ft=vala
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" vcl, from vcl.vim in smerrill/vcl-vim-plugin
|
|
|
|
|
if index(g:polyglot_disabled, 'vbnet') == -1
|
|
|
|
|
au BufNewFile,BufRead *.vb set ft=vbnet
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if index(g:polyglot_disabled, 'vcl') == -1
|
|
|
|
|
au BufNewFile,BufRead *.vcl set ft=vcl
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" vifm, from vifm.vim in vifm/vifm.vim
|
|
|
|
|
if index(g:polyglot_disabled, 'vifm') == -1
|
|
|
|
|
au BufNewFile,BufRead vifmrc set ft=vifm
|
|
|
|
|
au BufNewFile,BufRead *vifm/colors/* set ft=vifm
|
|
|
|
|
au BufNewFile,BufRead *.vifm set ft=vifm
|
|
|
|
|
|
|
|
|
|
" vifm, from vifm-rename.vim in vifm/vifm.vim
|
|
|
|
|
au BufNewFile,BufRead vifm.rename* set ft=vifm-rename
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" vm, from velocity.vim in lepture/vim-velocity
|
|
|
|
|
au BufNewFile,BufRead *.vm set ft=velocity syntax=velocity
|
|
|
|
|
if index(g:polyglot_disabled, 'vm') == -1
|
|
|
|
|
au BufNewFile,BufRead *.vm set ft=velocity
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" vue, from vue.vim in posva/vim-vue
|
|
|
|
|
au BufNewFile,BufRead *.vue,*.wpy setf vue
|
|
|
|
|
if index(g:polyglot_disabled, 'vue') == -1
|
|
|
|
|
au BufNewFile,BufRead *.vue,*.wpy set ft=vue
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" xdc, from xdc.vim in amal-khailtash/vim-xdc-syntax
|
|
|
|
|
if index(g:polyglot_disabled, 'xdc') == -1
|
|
|
|
|
au BufNewFile,BufRead *.xdc set ft=xdc
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" zephir, from zephir.vim in xwsoul/vim-zephir
|
|
|
|
|
if index(g:polyglot_disabled, 'zephir') == -1
|
|
|
|
|
au BufNewFile,BufRead *.zep set ft=zephir
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" zig, from zig.vim in ziglang/zig.vim
|
|
|
|
|
if index(g:polyglot_disabled, 'zig') == -1
|
|
|
|
|
au BufNewFile,BufRead *.zig set ft=zig
|
|
|
|
|
au BufNewFile,BufRead *.zir set ft=zir
|
|
|
|
|
|
|
|
|
|
" ledger
|
|
|
|
|
au BufNewFile,BufRead *.ldg,*.ledger,*.journal set ft=ledger
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" restore Vi compatibility settings
|
|
|
|
|
let &cpo = s:cpo_save
|
|
|
|
|
|