summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--after/ftdetect/javascript.vim4
-rw-r--r--after/ftdetect/rspec.vim4
-rw-r--r--after/ftplugin/coffee.vim4
-rw-r--r--after/ftplugin/haskell.vim4
-rw-r--r--after/ftplugin/jsx.vim4
-rw-r--r--after/ftplugin/puppet.vim4
-rw-r--r--after/indent/html.vim4
-rw-r--r--after/indent/jsx.vim4
-rw-r--r--after/jsx-config.vim4
-rw-r--r--after/syntax/c.vim4
-rw-r--r--after/syntax/coffee.vim4
-rw-r--r--after/syntax/cpp.vim4
-rw-r--r--after/syntax/css.vim4
-rw-r--r--after/syntax/haml.vim4
-rw-r--r--after/syntax/help.vim4
-rw-r--r--after/syntax/html.vim12
-rw-r--r--after/syntax/json.vim4
-rw-r--r--after/syntax/jsx.vim4
-rw-r--r--after/syntax/less.vim4
-rw-r--r--after/syntax/lua.vim4
-rw-r--r--after/syntax/moon.vim4
-rw-r--r--after/syntax/rspec.vim4
-rw-r--r--after/syntax/ruby.vim4
-rw-r--r--after/syntax/rust.vim4
-rw-r--r--after/syntax/sass.vim4
-rw-r--r--after/syntax/scss.vim4
-rw-r--r--after/syntax/stylus.vim4
-rw-r--r--after/syntax/tex.vim4
-rw-r--r--after/syntax/vim.vim4
-rw-r--r--after/syntax/yaml.vim4
-rw-r--r--autoload/clojurecomplete.vim4
-rw-r--r--autoload/coffee.vim4
-rw-r--r--autoload/css_color.vim4
-rw-r--r--autoload/htmlcomplete.vim4
-rw-r--r--autoload/rubycomplete.vim4
-rw-r--r--autoload/rust.vim4
-rw-r--r--autoload/xml/aria.vim4
-rw-r--r--autoload/xml/html5.vim4
-rw-r--r--compiler/cake.vim4
-rw-r--r--compiler/cargo.vim4
-rw-r--r--compiler/coffee.vim4
-rw-r--r--compiler/cucumber.vim4
-rw-r--r--compiler/eruby.vim4
-rw-r--r--compiler/exunit.vim4
-rw-r--r--compiler/haml.vim4
-rw-r--r--compiler/rake.vim4
-rw-r--r--compiler/rspec.vim4
-rw-r--r--compiler/ruby.vim4
-rw-r--r--compiler/rubyunit.vim4
-rw-r--r--compiler/rustc.vim4
-rw-r--r--compiler/sass.vim4
-rw-r--r--compiler/sbt.vim4
-rw-r--r--compiler/typescript.vim4
-rw-r--r--ftdetect/polyglot.vim150
-rw-r--r--ftplugin/clojure.vim4
-rw-r--r--ftplugin/coffee.vim4
-rw-r--r--ftplugin/cucumber.vim4
-rw-r--r--ftplugin/eelixir.vim4
-rw-r--r--ftplugin/elixir.vim4
-rw-r--r--ftplugin/ember-script.vim4
-rw-r--r--ftplugin/emblem.vim4
-rw-r--r--ftplugin/eruby.vim4
-rw-r--r--ftplugin/git.vim4
-rw-r--r--ftplugin/gitcommit.vim4
-rw-r--r--ftplugin/gitconfig.vim4
-rw-r--r--ftplugin/gitrebase.vim4
-rw-r--r--ftplugin/gitsendemail.vim4
-rw-r--r--ftplugin/haml.vim4
-rw-r--r--ftplugin/html.vim4
-rw-r--r--ftplugin/jade.vim4
-rw-r--r--ftplugin/latex-box/common.vim4
-rw-r--r--ftplugin/latex-box/complete.vim4
-rw-r--r--ftplugin/latex-box/findmain.vim4
-rw-r--r--ftplugin/latex-box/folding.vim4
-rw-r--r--ftplugin/latex-box/latexmk.vim4
-rw-r--r--ftplugin/latex-box/mappings.vim4
-rw-r--r--ftplugin/latex-box/motion.vim4
-rw-r--r--ftplugin/latextoc.vim4
-rw-r--r--ftplugin/less.vim4
-rw-r--r--ftplugin/liquid.vim4
-rw-r--r--ftplugin/markdown.vim4
-rw-r--r--ftplugin/mustache.vim4
-rw-r--r--ftplugin/ocaml.vim4
-rw-r--r--ftplugin/opencl.vim4
-rw-r--r--ftplugin/perl.vim4
-rw-r--r--ftplugin/perl6.vim4
-rw-r--r--ftplugin/ps1.vim4
-rw-r--r--ftplugin/ps1xml.vim4
-rw-r--r--ftplugin/puppet.vim4
-rw-r--r--ftplugin/r.vim4
-rw-r--r--ftplugin/rhelp.vim4
-rw-r--r--ftplugin/rnoweb.vim4
-rw-r--r--ftplugin/ruby.vim4
-rw-r--r--ftplugin/rust.vim4
-rw-r--r--ftplugin/sass.vim4
-rw-r--r--ftplugin/scala.vim4
-rw-r--r--ftplugin/scala.xpt.vim4
-rw-r--r--ftplugin/scala/tagbar.vim4
-rw-r--r--ftplugin/scss.vim4
-rw-r--r--ftplugin/stylus.vim4
-rw-r--r--ftplugin/tex_LatexBox.vim4
-rw-r--r--ftplugin/textile.vim4
-rw-r--r--ftplugin/toml.vim4
-rw-r--r--ftplugin/tt2html.vim4
-rw-r--r--ftplugin/twig.vim4
-rw-r--r--ftplugin/typescript.vim4
-rw-r--r--ftplugin/xs.vim4
-rw-r--r--indent/arduino.vim4
-rw-r--r--indent/blade.vim4
-rw-r--r--indent/clojure.vim4
-rw-r--r--indent/coffee.vim4
-rw-r--r--indent/cucumber.vim4
-rw-r--r--indent/eelixir.vim4
-rw-r--r--indent/elixir.vim4
-rw-r--r--indent/ember-script.vim4
-rw-r--r--indent/emblem.vim4
-rw-r--r--indent/erlang.vim4
-rw-r--r--indent/eruby.vim4
-rw-r--r--indent/gitconfig.vim4
-rw-r--r--indent/go.vim4
-rw-r--r--indent/gohtmltmpl.vim4
-rw-r--r--indent/haml.vim4
-rw-r--r--indent/haskell.vim4
-rw-r--r--indent/html.vim4
-rw-r--r--indent/jade.vim4
-rw-r--r--indent/javascript.vim4
-rw-r--r--indent/json.vim4
-rw-r--r--indent/jst.vim4
-rw-r--r--indent/julia.vim4
-rw-r--r--indent/less.vim5
-rw-r--r--indent/liquid.vim4
-rw-r--r--indent/ocaml.vim4
-rw-r--r--indent/opencl.vim4
-rw-r--r--indent/perl.vim4
-rw-r--r--indent/perl6.vim4
-rw-r--r--indent/ps1.vim4
-rw-r--r--indent/puppet.vim4
-rw-r--r--indent/python.vim4
-rw-r--r--indent/ruby.vim4
-rw-r--r--indent/rust.vim4
-rw-r--r--indent/sass.vim4
-rw-r--r--indent/scala.vim4
-rw-r--r--indent/scss.vim4
-rw-r--r--indent/slim.vim4
-rw-r--r--indent/solidity.vim4
-rw-r--r--indent/stylus.vim4
-rw-r--r--indent/swift.vim4
-rw-r--r--indent/tex.vim4
-rw-r--r--indent/typescript.vim4
-rw-r--r--indent/vala.vim4
-rw-r--r--indent/velocity.vim4
-rw-r--r--syntax/arduino.vim4
-rw-r--r--syntax/blade.vim4
-rw-r--r--syntax/c.vim4
-rw-r--r--syntax/cabal.vim4
-rw-r--r--syntax/clojure.vim4
-rw-r--r--syntax/coffee.vim4
-rw-r--r--syntax/cpp.vim4
-rw-r--r--syntax/css.vim4
-rw-r--r--syntax/cucumber.vim4
-rw-r--r--syntax/dockerfile.vim4
-rw-r--r--syntax/eelixir.vim4
-rw-r--r--syntax/elixir.vim4
-rw-r--r--syntax/ember-script.vim4
-rw-r--r--syntax/emblem.vim4
-rw-r--r--syntax/erlang.vim4
-rw-r--r--syntax/eruby.vim4
-rw-r--r--syntax/git.vim4
-rw-r--r--syntax/gitcommit.vim4
-rw-r--r--syntax/gitconfig.vim4
-rw-r--r--syntax/gitrebase.vim4
-rw-r--r--syntax/gitsendemail.vim4
-rw-r--r--syntax/go.vim4
-rw-r--r--syntax/godoc.vim4
-rw-r--r--syntax/gohtmltmpl.vim4
-rw-r--r--syntax/gotexttmpl.vim4
-rw-r--r--syntax/haml.vim4
-rw-r--r--syntax/haskell.vim4
-rw-r--r--syntax/haxe.vim4
-rw-r--r--syntax/html.vim4
-rw-r--r--syntax/html/aria.vim4
-rw-r--r--syntax/html/rdfa.vim4
-rw-r--r--syntax/jade.vim4
-rw-r--r--syntax/jasmine.vim4
-rw-r--r--syntax/javascript.vim4
-rw-r--r--syntax/javascript/html5.vim4
-rw-r--r--syntax/json.vim4
-rw-r--r--syntax/jst.vim4
-rw-r--r--syntax/julia.vim4
-rw-r--r--syntax/latextoc.vim4
-rw-r--r--syntax/less.vim4
-rw-r--r--syntax/liquid.vim4
-rw-r--r--syntax/markdown.vim4
-rw-r--r--syntax/mason.vim4
-rw-r--r--syntax/mustache.vim4
-rw-r--r--syntax/nginx.vim4
-rw-r--r--syntax/ocaml.vim4
-rw-r--r--syntax/octave.vim4
-rw-r--r--syntax/opencl.vim4
-rw-r--r--syntax/perl.vim4
-rw-r--r--syntax/perl6.vim4
-rw-r--r--syntax/php.vim4
-rw-r--r--syntax/pod.vim4
-rw-r--r--syntax/proto.vim4
-rw-r--r--syntax/ps1.vim4
-rw-r--r--syntax/ps1xml.vim4
-rw-r--r--syntax/puppet.vim4
-rw-r--r--syntax/python.vim4
-rw-r--r--syntax/ragel.vim4
-rw-r--r--syntax/rhelp.vim4
-rw-r--r--syntax/rnoweb.vim4
-rw-r--r--syntax/ruby.vim4
-rw-r--r--syntax/rust.vim4
-rw-r--r--syntax/sass.vim4
-rw-r--r--syntax/sbt.vim4
-rw-r--r--syntax/scala.vim4
-rw-r--r--syntax/scss.vim4
-rw-r--r--syntax/slim.vim4
-rw-r--r--syntax/solidity.vim4
-rw-r--r--syntax/stylus.vim4
-rw-r--r--syntax/swift.vim4
-rw-r--r--syntax/systemd.vim4
-rw-r--r--syntax/tap.vim4
-rw-r--r--syntax/textile.vim4
-rw-r--r--syntax/thrift.vim4
-rw-r--r--syntax/tmux.vim4
-rw-r--r--syntax/tomdoc.vim4
-rw-r--r--syntax/toml.vim4
-rw-r--r--syntax/tt2.vim4
-rw-r--r--syntax/tt2html.vim4
-rw-r--r--syntax/tt2js.vim4
-rw-r--r--syntax/twig.vim4
-rw-r--r--syntax/typescript.vim4
-rw-r--r--syntax/vala.vim4
-rw-r--r--syntax/vbnet.vim4
-rw-r--r--syntax/velocity.vim4
-rw-r--r--syntax/vimgo.vim4
-rw-r--r--syntax/xs.vim4
-rw-r--r--syntax/xsl.vim4
239 files changed, 1110 insertions, 1 deletions
diff --git a/after/ftdetect/javascript.vim b/after/ftdetect/javascript.vim
index 900fce11..a0de1b1f 100644
--- a/after/ftdetect/javascript.vim
+++ b/after/ftdetect/javascript.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jsx') == -1
+
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vim ftdetect file
"
@@ -18,3 +20,5 @@ autocmd BufNewFile,BufRead *.jsx let b:jsx_ext_found = 1
autocmd BufNewFile,BufRead *.jsx set filetype=javascript.jsx
autocmd BufNewFile,BufRead *.js
\ if <SID>EnableJSX() | set filetype=javascript.jsx | endif
+
+endif
diff --git a/after/ftdetect/rspec.vim b/after/ftdetect/rspec.vim
index ce43f581..d4a0a5cc 100644
--- a/after/ftdetect/rspec.vim
+++ b/after/ftdetect/rspec.vim
@@ -1,2 +1,6 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rspec') == -1
+
autocmd BufReadPost,BufNewFile *_spec.rb set syntax=rspec
autocmd BufReadPost,BufNewFile *_spec.rb setlocal commentstring=#\ %s
+
+endif
diff --git a/after/ftplugin/coffee.vim b/after/ftplugin/coffee.vim
index 104948d1..9c8f5843 100644
--- a/after/ftplugin/coffee.vim
+++ b/after/ftplugin/coffee.vim
@@ -1,5 +1,9 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cjsx') == -1
+
if exists("loaded_matchit")
let b:match_ignorecase = 0
let b:match_words = '(:),\[:\],{:},<:>,' .
\ '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>'
endif
+
+endif
diff --git a/after/ftplugin/haskell.vim b/after/ftplugin/haskell.vim
index 536e84bb..4b315458 100644
--- a/after/ftplugin/haskell.vim
+++ b/after/ftplugin/haskell.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1
+
" Vim ftplugin file
" Language: Haskell
" Maintainer: Tristan Ravitch
@@ -7,3 +9,5 @@
" hate the leading '-'s it puts in on each line). Disable it here.
setlocal comments&
setlocal comments=:--
+
+endif
diff --git a/after/ftplugin/jsx.vim b/after/ftplugin/jsx.vim
index ee642090..76b0a327 100644
--- a/after/ftplugin/jsx.vim
+++ b/after/ftplugin/jsx.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jsx') == -1
+
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vim ftplugin file
"
@@ -15,3 +17,5 @@ if exists("loaded_matchit")
endif
setlocal suffixesadd+=.jsx
+
+endif
diff --git a/after/ftplugin/puppet.vim b/after/ftplugin/puppet.vim
index f976a457..574fee25 100644
--- a/after/ftplugin/puppet.vim
+++ b/after/ftplugin/puppet.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
+
if !exists('g:puppet_align_hashes')
let g:puppet_align_hashes = 1
endif
@@ -14,3 +16,5 @@ if g:puppet_align_hashes && exists(':Tabularize')
call search(repeat('\([^=]\|=[^>]\)*=>',column).'\s\{-\}'.repeat('.',position),'ce',line('.'))
endfunction
endif
+
+endif
diff --git a/after/indent/html.vim b/after/indent/html.vim
index 2fa86371..a7113514 100644
--- a/after/indent/html.vim
+++ b/after/indent/html.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1
+
" Language: CoffeeScript
" Maintainer: Mick Koch <mick@kochm.co>
" URL: http://github.com/kchmck/vim-coffee-script
@@ -31,3 +33,5 @@ function! GetCoffeeHtmlIndent(curlinenum)
" Otherwise use html indenting.
exec 'return ' s:htmlIndentExpr
endfunction
+
+endif
diff --git a/after/indent/jsx.vim b/after/indent/jsx.vim
index d0b4d4ef..d33c13dd 100644
--- a/after/indent/jsx.vim
+++ b/after/indent/jsx.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jsx') == -1
+
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vim indent file
"
@@ -96,3 +98,5 @@ fu! GetJsxIndent()
return ind
endfu
+
+endif
diff --git a/after/jsx-config.vim b/after/jsx-config.vim
index a1d4cbe0..0303fb0c 100644
--- a/after/jsx-config.vim
+++ b/after/jsx-config.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jsx') == -1
+
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vimscript file
"
@@ -31,3 +33,5 @@ if !g:jsx_pragma_required | finish | endif
" anything else in the file (except whitespace).
let s:jsx_pragma_pattern = '\%^\_s*\/\*\*\%(\_.\%(\*\/\)\@!\)*@jsx\_.\{-}\*\/'
let b:jsx_pragma_found = search(s:jsx_pragma_pattern, 'npw')
+
+endif
diff --git a/after/syntax/c.vim b/after/syntax/c.vim
index 0805d666..aa4a31ec 100644
--- a/after/syntax/c.vim
+++ b/after/syntax/c.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'c++11') == -1
+
" Vim syntax file
" Language: C Additions
" Maintainer: Jon Haggblad <jon@haeggblad.com>
@@ -290,3 +292,5 @@ hi def link cBoolean Boolean
"hi def link cDelimiter Delimiter
" foldmethod=syntax fix, courtesy of Ivan Freitas
"hi def link cBraces Delimiter
+
+endif
diff --git a/after/syntax/coffee.vim b/after/syntax/coffee.vim
index 64e0dc4f..b77c12bb 100644
--- a/after/syntax/coffee.vim
+++ b/after/syntax/coffee.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cjsx') == -1
+
if exists('b:current_syntax')
let s:current_syntax=b:current_syntax
unlet b:current_syntax
@@ -25,3 +27,5 @@ hi def link cjsxTagName Function
hi def link cjsxEntity Statement
hi def link cjsxEntityPunct Type
hi def link cjsxAttribProperty Type
+
+endif
diff --git a/after/syntax/cpp.vim b/after/syntax/cpp.vim
index 5a0c2183..6eb3cfad 100644
--- a/after/syntax/cpp.vim
+++ b/after/syntax/cpp.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'c++11') == -1
+
" Vim syntax file
" Language: C++ Additions
" Maintainer: Jon Haggblad <jon@haeggblad.com>
@@ -1364,3 +1366,5 @@ if version >= 508 || !exists("did_cpp_syntax_inits")
HiLink cppRawDelimiter Delimiter
delcommand HiLink
endif
+
+endif
diff --git a/after/syntax/css.vim b/after/syntax/css.vim
index ffb3e43d..afe9da60 100644
--- a/after/syntax/css.vim
+++ b/after/syntax/css.vim
@@ -1,6 +1,10 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'css-color') == -1
+
" Language: Colorful CSS Color Preview
" Author: Aristotle Pagaltzis <pagaltzis@gmx.de>
if !( has('gui_running') || &t_Co==256 ) | finish | endif
call css_color#init('css', 'extended', 'cssMediaBlock,cssFunction,cssDefinition,cssAttrRegion,cssComment')
+
+endif
diff --git a/after/syntax/haml.vim b/after/syntax/haml.vim
index 4c517ebb..5333de69 100644
--- a/after/syntax/haml.vim
+++ b/after/syntax/haml.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1
+
" Language: CoffeeScript
" Maintainer: Sven Felix Oberquelle <Svelix.Github@gmail.com>
" URL: http://github.com/kchmck/vim-coffee-script
@@ -11,3 +13,5 @@ syn region hamlCoffeescriptFilter matchgroup=hamlFilter
\ end="^\%(\z1 \| *$\)\@!"
\ contains=@hamlCoffeeScript,hamlInterpolation
\ keepend
+
+endif
diff --git a/after/syntax/help.vim b/after/syntax/help.vim
index e3232128..58b79943 100644
--- a/after/syntax/help.vim
+++ b/after/syntax/help.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1
+
" Extends standard help syntax with highlighting of Scala code.
"
" Place code between !sc! and !/sc! delimiters. These will be hidden if Vim is
@@ -12,3 +14,5 @@ if has('conceal')
else
syntax region rgnScala matchgroup=Ignore start='!sc!' end='!/sc!' contains=@ScalaCode
endif
+
+endif
diff --git a/after/syntax/html.vim b/after/syntax/html.vim
index b9dc9f98..7ea622c6 100644
--- a/after/syntax/html.vim
+++ b/after/syntax/html.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1
+
" Language: CoffeeScript
" Maintainer: Mick Koch <mick@kochm.co>
" URL: http://github.com/kchmck/vim-coffee-script
@@ -9,6 +11,10 @@ syn region coffeeScript start=#<script [^>]*type="text/coffeescript"[^>]*>#
\ end=#</script>#me=s-1 keepend
\ contains=@htmlCoffeeScript,htmlScriptTag,@htmlPreproc
\ containedin=htmlHead
+
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'less') == -1
+
if !exists("g:less_html_style_tags")
let g:less_html_style_tags = 1
endif
@@ -35,6 +41,10 @@ syn region lessStyle start=+<style [^>]*type *=[^>]*text/less[^>]*>+ keepend end
if exists("s:pre_less_cur_syn")
let b:current_syntax = s:pre_less_cur_syn
endif
+
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'css-color') == -1
+
" Language: Colorful CSS Color Preview
" Author: Aristotle Pagaltzis <pagaltzis@gmx.de>
@@ -42,3 +52,5 @@ if !( has('gui_running') || &t_Co==256 ) | finish | endif
" default html syntax should already be including the css syntax
syn cluster colorableGroup add=htmlString,htmlCommentPart
+
+endif
diff --git a/after/syntax/json.vim b/after/syntax/json.vim
index dfca138e..ef6f55e4 100644
--- a/after/syntax/json.vim
+++ b/after/syntax/json.vim
@@ -1,6 +1,10 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'css-color') == -1
+
" Language: Colorful CSS Color Preview
" Author: Aristotle Pagaltzis <pagaltzis@gmx.de>
if !( has('gui_running') || &t_Co==256 ) | finish | endif
call css_color#init('css', 'none', 'jsonString')
+
+endif
diff --git a/after/syntax/jsx.vim b/after/syntax/jsx.vim
index 63a1248f..ff3c907e 100644
--- a/after/syntax/jsx.vim
+++ b/after/syntax/jsx.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jsx') == -1
+
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vim syntax file
"
@@ -41,3 +43,5 @@ syn region xmlString contained start=+{+ end=++ contains=jsBlock,javascriptBlock
" Add jsxRegion to the lowest-level JS syntax cluster.
syn cluster jsExpression add=jsxRegion
+
+endif
diff --git a/after/syntax/less.vim b/after/syntax/less.vim
index e6381a76..bb7bb56a 100644
--- a/after/syntax/less.vim
+++ b/after/syntax/less.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'css-color') == -1
+
" Language: Colorful CSS Color Preview
" Author: Aristotle Pagaltzis <pagaltzis@gmx.de>
@@ -11,3 +13,5 @@ if !( has('gui_running') || &t_Co==256 ) | finish | endif
" lessVariableDefinition | cssDefinition | cssComment | lessComment | https://github.com/lunaru/vim-less
call css_color#init('css', 'extended', 'lessVariableValue,lessVariableDefinition,lessDefinition,lessCssAttribute,lessAttribute,cssDefinition,cssComment,lessCssComment,lessComment')
+
+endif
diff --git a/after/syntax/lua.vim b/after/syntax/lua.vim
index 481c996c..5bdb2aaa 100644
--- a/after/syntax/lua.vim
+++ b/after/syntax/lua.vim
@@ -1,6 +1,10 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'css-color') == -1
+
" Language: Colorful CSS Color Preview
" Author: Aristotle Pagaltzis <pagaltzis@gmx.de>
if !( has('gui_running') || &t_Co==256 ) | finish | endif
call css_color#init('hex', 'extended', 'luaComment,luaString')
+
+endif
diff --git a/after/syntax/moon.vim b/after/syntax/moon.vim
index c200e64b..ae35c895 100644
--- a/after/syntax/moon.vim
+++ b/after/syntax/moon.vim
@@ -1,6 +1,10 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'css-color') == -1
+
" Language: Colorful CSS Color Preview
" Author: Aristotle Pagaltzis <pagaltzis@gmx.de>
if !( has('gui_running') || &t_Co==256 ) | finish | endif
call css_color#init('hex', 'extended', 'moonComment,moonString')
+
+endif
diff --git a/after/syntax/rspec.vim b/after/syntax/rspec.vim
index 390f6d10..518097e2 100644
--- a/after/syntax/rspec.vim
+++ b/after/syntax/rspec.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rspec') == -1
+
"
" An rspec syntax file
" Originally from http://www.vim.org/scripts/script.php?script_id=2286
@@ -30,3 +32,5 @@ syntax keyword rspecMessageExpectation advise any_args any_number_of_times anyth
highlight link rspecMessageExpectation Function
let b:current_syntax = 'rspec'
+
+endif
diff --git a/after/syntax/ruby.vim b/after/syntax/ruby.vim
index 781e614a..0bfa2570 100644
--- a/after/syntax/ruby.vim
+++ b/after/syntax/ruby.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'yard') == -1
+
" Ruby syntax extensions for highlighting YARD documentation.
"
" Author: Joel Holdbrooks <https://github.com/noprompt>
@@ -124,3 +126,5 @@ hi def link yardParametricType yardComment
hi def link yardArrow yardComment
hi def link yardHashAngle yardComment
hi def link yardHashCurly yardComment
+
+endif
diff --git a/after/syntax/rust.vim b/after/syntax/rust.vim
index 735c1e15..5748c4df 100644
--- a/after/syntax/rust.vim
+++ b/after/syntax/rust.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
+
if !exists('g:rust_conceal') || !has('conceal') || &enc != 'utf-8'
finish
endif
@@ -29,3 +31,5 @@ hi link rustNiceOperator Operator
if !exists('g:rust_conceal_mod_path')
hi! link Conceal Operator
endif
+
+endif
diff --git a/after/syntax/sass.vim b/after/syntax/sass.vim
index ce73d75a..fcaa888c 100644
--- a/after/syntax/sass.vim
+++ b/after/syntax/sass.vim
@@ -1,6 +1,10 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'css-color') == -1
+
" Language: Colorful CSS Color Preview
" Author: Aristotle Pagaltzis <pagaltzis@gmx.de>
if !( has('gui_running') || &t_Co==256 ) | finish | endif
call css_color#init('css', 'extended', 'sassCssAttribute,sassComment,sassCssComment')
+
+endif
diff --git a/after/syntax/scss.vim b/after/syntax/scss.vim
index 15fcac7e..26095a4a 100644
--- a/after/syntax/scss.vim
+++ b/after/syntax/scss.vim
@@ -1,6 +1,10 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'css-color') == -1
+
" Language: Colorful CSS Color Preview
" Author: Aristotle Pagaltzis <pagaltzis@gmx.de>
if !( has('gui_running') || &t_Co==256 ) | finish | endif
call css_color#init('css', 'extended', 'scssAttribute,scssComment,scssVariableValue,sassCssAttribute,cssComment')
+
+endif
diff --git a/after/syntax/stylus.vim b/after/syntax/stylus.vim
index eadc95ff..98fb1eed 100644
--- a/after/syntax/stylus.vim
+++ b/after/syntax/stylus.vim
@@ -1,6 +1,10 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'css-color') == -1
+
" Language: Colorful CSS Color Preview
" Author: Aristotle Pagaltzis <pagaltzis@gmx.de>
if !( has('gui_running') || &t_Co==256 ) | finish | endif
call css_color#init('css', 'extended', 'stylusCssAttribute,stylusComment,cssComment')
+
+endif
diff --git a/after/syntax/tex.vim b/after/syntax/tex.vim
index 9f4d761f..f066fbe8 100644
--- a/after/syntax/tex.vim
+++ b/after/syntax/tex.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
+
" adds support for cleverref package
" \Cref, \cref, \cpageref, \labelcref, \labelcpageref
syn region texRefZone matchgroup=texStatement start="\\Cref{" end="}\|%stopzone\>" contains=@texRefGroup
@@ -7,3 +9,5 @@ syn region texRefZone matchgroup=texStatement start="\\\(label\|\)c\(page\|\)re
syn region texZone start="\\begin{lstlisting}" end="\\end{lstlisting}\|%stopzone\>"
syn match texInputFile "\\lstinputlisting\s*\(\[.*\]\)\={.\{-}}" contains=texStatement,texInputCurlies,texInputFileOpt
syn match texZone "\\lstinline\s*\(\[.*\]\)\={.\{-}}"
+
+endif
diff --git a/after/syntax/vim.vim b/after/syntax/vim.vim
index 53023d45..1a0cf823 100644
--- a/after/syntax/vim.vim
+++ b/after/syntax/vim.vim
@@ -1,6 +1,10 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'css-color') == -1
+
" Language: Colorful CSS Color Preview
" Author: Aristotle Pagaltzis <pagaltzis@gmx.de>
if !( has('gui_running') || &t_Co==256 ) | finish | endif
call css_color#init('hex', 'none', 'vimHiGuiRgb,vimComment,vimLineComment')
+
+endif
diff --git a/after/syntax/yaml.vim b/after/syntax/yaml.vim
index 62f83a8e..89850571 100644
--- a/after/syntax/yaml.vim
+++ b/after/syntax/yaml.vim
@@ -1,6 +1,10 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'css-color') == -1
+
" Language: Colorful CSS Color Preview
" Author: Aristotle Pagaltzis <pagaltzis@gmx.de>
if !( has('gui_running') || &t_Co==256 ) | finish | endif
call css_color#init('hex', 'extended', 'yamlComment,yamlFlowString,yamlPlainScalar')
+
+endif
diff --git a/autoload/clojurecomplete.vim b/autoload/clojurecomplete.vim
index 1bc70473..bec3ed24 100644
--- a/autoload/clojurecomplete.vim
+++ b/autoload/clojurecomplete.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'clojure') == -1
+
" Vim completion script
" Language: Clojure
" Maintainer: Sung Pae <self@sungpae.com>
@@ -20,3 +22,5 @@ function! clojurecomplete#Complete(findstart, base)
endfunction
" vim:sts=8:sw=8:ts=8:noet
+
+endif
diff --git a/autoload/coffee.vim b/autoload/coffee.vim
index 8d727951..ba5e7ff8 100644
--- a/autoload/coffee.vim
+++ b/autoload/coffee.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1
+
" Language: CoffeeScript
" Maintainer: Mick Koch <mick@kochm.co>
" URL: http://github.com/kchmck/vim-coffee-script
@@ -52,3 +54,5 @@ function! coffee#CoffeeSetUpErrorFormat()
\%f:%l:%c:\ error:\ %m,
\%-G%.%#
endfunction
+
+endif
diff --git a/autoload/css_color.vim b/autoload/css_color.vim
index cc0f1f60..5334a423 100644
--- a/autoload/css_color.vim
+++ b/autoload/css_color.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'css-color') == -1
+
" Language: Colorful CSS Color Preview
" Author: Aristotle Pagaltzis <pagaltzis@gmx.de>
" Commit: $Format:%H$
@@ -570,3 +572,5 @@ function! css_color#init(type, keywords, groups)
syn keyword BGf5f5f5 WhiteSmoke contained containedin=@colorableGroup
syn keyword BG9acd32 YellowGreen contained containedin=@colorableGroup
endfunction
+
+endif
diff --git a/autoload/htmlcomplete.vim b/autoload/htmlcomplete.vim
index 68a80384..f58793a2 100644
--- a/autoload/htmlcomplete.vim
+++ b/autoload/htmlcomplete.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
+
" Vim completion script
" Language: HTML and XHTML
" Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
@@ -837,3 +839,5 @@ function! htmlcomplete#CheckDoctype() " {{{
endfunction
" }}}
" vim:set foldmethod=marker:
+
+endif
diff --git a/autoload/rubycomplete.vim b/autoload/rubycomplete.vim
index 440dfd42..9dd5d8c4 100644
--- a/autoload/rubycomplete.vim
+++ b/autoload/rubycomplete.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
+
" Vim completion script
" Language: Ruby
" Maintainer: Mark Guzman <segfault@hasno.info>
@@ -831,3 +833,5 @@ call s:DefRuby()
" vim:tw=78:sw=4:ts=8:et:fdm=marker:ft=vim:norl:
+
+endif
diff --git a/autoload/rust.vim b/autoload/rust.vim
index fe8e743e..e6f7b053 100644
--- a/autoload/rust.vim
+++ b/autoload/rust.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
+
" Author: Kevin Ballard
" Description: Helper functions for Rust commands/mappings
" Last Modified: May 27, 2014
@@ -223,3 +225,5 @@ endfunction
" }}}1
" vim: set noet sw=4 ts=4:
+
+endif
diff --git a/autoload/xml/aria.vim b/autoload/xml/aria.vim
index 6ff0e3f2..4f9b1d7a 100644
--- a/autoload/xml/aria.vim
+++ b/autoload/xml/aria.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
+
" Vim completion for WAI-ARIA data file
" Language: HTML + WAI-ARIA
" Maintainer: othree <othree@gmail.com>
@@ -230,3 +232,5 @@ let g:xmldata_aria = {
\ 'default_role': default_role,
\ 'vimariaattrinfo': aria_attributes_value
\ }
+
+endif
diff --git a/autoload/xml/html5.vim b/autoload/xml/html5.vim
index 0d9a6a2c..2fad3521 100644
--- a/autoload/xml/html5.vim
+++ b/autoload/xml/html5.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
+
" Vim completion for HTML5 data file
" Language: HTML5
" Maintainer: othree <othree@gmail.com>
@@ -823,3 +825,5 @@ let g:xmldata_html5 = {
\ 'wbr': ['/>', ''],
\ },
\ }
+
+endif
diff --git a/compiler/cake.vim b/compiler/cake.vim
index b49638e7..5ec449d4 100644
--- a/compiler/cake.vim
+++ b/compiler/cake.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1
+
" Language: CoffeeScript
" Maintainer: Mick Koch <mick@kochm.co>
" URL: http://github.com/kchmck/vim-coffee-script
@@ -13,3 +15,5 @@ call coffee#CoffeeSetUpVariables()
exec 'CompilerSet makeprg=' . escape(g:coffee_cake . ' ' .
\ g:coffee_cake_options . ' $*', ' ')
call coffee#CoffeeSetUpErrorFormat()
+
+endif
diff --git a/compiler/cargo.vim b/compiler/cargo.vim
index ed487a30..fe627453 100644
--- a/compiler/cargo.vim
+++ b/compiler/cargo.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
+
" Vim compiler file
" Compiler: Cargo Compiler
" Maintainer: Damien Radtke <damienradtke@gmail.com>
@@ -63,3 +65,5 @@ if s:local_manifest != ''
call setqflist(qflist, 'r')
endfunction
endif
+
+endif
diff --git a/compiler/coffee.vim b/compiler/coffee.vim
index 5a914578..67f3db61 100644
--- a/compiler/coffee.vim
+++ b/compiler/coffee.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1
+
" Language: CoffeeScript
" Maintainer: Mick Koch <mick@kochm.co>
" URL: http://github.com/kchmck/vim-coffee-script
@@ -80,3 +82,5 @@ augroup CoffeeUpdateMakePrg
autocmd BufWritePre,BufFilePost call s:UpdateMakePrg()
endif
augroup END
+
+endif
diff --git a/compiler/cucumber.vim b/compiler/cucumber.vim
index e30a089f..f0587227 100644
--- a/compiler/cucumber.vim
+++ b/compiler/cucumber.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cucumber') == -1
+
" Vim compiler file
" Compiler: Cucumber
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -27,3 +29,5 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim:set sw=2 sts=2:
+
+endif
diff --git a/compiler/eruby.vim b/compiler/eruby.vim
index 45ad5eea..fd9a8e59 100644
--- a/compiler/eruby.vim
+++ b/compiler/eruby.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
+
" Vim compiler file
" Language: eRuby
" Maintainer: Doug Kearns <dougkearns@gmail.com>
@@ -37,3 +39,5 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: nowrap sw=2 sts=2 ts=8:
+
+endif
diff --git a/compiler/exunit.vim b/compiler/exunit.vim
index 2c9fb299..dfb0ea3c 100644
--- a/compiler/exunit.vim
+++ b/compiler/exunit.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
+
" Vim compiler file
" Language: ExUnit
" Maintainer: Rein Henrichs <rein.henrichs@gmail.com>
@@ -22,3 +24,5 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: nowrap sw=2 sts=2 ts=8:
+
+endif
diff --git a/compiler/haml.vim b/compiler/haml.vim
index cea77211..eee5af43 100644
--- a/compiler/haml.vim
+++ b/compiler/haml.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1
+
" Vim compiler file
" Compiler: Haml
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -26,3 +28,5 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim:set sw=2 sts=2:
+
+endif
diff --git a/compiler/rake.vim b/compiler/rake.vim
index 8490f2a9..3b130f1d 100644
--- a/compiler/rake.vim
+++ b/compiler/rake.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
+
" Vim compiler file
" Language: Rake
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -37,3 +39,5 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: nowrap sw=2 sts=2 ts=8:
+
+endif
diff --git a/compiler/rspec.vim b/compiler/rspec.vim
index 7c340bab..13a7a8fb 100644
--- a/compiler/rspec.vim
+++ b/compiler/rspec.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
+
" Vim compiler file
" Language: RSpec
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -31,3 +33,5 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: nowrap sw=2 sts=2 ts=8:
+
+endif
diff --git a/compiler/ruby.vim b/compiler/ruby.vim
index dcf7a401..81721285 100644
--- a/compiler/ruby.vim
+++ b/compiler/ruby.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
+
" Vim compiler file
" Language: Ruby
" Function: Syntax check and/or error reporting
@@ -43,3 +45,5 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: nowrap sw=2 sts=2 ts=8:
+
+endif
diff --git a/compiler/rubyunit.vim b/compiler/rubyunit.vim
index ed0639b5..9d1f27cc 100644
--- a/compiler/rubyunit.vim
+++ b/compiler/rubyunit.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
+
" Vim compiler file
" Language: Test::Unit - Ruby Unit Testing Framework
" Maintainer: Doug Kearns <dougkearns@gmail.com>
@@ -33,3 +35,5 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: nowrap sw=2 sts=2 ts=8:
+
+endif
diff --git a/compiler/rustc.vim b/compiler/rustc.vim
index f9b854ed..e0aebba0 100644
--- a/compiler/rustc.vim
+++ b/compiler/rustc.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
+
" Vim compiler file
" Compiler: Rust Compiler
" Maintainer: Chris Morgan <me@chrismorgan.info>
@@ -31,3 +33,5 @@ CompilerSet errorformat=
let &cpo = s:cpo_save
unlet s:cpo_save
+
+endif
diff --git a/compiler/sass.vim b/compiler/sass.vim
index e7265df5..85994ce1 100644
--- a/compiler/sass.vim
+++ b/compiler/sass.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1
+
" Vim compiler file
" Compiler: Sass
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -28,3 +30,5 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim:set sw=2 sts=2:
+
+endif
diff --git a/compiler/sbt.vim b/compiler/sbt.vim
index 4c621922..41504d79 100644
--- a/compiler/sbt.vim
+++ b/compiler/sbt.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1
+
" Vim compiler file
" Language: Scala SBT (http://www.scala-sbt.org/)
" Maintainer: Derek Wyatt
@@ -28,3 +30,5 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim:set sw=2 sts=2 ts=8 et:
+
+endif
diff --git a/compiler/typescript.vim b/compiler/typescript.vim
index 7833e005..57e1437a 100644
--- a/compiler/typescript.vim
+++ b/compiler/typescript.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
+
if exists("current_compiler")
finish
endif
@@ -14,3 +16,5 @@ endif
let &l:makeprg = g:typescript_compiler_binary . ' ' . g:typescript_compiler_options . ' $* %'
CompilerSet errorformat=%+A\ %#%f\ %#(%l\\\,%c):\ %m,%C%m
+
+endif
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 0cabe1f8..73860ae7 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -1,10 +1,24 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'arduino') == -1
+
au BufRead,BufNewFile *.ino,*.pde set filetype=arduino
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'blade') == -1
+
au BufNewFile,BufRead *.blade.php set filetype=blade
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cjsx') == -1
+
augroup CJSX
au!
autocmd BufNewFile,BufRead *.csx,*.cjsx set filetype=coffee
augroup END
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'clojure') == -1
+
autocmd BufNewFile,BufRead *.clj,*.cljs,*.edn,*.cljx,*.cljc setlocal filetype=clojure
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1
+
autocmd BufNewFile,BufRead *.coffee set filetype=coffee
autocmd BufNewFile,BufRead *Cakefile set filetype=coffee
autocmd BufNewFile,BufRead *.coffeekup,*.ck set filetype=coffee
@@ -15,10 +29,22 @@ function! s:DetectCoffee()
endif
endfunction
autocmd BufNewFile,BufRead * call s:DetectCoffee()
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cucumber') == -1
+
autocmd BufNewFile,BufReadPost *.feature,*.story set filetype=cucumber
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dockerfile') == -1
+
au BufNewFile,BufRead Dockerfile set filetype=dockerfile
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
+
au BufRead,BufNewFile *.eex set filetype=eelixir
au FileType eelixir setl sw=2 sts=2 et iskeyword+=!,?
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
+
au BufRead,BufNewFile *.ex,*.exs set filetype=elixir
au FileType elixir setl sw=2 sts=2 et iskeyword+=!,?
function! s:DetectElixir()
@@ -27,10 +53,19 @@ function! s:DetectElixir()
endif
endfunction
autocmd BufNewFile,BufRead * call s:DetectElixir()
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'emberscript') == -1
+
autocmd BufNewFile,BufRead *.em set filetype=ember-script
autocmd FileType ember-script set tabstop=2|set shiftwidth=2|set expandtab
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'emblem') == -1
+
autocmd BufNewFile,BufRead *.emblem set filetype=emblem
autocmd FileType emblem set tabstop=2|set shiftwidth=2|set expandtab
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
+
autocmd BufNewFile,BufRead *.git/{,modules/**/}{COMMIT_EDIT,TAG_EDIT,MERGE_,}MSG set ft=gitcommit
autocmd BufNewFile,BufRead *.git/config,.gitconfig,gitconfig,.gitmodules set ft=gitconfig
autocmd BufNewFile,BufRead */.config/git/config set ft=gitconfig
@@ -49,6 +84,9 @@ autocmd BufNewFile,BufRead *
\ if getline(1) =~ '^From \x\{40\} Mon Sep 17 00:00:00 2001$' |
\ set filetype=gitsendemail |
\ endif
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1
+
let s:current_fileformats = ''
let s:current_fileencodings = ''
function! s:gofiletype_pre()
@@ -65,12 +103,27 @@ au BufNewFile *.go setlocal filetype=go fileencoding=utf-8 fileformat=unix
au BufRead *.go call s:gofiletype_pre()
au BufReadPost *.go call s:gofiletype_post()
au BufRead,BufNewFile *.tmpl set filetype=gohtmltmpl
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1
+
autocmd BufNewFile,BufRead *.haml,*.hamlbars,*.hamlc setf haml
autocmd BufNewFile,BufRead *.sass setf sass
autocmd BufNewFile,BufRead *.scss setf scss
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haxe') == -1
+
autocmd BufNewFile,BufRead *.hx setf haxe
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jade') == -1
+
autocmd BufNewFile,BufReadPost *.jade set filetype=jade
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jasmine') == -1
+
autocmd BufNewFile,BufRead *Spec.js,*_spec.js set filetype=jasmine.javascript syntax=jasmine
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1
+
au BufNewFile,BufRead *.js setf javascript
au BufNewFile,BufRead *.jsm setf javascript
au BufNewFile,BufRead Jakefile setf javascript
@@ -80,16 +133,31 @@ fun! s:SelectJavascript()
endif
endfun
au BufNewFile,BufRead * call s:SelectJavascript()
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'json') == -1
+
autocmd BufNewFile,BufRead *.json set filetype=json
autocmd BufNewFile,BufRead *.jsonp set filetype=json
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jst') == -1
+
au BufNewFile,BufRead *.ejs set filetype=jst
au BufNewFile,BufRead *.jst set filetype=jst
au BufNewFile,BufRead *.djs set filetype=jst
au BufNewFile,BufRead *.hamljs set filetype=jst
au BufNewFile,BufRead *.ect set filetype=jst
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1
+
au BufRead,BufNewFile *.jl let b:undo_ftplugin = "setlocal comments< define< formatoptions< iskeyword< lisp<"
au BufRead,BufNewFile *.jl set filetype=julia
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'less') == -1
+
autocmd BufNewFile,BufRead *.less setf less
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'liquid') == -1
+
au BufNewFile,BufRead *.liquid set ft=liquid
au BufNewFile,BufRead */_layouts/*.html,*/_includes/*.html set ft=liquid
au BufNewFile,BufRead *.html,*.xml,*.textile
@@ -102,22 +170,40 @@ au BufNewFile,BufRead *.markdown,*.mkd,*.mkdn,*.md
au BufNewFile,BufRead */templates/**.liquid,*/layout/**.liquid,*/snippets/**.liquid
\ let b:liquid_subtype = 'html' |
\ set ft=liquid |
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'markdown') == -1
+
autocmd BufNewFile,BufRead *.markdown,*.md,*.mdown,*.mkd,*.mkdn
\ if &ft =~# '^\%(conf\|modula2\)$' |
\ set ft=markdown |
\ else |
\ setf markdown |
\ endif
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
autocmd BufRead *.html
\ if getline(1) =~ '^\(%\|<[%&].*>\)' |
\ set filetype=mason |
\ endif
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'handlebars') == -1
+
if has("autocmd")
au BufNewFile,BufRead *.mustache,*.hogan,*.hulk,*.hjs set filetype=html.mustache syntax=mustache | runtime! ftplugin/mustache.vim ftplugin/mustache*.vim ftplugin/mustache/*.vim
au BufNewFile,BufRead *.handlebars,*.hbs set filetype=html.handlebars syntax=mustache | runtime! ftplugin/mustache.vim ftplugin/mustache*.vim ftplugin/mustache/*.vim
endif
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nginx') == -1
+
au BufRead,BufNewFile /etc/nginx/*,/usr/local/nginx/*,*/nginx/vhosts.d/*,nginx.conf if &ft == '' | setfiletype nginx | endif
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'opencl') == -1
+
au BufRead,BufNewFile *.cl set filetype=opencl
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
function! s:DetectPerl6()
let line_no = 1
let eof = line('$')
@@ -146,13 +232,28 @@ function! s:DetectPerl6()
endfunction
autocmd BufReadPost *.pl,*.pm,*.t call s:DetectPerl6()
autocmd BufNew,BufNewFile,BufRead *.nqp setf perl6
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'protobuf') == -1
+
autocmd BufNewFile,BufRead *.proto setfiletype proto
+endif
+if !exists('g:polyglot_disabled') || 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
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'powershell') == -1
+
au BufNewFile,BufRead *.ps1xml set ft=ps1xml
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
+
au! BufRead,BufNewFile *.pp setfiletype puppet
au! BufRead,BufNewFile Puppetfile setfiletype ruby
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
+
function! s:setf(filetype) abort
if &filetype !=# a:filetype
let &filetype = a:filetype
@@ -180,8 +281,17 @@ au BufNewFile,BufRead Puppetfile call s:setf('ruby')
au BufNewFile,BufRead [Bb]uildfile call s:setf('ruby')
au BufNewFile,BufRead Appraisals call s:setf('ruby')
au BufNewFile,BufRead Podfile,*.podspec call s:setf('ruby')
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
+
au BufRead,BufNewFile *.rs set filetype=rust
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'sbt') == -1
+
au BufRead,BufNewFile *.sbt set filetype=sbt.scala
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1
+
fun! s:DetectScala()
if getline(1) =~# '^#!\(/usr\)\?/bin/env\s\+scalas\?'
set filetype=scala
@@ -190,11 +300,26 @@ endfun
au BufRead,BufNewFile *.scala set filetype=scala
au BufRead,BufNewFile * call s:DetectScala()
au BufRead,BufNewFile *.sbt setfiletype sbt.scala
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'slim') == -1
+
autocmd BufNewFile,BufRead *.slim set filetype=slim
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'solidity') == -1
+
au BufNewFile,BufRead *.sol setf solidity
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'stylus') == -1
+
autocmd BufNewFile,BufReadPost *.styl set filetype=stylus
autocmd BufNewFile,BufReadPost *.stylus set filetype=stylus
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'swift') == -1
+
autocmd BufNewFile,BufRead *.swift set filetype=swift
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'systemd') == -1
+
au BufNewFile,BufRead *.automount set filetype=systemd
au BufNewFile,BufRead *.mount set filetype=systemd
au BufNewFile,BufRead *.path set filetype=systemd
@@ -203,15 +328,40 @@ au BufNewFile,BufRead *.socket set filetype=systemd
au BufNewFile,BufRead *.swap set filetype=systemd
au BufNewFile,BufRead *.target set filetype=systemd
au BufNewFile,BufRead *.timer set filetype=systemd
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'textile') == -1
+
au BufRead,BufNewFile *.textile set filetype=textile
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'thrift') == -1
+
au BufNewFile,BufRead *.thrift setlocal filetype=thrift
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'tmux') == -1
+
autocmd BufNewFile,BufRead {.,}tmux.conf{.*,} setlocal filetype=tmux
autocmd BufNewFile,BufRead {.,}tmux.conf{.*,} setlocal commentstring=#\ %s
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'toml') == -1
+
autocmd BufNewFile,BufRead *.toml set filetype=toml
autocmd BufNewFile,BufRead Cargo.lock set filetype=toml
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'twig') == -1
+
autocmd BufNewFile,BufRead *.twig set filetype=twig
autocmd BufNewFile,BufRead *.html.twig set filetype=html.twig
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
+
autocmd BufNewFile,BufRead *.ts setlocal filetype=typescript
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vala') == -1
+
autocmd BufRead *.vala,*.vapi set efm=%f:%l.%c-%[%^:]%#:\ %t%[%^:]%#:\ %m
au BufRead,BufNewFile *.vala,*.vapi setfiletype vala
+endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vm') == -1
+
au BufRead,BufNewFile *.vm set ft=velocity syntax=velocity
+endif
diff --git a/ftplugin/clojure.vim b/ftplugin/clojure.vim
index 672f856e..84cee8fe 100644
--- a/ftplugin/clojure.vim
+++ b/ftplugin/clojure.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'clojure') == -1
+
" Vim filetype plugin file
" Language: Clojure
" Author: Meikel Brandmeyer <mb@kotka.de>
@@ -93,3 +95,5 @@ let &cpo = s:cpo_save
unlet! s:cpo_save s:setting s:dir
" vim:sts=8:sw=8:ts=8:noet
+
+endif
diff --git a/ftplugin/coffee.vim b/ftplugin/coffee.vim
index 347155ac..09998268 100644
--- a/ftplugin/coffee.vim
+++ b/ftplugin/coffee.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1
+
" Language: CoffeeScript
" Maintainer: Mick Koch <mick@kochm.co>
" URL: http://github.com/kchmck/vim-coffee-script
@@ -403,3 +405,5 @@ command! -buffer -range=% -bar -nargs=* CoffeeRun
\ call s:CoffeeRun(<line1>, <line2>, <q-args>)
command! -buffer -range=% -bang -bar -nargs=* CoffeeLint
\ call s:CoffeeLint(<line1>, <line2>, <q-bang>, <q-args>)
+
+endif
diff --git a/ftplugin/cucumber.vim b/ftplugin/cucumber.vim
index af734eec..2b9fff04 100644
--- a/ftplugin/cucumber.vim
+++ b/ftplugin/cucumber.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cucumber') == -1
+
" Vim filetype plugin
" Language: Cucumber
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -148,3 +150,5 @@ let &cpo = s:keepcpo
unlet s:keepcpo
" vim:set sts=2 sw=2:
+
+endif
diff --git a/ftplugin/eelixir.vim b/ftplugin/eelixir.vim
index f97291ba..57c8cb40 100644
--- a/ftplugin/eelixir.vim
+++ b/ftplugin/eelixir.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
+
" Vim filetype plugin
" Language: Embedded Elixir
" URL: https://github.com/elixir-lang/vim-elixir
@@ -89,3 +91,5 @@ let b:undo_ftplugin = "setl cms< "
\ " | unlet! b:browsefilter b:match_words | " . s:undo_ftplugin
let &cpo = s:save_cpo
+
+endif
diff --git a/ftplugin/elixir.vim b/ftplugin/elixir.vim
index 5571fcf5..576e4641 100644
--- a/ftplugin/elixir.vim
+++ b/ftplugin/elixir.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
+
" Vim filetype plugin
" Language: Elixir
" Maintainer: Carlos Galdino <carloshsgaldino@gmail.com>
@@ -23,3 +25,5 @@ endif
setlocal comments=:#
setlocal commentstring=#\ %s
+
+endif
diff --git a/ftplugin/ember-script.vim b/ftplugin/ember-script.vim
index b9aabc93..a352a86d 100644
--- a/ftplugin/ember-script.vim
+++ b/ftplugin/ember-script.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'emberscript') == -1
+
" Language: ember-script
" Maintainer: heartsentwined <heartsentwined@cogito-lab.com>
" URL: http://github.com/heartsentwined/vim-ember-script
@@ -15,3 +17,5 @@ setlocal smartindent
setlocal formatoptions-=t formatoptions+=croqlj
setlocal comments=:#
setlocal commentstring=#\ %s
+
+endif
diff --git a/ftplugin/emblem.vim b/ftplugin/emblem.vim
index 68b7f25e..8432f413 100644
--- a/ftplugin/emblem.vim
+++ b/ftplugin/emblem.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'emblem') == -1
+
" Language: emblem
" Maintainer: heartsentwined <heartsentwined@cogito-lab.com>
" URL: http://github.com/heartsentwined/vim-emblem
@@ -15,3 +17,5 @@ setlocal smartindent
setlocal formatoptions=q
setlocal comments=:/
setlocal commentstring=/\ %s
+
+endif
diff --git a/ftplugin/eruby.vim b/ftplugin/eruby.vim
index 32f3fb86..21e22696 100644
--- a/ftplugin/eruby.vim
+++ b/ftplugin/eruby.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
+
" Vim filetype plugin
" Language: eRuby
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -100,3 +102,5 @@ let &cpo = s:save_cpo
unlet s:save_cpo
" vim: nowrap sw=2 sts=2 ts=8:
+
+endif
diff --git a/ftplugin/git.vim b/ftplugin/git.vim
index c9bcd436..853dfa10 100644
--- a/ftplugin/git.vim
+++ b/ftplugin/git.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
+
" Vim filetype plugin
" Language: generic git output
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -36,3 +38,5 @@ endif
setlocal includeexpr=substitute(v:fname,'^[^/]\\+/','','')
let b:undo_ftplugin = "setl keywordprg< path< includeexpr<"
+
+endif
diff --git a/ftplugin/gitcommit.vim b/ftplugin/gitcommit.vim
index 3c1bb4f0..b031ef77 100644
--- a/ftplugin/gitcommit.vim
+++ b/ftplugin/gitcommit.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
+
" Vim filetype plugin
" Language: git commit file
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -58,3 +60,5 @@ function! s:gitdiffcached(bang,gitdir,...)
nnoremap <buffer> <silent> q :q<CR>
setlocal buftype=nowrite nobuflisted noswapfile nomodifiable filetype=git
endfunction
+
+endif
diff --git a/ftplugin/gitconfig.vim b/ftplugin/gitconfig.vim
index 833b8b14..23282522 100644
--- a/ftplugin/gitconfig.vim
+++ b/ftplugin/gitconfig.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
+
" Vim filetype plugin
" Language: git config file
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -13,3 +15,5 @@ setlocal formatoptions-=t formatoptions+=croql
setlocal comments=:#,:; commentstring=;\ %s
let b:undo_ftplugin = "setl fo< com< cms<"
+
+endif
diff --git a/ftplugin/gitrebase.vim b/ftplugin/gitrebase.vim
index 0200ba1a..572a1484 100644
--- a/ftplugin/gitrebase.vim
+++ b/ftplugin/gitrebase.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
+
" Vim filetype plugin
" Language: git rebase --interactive
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -41,3 +43,5 @@ endif
nnoremap <buffer> <expr> K col('.') < 7 && expand('<Lt>cword>') =~ '\X' && getline('.') =~ '^\w\+\s\+\x\+\>' ? 'wK' : 'K'
let b:undo_ftplugin = b:undo_ftplugin . "|nunmap <buffer> K"
+
+endif
diff --git a/ftplugin/gitsendemail.vim b/ftplugin/gitsendemail.vim
index 8fb436e1..69e0360e 100644
--- a/ftplugin/gitsendemail.vim
+++ b/ftplugin/gitsendemail.vim
@@ -1,6 +1,10 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
+
" Vim filetype plugin
" Language: git send-email message
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
" Last Change: 2009 Dec 24
runtime! ftplugin/mail.vim
+
+endif
diff --git a/ftplugin/haml.vim b/ftplugin/haml.vim
index 8c693fa0..86df1d87 100644
--- a/ftplugin/haml.vim
+++ b/ftplugin/haml.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1
+
" Vim filetype plugin
" Language: Haml
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -66,3 +68,5 @@ let b:undo_ftplugin = "setl cms< com< "
let &cpo = s:save_cpo
" vim:set sw=2:
+
+endif
diff --git a/ftplugin/html.vim b/ftplugin/html.vim
index a2af59c4..3546ab2c 100644
--- a/ftplugin/html.vim
+++ b/ftplugin/html.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
+
" Maintainer: othree <othree@gmail.com>
" URL: http://github.com/othree/html5.vim
" Last Change: 2014-05-02
@@ -5,3 +7,5 @@
" Changes: Add - to keyword
" setlocal iskeyword+=-
+
+endif
diff --git a/ftplugin/jade.vim b/ftplugin/jade.vim
index 577f5547..1cf5015f 100644
--- a/ftplugin/jade.vim
+++ b/ftplugin/jade.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jade') == -1
+
" Vim filetype plugin
" Language: Jade
" Maintainer: Joshua Borton
@@ -55,3 +57,5 @@ let b:undo_ftplugin = "setl cms< com< "
let &cpo = s:save_cpo
" vim:set sw=2:
+
+endif
diff --git a/ftplugin/latex-box/common.vim b/ftplugin/latex-box/common.vim
index f463b7e7..20488846 100644
--- a/ftplugin/latex-box/common.vim
+++ b/ftplugin/latex-box/common.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
+
" LaTeX Box common functions
" Error Format {{{
@@ -411,3 +413,5 @@ endfunction
" }}}
" vim:fdm=marker:ff=unix:noet:ts=4:sw=4
+
+endif
diff --git a/ftplugin/latex-box/complete.vim b/ftplugin/latex-box/complete.vim
index fae7e4e0..aecb0d8d 100644
--- a/ftplugin/latex-box/complete.vim
+++ b/ftplugin/latex-box/complete.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
+
" LaTeX Box completion
setlocal omnifunc=LatexBox_Complete
@@ -930,3 +932,5 @@ command! LatexLabels call <SID>PromptLabelList()
" }}}
" vim:fdm=marker:ff=unix:noet:ts=4:sw=4
+
+endif
diff --git a/ftplugin/latex-box/findmain.vim b/ftplugin/latex-box/findmain.vim
index b9871a61..3b81b0d7 100644
--- a/ftplugin/latex-box/findmain.vim
+++ b/ftplugin/latex-box/findmain.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
+
" LatexBox_GetMainFileName: gets the name of the main file being compiled. {{{
" Description: returns the full path name of the main file.
" This function checks for the existence of a .latexmain file
@@ -60,3 +62,5 @@ function! LatexBox_GetMainFileName(...)
" certain platforms.
return lheadfile
endfunction
+
+endif
diff --git a/ftplugin/latex-box/folding.vim b/ftplugin/latex-box/folding.vim
index aedca8f6..d6f36272 100644
--- a/ftplugin/latex-box/folding.vim
+++ b/ftplugin/latex-box/folding.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
+
" Folding support for LaTeX
"
@@ -376,3 +378,5 @@ endfunction
" {{{1 Footer
" vim:fdm=marker:ff=unix:ts=4:sw=4
+
+endif
diff --git a/ftplugin/latex-box/latexmk.vim b/ftplugin/latex-box/latexmk.vim
index 7cd8ac7d..15db3686 100644
--- a/ftplugin/latex-box/latexmk.vim
+++ b/ftplugin/latex-box/latexmk.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
+
" LaTeX Box latexmk functions
" Options and variables {{{
@@ -552,3 +554,5 @@ endif
" }}}
" vim:fdm=marker:ff=unix:noet:ts=4:sw=4
+
+endif
diff --git a/ftplugin/latex-box/mappings.vim b/ftplugin/latex-box/mappings.vim
index ef6b52ff..7141635e 100644
--- a/ftplugin/latex-box/mappings.vim
+++ b/ftplugin/latex-box/mappings.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
+
" LaTeX Box mappings
if exists("g:LatexBox_no_mappings")
@@ -104,3 +106,5 @@ vnoremap <buffer> <silent> [[ :<c-u>call <SID>LatexBoxNextSection(0,1,1)<CR>
" }}}
" vim:fdm=marker:ff=unix:noet:ts=4:sw=4
+
+endif
diff --git a/ftplugin/latex-box/motion.vim b/ftplugin/latex-box/motion.vim
index 66b9e4fc..2053149c 100644
--- a/ftplugin/latex-box/motion.vim
+++ b/ftplugin/latex-box/motion.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
+
" LaTeX Box motion functions
" Motion options {{{
@@ -542,3 +544,5 @@ command! LatexTOCToggle call LatexBox_TOC(1)
" }}}
" vim:fdm=marker:ff=unix:noet:ts=4:sw=4
+
+endif
diff --git a/ftplugin/latextoc.vim b/ftplugin/latextoc.vim
index 65315dea..bfb8658e 100644
--- a/ftplugin/latextoc.vim
+++ b/ftplugin/latextoc.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
+
" {{{1 Settings
setlocal buftype=nofile
setlocal bufhidden=wipe
@@ -200,3 +202,5 @@ nnoremap <buffer> <silent> <Esc>OD h
" }}}1
" vim:fdm=marker:ff=unix:et:ts=4:sw=4
+
+endif
diff --git a/ftplugin/less.vim b/ftplugin/less.vim
index c4da0a58..c89ea2de 100644
--- a/ftplugin/less.vim
+++ b/ftplugin/less.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'less') == -1
+
" Vim filetype plugin
" Language: LessCSS
" Author: Tim Pope <vimNOSPAM@tpope.org>
@@ -24,3 +26,5 @@ setlocal fo=jcroql
let &l:include = '^\s*@import\s\+\%(url(\)\=["'']\='
" vim:set sw=2:
+
+endif
diff --git a/ftplugin/liquid.vim b/ftplugin/liquid.vim
index b211a884..34543367 100644
--- a/ftplugin/liquid.vim
+++ b/ftplugin/liquid.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'liquid') == -1
+
" Vim filetype plugin
" Language: Liquid
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -59,3 +61,5 @@ endif
setlocal commentstring={%\ comment\ %}%s{%\ endcomment\ %}
let b:undo_ftplugin .= 'setl cms< | unlet! b:browsefilter b:match_words'
+
+endif
diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim
index e8627ccc..4fe53d0b 100644
--- a/ftplugin/markdown.vim
+++ b/ftplugin/markdown.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'markdown') == -1
+
" Vim filetype plugin
" Language: Markdown
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -48,3 +50,5 @@ if has("folding") && exists("g:markdown_folding")
endif
" vim:set sw=2:
+
+endif
diff --git a/ftplugin/mustache.vim b/ftplugin/mustache.vim
index 61b5896d..69b53620 100644
--- a/ftplugin/mustache.vim
+++ b/ftplugin/mustache.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'handlebars') == -1
+
if exists('g:loaded_mustache_handlebars') && g:loaded_mustache_handlebars
finish
endif
@@ -118,3 +120,5 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: nofoldenable
+
+endif
diff --git a/ftplugin/ocaml.vim b/ftplugin/ocaml.vim
index 2b39d27c..87cd9ef4 100644
--- a/ftplugin/ocaml.vim
+++ b/ftplugin/ocaml.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1
+
" Language: OCaml
" Maintainer: David Baelde <firstname.name@ens-lyon.org>
" Mike Leary <leary@nwlink.com>
@@ -503,3 +505,5 @@ let &cpoptions=s:cposet
unlet s:cposet
" vim:sw=2
+
+endif
diff --git a/ftplugin/opencl.vim b/ftplugin/opencl.vim
index d89946fd..816bc28c 100644
--- a/ftplugin/opencl.vim
+++ b/ftplugin/opencl.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'opencl') == -1
+
if exists("b:did_ftplugin") | finish | endif
if version > 600
@@ -13,3 +15,5 @@ setlocal smarttab
setlocal smartindent
let b:did_ftplugin = 1
+
+endif
diff --git a/ftplugin/perl.vim b/ftplugin/perl.vim
index 89ce8a1b..e21f7df8 100644
--- a/ftplugin/perl.vim
+++ b/ftplugin/perl.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
" Vim filetype plugin file
" Language: Perl
" Maintainer: vim-perl <vim-perl@googlegroups.com>
@@ -87,3 +89,5 @@ let b:match_words = '\<if\>:\<elsif\>:\<else\>'
" Restore the saved compatibility options.
let &cpo = s:save_cpo
unlet s:save_cpo
+
+endif
diff --git a/ftplugin/perl6.vim b/ftplugin/perl6.vim
index c32ef43e..4d0446af 100644
--- a/ftplugin/perl6.vim
+++ b/ftplugin/perl6.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
" Vim filetype plugin file
" Language: Perl 6
" Maintainer: vim-perl <vim-perl@googlegroups.com>
@@ -86,3 +88,5 @@ let b:undo_ftplugin = "setlocal fo< com< cms< inc< inex< def< isf< isk< kp< path
" Restore the saved compatibility options.
let &cpo = s:save_cpo
unlet s:save_cpo
+
+endif
diff --git a/ftplugin/ps1.vim b/ftplugin/ps1.vim
index ae81ccb5..a88fe019 100644
--- a/ftplugin/ps1.vim
+++ b/ftplugin/ps1.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'powershell') == -1
+
" Vim filetype plugin file
" Language: Windows PowerShell
" Maintainer: Peter Provost <peter@provost.org>
@@ -32,3 +34,5 @@ endif
let b:undo_ftplugin = "setlocal tw< cms< fo<" .
\ " | unlet! b:browsefilter"
+
+endif
diff --git a/ftplugin/ps1xml.vim b/ftplugin/ps1xml.vim
index 5f615c52..11815d2d 100644
--- a/ftplugin/ps1xml.vim
+++ b/ftplugin/ps1xml.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'powershell') == -1
+
" Vim filetype plugin file
" Language: Windows PowerShell
" Maintainer: Peter Provost <peter@provost.org>
@@ -29,3 +31,5 @@ endif
let b:undo_ftplugin = "setlocal tw< cms< fo<" .
\ " | unlet! b:browsefilter"
+
+endif
diff --git a/ftplugin/puppet.vim b/ftplugin/puppet.vim
index 175ac126..ff0de3dc 100644
--- a/ftplugin/puppet.vim
+++ b/ftplugin/puppet.vim
@@ -1,6 +1,10 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
+
setl ts=2
setl sts=2
setl sw=2
setl et
setl keywordprg=puppet\ describe\ --providers
setl iskeyword=-,:,@,48-57,_,192-255
+
+endif
diff --git a/ftplugin/r.vim b/ftplugin/r.vim
index a3d4da3c..599d3ce7 100644
--- a/ftplugin/r.vim
+++ b/ftplugin/r.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'r-lang') == -1
+
" ftplugin for R files
"
" Author: Iago Mosqueira <i.mosqueira@ic.ac.uk>
@@ -67,3 +69,5 @@ inoremap <M-Enter> <Esc>:execute line(".") 'w >> ~/.r-pipe'<CR>o
" Send current file to R
noremap <buffer> <F5> :execute '1 ,' line("$") 'w >> ~/.r-pipe' <CR><CR>
+
+endif
diff --git a/ftplugin/rhelp.vim b/ftplugin/rhelp.vim
index 20d1e1ac..c73472d4 100644
--- a/ftplugin/rhelp.vim
+++ b/ftplugin/rhelp.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'r-lang') == -1
+
" ftplugin for R help files
"
" Author: Johannes Ranke <jranke@uni-bremen.de>
@@ -46,3 +48,5 @@ vnoremap <buffer> r :w >> ~/.r-pipe<CR>
" Write and process mode (somehow mapping <C-Enter> does not work)
inoremap <M-Enter> <Esc>:execute line(".") 'w >> ~/.r-pipe'<CR>o
+
+endif
diff --git a/ftplugin/rnoweb.vim b/ftplugin/rnoweb.vim
index bbcd0ccb..5ea2cdd6 100644
--- a/ftplugin/rnoweb.vim
+++ b/ftplugin/rnoweb.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'r-lang') == -1
+
" ftplugin for Sweave files containing both LaTeX and R code
"
" Maintainer: Johannes Ranke <jranke@uni-bremen.de>
@@ -57,3 +59,5 @@ vnoremap <buffer> r :w >> ~/.r-pipe<CR>
" Write and process mode (somehow mapping <C-Enter> does not work)
inoremap <M-Enter> <Esc>:execute line(".") 'w >> ~/.r-pipe'<CR>o
+
+endif
diff --git a/ftplugin/ruby.vim b/ftplugin/ruby.vim
index 60404744..8d014d76 100644
--- a/ftplugin/ruby.vim
+++ b/ftplugin/ruby.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
+
" Vim filetype plugin
" Language: Ruby
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -418,3 +420,5 @@ endfunction
"
" vim: nowrap sw=2 sts=2 ts=8:
+
+endif
diff --git a/ftplugin/rust.vim b/ftplugin/rust.vim
index 5d556994..ace67889 100644
--- a/ftplugin/rust.vim
+++ b/ftplugin/rust.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
+
" Language: Rust
" Description: Vim syntax file for Rust
" Maintainer: Chris Morgan <me@chrismorgan.info>
@@ -148,3 +150,5 @@ let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set noet sw=4 ts=4:
+
+endif
diff --git a/ftplugin/sass.vim b/ftplugin/sass.vim
index 27c87ada..e9561d95 100644
--- a/ftplugin/sass.vim
+++ b/ftplugin/sass.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1
+
" Vim filetype plugin
" Language: Sass
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -21,3 +23,5 @@ setlocal suffixesadd=.sass,.scss,.css
let &l:include = '^\s*@import\s\+\%(url(\)\=["'']\='
" vim:set sw=2:
+
+endif
diff --git a/ftplugin/scala.vim b/ftplugin/scala.vim
index d723eece..24b24136 100644
--- a/ftplugin/scala.vim
+++ b/ftplugin/scala.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1
+
" Vim filetype plugin
" Language: Scala
" Maintainer: Derek Wyatt
@@ -170,3 +172,5 @@ noremap <script> <buffer> <silent> ]] :call <SID>NextSection(0)<cr>
noremap <script> <buffer> <silent> [[ :call <SID>NextSection(1)<cr>
" vim:set sw=2 sts=2 ts=8 et:
+
+endif
diff --git a/ftplugin/scala.xpt.vim b/ftplugin/scala.xpt.vim
index 09d2b594..bb20242d 100644
--- a/ftplugin/scala.xpt.vim
+++ b/ftplugin/scala.xpt.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1
+
XPTemplate priority=lang
@@ -27,3 +29,5 @@ trait `derived^`trait^Component extends `trait^Component {
`body2^
}
}
+
+endif
diff --git a/ftplugin/scala/tagbar.vim b/ftplugin/scala/tagbar.vim
index 5e1f2af6..e6ab70e5 100644
--- a/ftplugin/scala/tagbar.vim
+++ b/ftplugin/scala/tagbar.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1
+
"
" Support for Tagbar -- https://github.com/majutsushi/tagbar
"
@@ -29,3 +31,5 @@ let g:tagbar_type_scala = {
if get(g:, 'scala_use_builtin_tagbar_defs', 1)
let g:tagbar_type_scala.deffile = expand('<sfile>:p:h:h:h') . '/ctags/scala.ctags'
endif
+
+endif
diff --git a/ftplugin/scss.vim b/ftplugin/scss.vim
index 2e3c5f1d..e95b70f5 100644
--- a/ftplugin/scss.vim
+++ b/ftplugin/scss.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1
+
" Vim filetype plugin
" Language: SCSS
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -11,3 +13,5 @@ runtime! ftplugin/sass.vim
setlocal comments=s1:/*,mb:*,ex:*/,://
" vim:set sw=2:
+
+endif
diff --git a/ftplugin/stylus.vim b/ftplugin/stylus.vim
index 419f4713..0b29d266 100644
--- a/ftplugin/stylus.vim
+++ b/ftplugin/stylus.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'stylus') == -1
+
" Vim filetype plugin
" Language: Stylus
" Maintainer: Marc Harter
@@ -61,3 +63,5 @@ let &cpo = s:save_cpo
command! Stylus !clear; cat % | stylus
" vim:set sw=2:
+
+endif
diff --git a/ftplugin/tex_LatexBox.vim b/ftplugin/tex_LatexBox.vim
index 2945851d..6c8899a6 100644
--- a/ftplugin/tex_LatexBox.vim
+++ b/ftplugin/tex_LatexBox.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
+
" LaTeX Box plugin for Vim
" Maintainer: David Munger
" Email: mungerd@gmail.com
@@ -31,3 +33,5 @@ if !exists('b:LatexBox_loaded')
endif
" vim:fdm=marker:ff=unix:noet:ts=4:sw=4
+
+endif
diff --git a/ftplugin/textile.vim b/ftplugin/textile.vim
index a840e600..1e40f380 100644
--- a/ftplugin/textile.vim
+++ b/ftplugin/textile.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'textile') == -1
+
" textile.vim
"
" Tim Harper (tim.theenchanter.com)
@@ -57,3 +59,5 @@ function! TextileRenderBufferToTab()
set syntax=html
endfunction
+
+endif
diff --git a/ftplugin/toml.vim b/ftplugin/toml.vim
index 6e205c23..1d11c9d8 100644
--- a/ftplugin/toml.vim
+++ b/ftplugin/toml.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'toml') == -1
+
" File: ftplugin/toml.vim
" Author: Kevin Ballard <kevin@sb.org>
" Description: FileType Plugin for Toml
@@ -35,3 +37,5 @@ let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sw=4 ts=4:
+
+endif
diff --git a/ftplugin/tt2html.vim b/ftplugin/tt2html.vim
index 4ad02292..d0f02885 100644
--- a/ftplugin/tt2html.vim
+++ b/ftplugin/tt2html.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
" Language: TT2 embedded with HTML
" Maintainer: vim-perl <vim-perl@googlegroups.com>
" Homepage: http://github.com/vim-perl/vim-perl
@@ -11,3 +13,5 @@ endif
" Just use the HTML plugin for now.
runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim
+
+endif
diff --git a/ftplugin/twig.vim b/ftplugin/twig.vim
index 506adbd6..b4735485 100644
--- a/ftplugin/twig.vim
+++ b/ftplugin/twig.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'twig') == -1
+
" Vim filetype plugin
" Language: Twig
" Maintainer: F. Gabriel Gosselin <gabrielNOSPAM@evidens.ca>
@@ -16,3 +18,5 @@ setlocal formatoptions+=tcqln
let b:undo_ftplugin .= "|setl cms< com< fo<"
" vim:set sw=2:
+
+endif
diff --git a/ftplugin/typescript.vim b/ftplugin/typescript.vim
index ed1b8aae..9508fba4 100644
--- a/ftplugin/typescript.vim
+++ b/ftplugin/typescript.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
+
if exists("b:did_ftplugin")
finish
endif
@@ -17,3 +19,5 @@ let b:undo_ftplugin = "setl fo< ofu< com< cms<"
let &cpo = s:cpo_save
unlet s:cpo_save
+
+endif
diff --git a/ftplugin/xs.vim b/ftplugin/xs.vim
index 6c7172ed..ef365dc1 100644
--- a/ftplugin/xs.vim
+++ b/ftplugin/xs.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
" Vim filetype plugin file
" Language: XS (Perl extension interface language)
" Maintainer: vim-perl <vim-perl@googlegroups.com>
@@ -12,3 +14,5 @@ endif
" Just use the C plugin for now.
runtime! ftplugin/c.vim ftplugin/c_*.vim ftplugin/c/*.vim
+
+endif
diff --git a/indent/arduino.vim b/indent/arduino.vim
index b10e6e2f..21ba1964 100644
--- a/indent/arduino.vim
+++ b/indent/arduino.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'arduino') == -1
+
" Vim indent file
" Language: Arduino
" Maintainer: Kevin Sjöberg <kev.sjoberg@gmail.com>
@@ -13,3 +15,5 @@ let b:did_indent = 1
setlocal cindent
let b:undo_indent = "setl cin<"
+
+endif
diff --git a/indent/blade.vim b/indent/blade.vim
index 7515a239..8327f451 100644
--- a/indent/blade.vim
+++ b/indent/blade.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'blade') == -1
+
" Language: Blade
" Author: Barry Deeney <sitemaster16@gmail.com>
" Version: 0.1
@@ -60,3 +62,5 @@ endfunc
" Make sure we store that flag!
let b:did_indent = 1
+
+endif
diff --git a/indent/clojure.vim b/indent/clojure.vim
index 3f0fd823..cb8c050b 100644
--- a/indent/clojure.vim
+++ b/indent/clojure.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'clojure') == -1
+
" Vim indent file
" Language: Clojure
" Author: Meikel Brandmeyer <mb@kotka.de>
@@ -378,3 +380,5 @@ let &cpo = s:save_cpo
unlet! s:save_cpo
" vim:sts=8:sw=8:ts=8:noet
+
+endif
diff --git a/indent/coffee.vim b/indent/coffee.vim
index 4f4570a8..fc9b58f7 100644
--- a/indent/coffee.vim
+++ b/indent/coffee.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1
+
" Language: CoffeeScript
" Maintainer: Mick Koch <mick@kochm.co>
" URL: http://github.com/kchmck/vim-coffee-script
@@ -426,3 +428,5 @@ function! GetCoffeeIndent(curlnum)
" No special rules applied, so use the default policy.
exec 'return' s:GetDefaultPolicy(a:curlnum)
endfunction
+
+endif
diff --git a/indent/cucumber.vim b/indent/cucumber.vim
index 965c7786..5e646a51 100644
--- a/indent/cucumber.vim
+++ b/indent/cucumber.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cucumber') == -1
+
" Vim indent file
" Language: Cucumber
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -72,3 +74,5 @@ function! GetCucumberIndent()
endfunction
" vim:set sts=2 sw=2:
+
+endif
diff --git a/indent/eelixir.vim b/indent/eelixir.vim
index 7b17c104..c5e2491e 100644
--- a/indent/eelixir.vim
+++ b/indent/eelixir.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
+
" Vim indent file
" Language: Embedded Elixir
" URL: https://github.com/elixir-lang/vim-elixir
@@ -70,3 +72,5 @@ function! GetEelixirIndent(...)
endif
return ind
endfunction
+
+endif
diff --git a/indent/elixir.vim b/indent/elixir.vim
index 636097b7..863104d3 100644
--- a/indent/elixir.vim
+++ b/indent/elixir.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
+
" Vim indent file
" Language: Elixir
" Maintainer: Carlos Galdino <carloshsgaldino@gmail.com>
@@ -117,3 +119,5 @@ endfunction
let &cpo = s:cpo_save
unlet s:cpo_save
+
+endif
diff --git a/indent/ember-script.vim b/indent/ember-script.vim
index 8bfa049c..ee2ccc76 100644
--- a/indent/ember-script.vim
+++ b/indent/ember-script.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'emberscript') == -1
+
" Language: ember-script
" Maintainer: heartsentwined <heartsentwined@cogito-lab.com>
" URL: http://github.com/heartsentwined/vim-ember-script
@@ -12,3 +14,5 @@ endif
runtime! indent/coffee.vim
unlet! b:did_indent
let b:did_indent = 1
+
+endif
diff --git a/indent/emblem.vim b/indent/emblem.vim
index 21c8aea5..8b8bc068 100644
--- a/indent/emblem.vim
+++ b/indent/emblem.vim
@@ -1,6 +1,10 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'emblem') == -1
+
" Language: emblem
" Maintainer: heartsentwined <heartsentwined@cogito-lab.com>
" URL: http://github.com/heartsentwined/vim-emblem
" Version: 1.2.0
" Last Change: 2013 Apr 22
" License: GPL-3.0
+
+endif
diff --git a/indent/erlang.vim b/indent/erlang.vim
index 6bcec851..b1186ca8 100644
--- a/indent/erlang.vim
+++ b/indent/erlang.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'erlang') == -1
+
" Vim indent file
" Language: Erlang (http://www.erlang.org)
" Author: Csaba Hoch <csaba.hoch@gmail.com>
@@ -1479,3 +1481,5 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: sw=2 et fdm=marker
+
+endif
diff --git a/indent/eruby.vim b/indent/eruby.vim
index 5028fe06..07cff818 100644
--- a/indent/eruby.vim
+++ b/indent/eruby.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
+
" Vim indent file
" Language: eRuby
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -100,3 +102,5 @@ function! GetErubyIndent(...)
endfunction
" vim:set sw=2 sts=2 ts=8 noet:
+
+endif
diff --git a/indent/gitconfig.vim b/indent/gitconfig.vim
index 8eece5d3..b6453d21 100644
--- a/indent/gitconfig.vim
+++ b/indent/gitconfig.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
+
" Vim indent file
" Language: git config file
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -35,3 +37,5 @@ function! GetGitconfigIndent()
return -1
endif
endfunction
+
+endif
diff --git a/indent/go.vim b/indent/go.vim
index a3fa2b7a..102d3495 100644
--- a/indent/go.vim
+++ b/indent/go.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1
+
" Copyright 2011 The Go Authors. All rights reserved.
" Use of this source code is governed by a BSD-style
" license that can be found in the LICENSE file.
@@ -76,3 +78,5 @@ function! GoIndent(lnum)
endfunction
" vim:ts=4:sw=4:et
+
+endif
diff --git a/indent/gohtmltmpl.vim b/indent/gohtmltmpl.vim
index 50399f2b..7275383e 100644
--- a/indent/gohtmltmpl.vim
+++ b/indent/gohtmltmpl.vim
@@ -1,5 +1,9 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1
+
if exists("b:did_indent")
finish
endif
runtime! indent/html.vim
+
+endif
diff --git a/indent/haml.vim b/indent/haml.vim
index 710aefc0..e6e04181 100644
--- a/indent/haml.vim
+++ b/indent/haml.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1
+
" Vim indent file
" Language: Haml
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -71,3 +73,5 @@ function! GetHamlIndent()
endfunction
" vim:set sw=2:
+
+endif
diff --git a/indent/haskell.vim b/indent/haskell.vim
index 1d500250..6a16e735 100644
--- a/indent/haskell.vim
+++ b/indent/haskell.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1
+
" Vim indent file
" Language: Haskell
" Maintainer: Tristan Ravitch
@@ -294,3 +296,5 @@ function! s:BackwardPatternSearch(lnum, pat)
endwhile
endfunction
+
+endif
diff --git a/indent/html.vim b/indent/html.vim
index 94baa871..a09df409 100644
--- a/indent/html.vim
+++ b/indent/html.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
+
" Description: HTML5 and inline SVG indenter
" Changed By: HT de Beer <H.T.de.Beer@gmail.com>
" Last Change: 20121013
@@ -385,3 +387,5 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" [-- EOF <runtime>/indent/html.vim --]
+
+endif
diff --git a/indent/jade.vim b/indent/jade.vim
index 8cfa656d..da29e0cf 100644
--- a/indent/jade.vim
+++ b/indent/jade.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jade') == -1
+
" Vim indent file
" Language: Jade
" Maintainer: Joshua Borton
@@ -68,3 +70,5 @@ function! GetJadeIndent()
endfunction
" vim:set sw=2:
+
+endif
diff --git a/indent/javascript.vim b/indent/javascript.vim
index 0a2f839e..dedc41fa 100644
--- a/indent/javascript.vim
+++ b/indent/javascript.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1
+
" Vim indent file
" Language: Javascript
" Acknowledgement: Based off of vim-ruby maintained by Nikolai Weibull http://vim-ruby.rubyforge.org
@@ -499,3 +501,5 @@ function! Fixedgq(lnum, count)
return 0
endfunction
+
+endif
diff --git a/indent/json.vim b/indent/json.vim
index 9e563ad4..912bbfcf 100644
--- a/indent/json.vim
+++ b/indent/json.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'json') == -1
+
" Vim indent file
" Language: JSON
" Mantainer: Eli Parra <eli@elzr.com> https://github.com/elzr/vim-json
@@ -167,3 +169,5 @@ unlet s:cpo_save
" vim:set sw=2 sts=2 ts=8 noet:
+
+endif
diff --git a/indent/jst.vim b/indent/jst.vim
index c9162741..773500dc 100644
--- a/indent/jst.vim
+++ b/indent/jst.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jst') == -1
+
if exists("b:did_indent")
finish
endif
@@ -73,3 +75,5 @@ endfunction
" vim:set sw=2 sts=2 ts=8 noet:
+
+endif
diff --git a/indent/julia.vim b/indent/julia.vim
index 19314207..7fafe89c 100644
--- a/indent/julia.vim
+++ b/indent/julia.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1
+
" Vim indent file
" Language: Julia
" Maintainer: Carlo Baldassi <carlobaldassi@gmail.com>
@@ -196,3 +198,5 @@ function GetJuliaIndent()
unlet s:save_ignorecase
return ind
endfunction
+
+endif
diff --git a/indent/less.vim b/indent/less.vim
index 556c2d08..700a19fb 100644
--- a/indent/less.vim
+++ b/indent/less.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'less') == -1
+
" Vim indent file
" Language: LessCSS
" Maintainer: Leonard Ehrenfried <leonard.ehrenfried@web.de>
@@ -7,4 +9,5 @@ if exists("b:did_indent")
finish
endif
-runtime! indent/css.vim \ No newline at end of file
+runtime! indent/css.vim
+endif
diff --git a/indent/liquid.vim b/indent/liquid.vim
index 2f729f00..2025dacd 100644
--- a/indent/liquid.vim
+++ b/indent/liquid.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'liquid') == -1
+
" Vim indent file
" Language: Liquid
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -60,3 +62,5 @@ function! GetLiquidIndent(...)
let ind -= &sw * s:count(cline,'{%\s*end\w*$')
return ind
endfunction
+
+endif
diff --git a/indent/ocaml.vim b/indent/ocaml.vim
index a84c992e..dac76ab8 100644
--- a/indent/ocaml.vim
+++ b/indent/ocaml.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1
+
" Vim indent file
" Language: OCaml
" Maintainers: Jean-Francois Yuen <jfyuen@happycoders.org>
@@ -265,3 +267,5 @@ function! GetOCamlIndent()
endfunction
" vim:sw=2
+
+endif
diff --git a/indent/opencl.vim b/indent/opencl.vim
index 2401ad30..53df06d0 100644
--- a/indent/opencl.vim
+++ b/indent/opencl.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'opencl') == -1
+
" Only load this indent file when no other was loaded.
if exists("b:did_indent")
finish
@@ -8,3 +10,5 @@ if version > 600
endif
let b:did_indent = 1
+
+endif
diff --git a/indent/perl.vim b/indent/perl.vim
index 7d21d219..42cc1d01 100644
--- a/indent/perl.vim
+++ b/indent/perl.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
" Vim indent file
" Language: Perl 5
" Maintainer: vim-perl <vim-perl@googlegroups.com>
@@ -178,3 +180,5 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim:ts=8:sts=4:sw=4:expandtab:ft=vim
+
+endif
diff --git a/indent/perl6.vim b/indent/perl6.vim
index 564ca81b..78c6011d 100644
--- a/indent/perl6.vim
+++ b/indent/perl6.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
" Vim indent file
" Language: Perl 6
" Maintainer: vim-perl <vim-perl@googlegroups.com>
@@ -125,3 +127,5 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim:ts=8:sts=4:sw=4:expandtab:ft=vim
+
+endif
diff --git a/indent/ps1.vim b/indent/ps1.vim
index 8198a504..6de24590 100644
--- a/indent/ps1.vim
+++ b/indent/ps1.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'powershell') == -1
+
" Vim indent file
" Language: Windows PowerShell
" Maintainer: Peter Provost <peter@provost.org>
@@ -18,3 +20,5 @@ inoremap # X#
let b:undo_indent = "setl si<"
+
+endif
diff --git a/indent/puppet.vim b/indent/puppet.vim
index cf49de88..e9b08447 100644
--- a/indent/puppet.vim
+++ b/indent/puppet.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
+
" Vim indent file
" Language: Puppet
" Maintainer: Todd Zullinger <tmz@pobox.com>
@@ -92,3 +94,5 @@ function! GetPuppetIndent()
return ind
endfunction
+
+endif
diff --git a/indent/python.vim b/indent/python.vim
index 24ffd88c..48b34469 100644
--- a/indent/python.vim
+++ b/indent/python.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'python') == -1
+
" PEP8 compatible Python indent file
" Only load this indent file when no other was loaded.
if exists("b:did_indent")
@@ -211,3 +213,5 @@ function! GetPythonPEPIndent(lnum)
" In all other cases, line up with the start of the previous statement.
return indent(sslnum)
endfunction
+
+endif
diff --git a/indent/ruby.vim b/indent/ruby.vim
index f0dde6fa..46615343 100644
--- a/indent/ruby.vim
+++ b/indent/ruby.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
+
" Vim indent file
" Language: Ruby
" Maintainer: Nikolai Weibull <now at bitwi.se>
@@ -655,3 +657,5 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim:set sw=2 sts=2 ts=8 et:
+
+endif
diff --git a/indent/rust.vim b/indent/rust.vim
index 300d7dac..3033f063 100644
--- a/indent/rust.vim
+++ b/indent/rust.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
+
" Vim indent file
" Language: Rust
" Author: Chris Morgan <me@chrismorgan.info>
@@ -194,3 +196,5 @@ function GetRustIndent(lnum)
" Fall back on cindent, which does it mostly right
return cindent(a:lnum)
endfunction
+
+endif
diff --git a/indent/sass.vim b/indent/sass.vim
index 1da83193..04a2c750 100644
--- a/indent/sass.vim
+++ b/indent/sass.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1
+
" Vim indent file
" Language: Sass
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -38,3 +40,5 @@ function! GetSassIndent()
endfunction
" vim:set sw=2:
+
+endif
diff --git a/indent/scala.vim b/indent/scala.vim
index 4930becd..6f5d1da9 100644
--- a/indent/scala.vim
+++ b/indent/scala.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1
+
" Vim indent file
" Language : Scala (http://scala-lang.org/)
" Original Author : Stefan Matthias Aust
@@ -596,3 +598,5 @@ endfunction
" vim:set sw=2 sts=2 ts=8 et:
" vim600:fdm=marker fdl=1 fdc=0:
+
+endif
diff --git a/indent/scss.vim b/indent/scss.vim
index 82bba492..68ebbe53 100644
--- a/indent/scss.vim
+++ b/indent/scss.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1
+
" Vim indent file
" Language: SCSS
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -10,3 +12,5 @@ endif
runtime! indent/css.vim
" vim:set sw=2:
+
+endif
diff --git a/indent/slim.vim b/indent/slim.vim
index 5b843bfb..adf4274f 100644
--- a/indent/slim.vim
+++ b/indent/slim.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'slim') == -1
+
" Vim indent file
" Language: Slim
@@ -73,3 +75,5 @@ function! GetSlimIndent()
endfunction
" vim:set sw=2:
+
+endif
diff --git a/indent/solidity.vim b/indent/solidity.vim
index 29b60b5a..23c55061 100644
--- a/indent/solidity.vim
+++ b/indent/solidity.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'solidity') == -1
+
" Vim indent file
" Language: Solidity
" Acknowledgement: Based off of vim-javascript
@@ -437,3 +439,5 @@ endfunction
let &cpo = s:cpo_save
unlet s:cpo_save
+
+endif
diff --git a/indent/stylus.vim b/indent/stylus.vim
index 8707e619..eb958f04 100644
--- a/indent/stylus.vim
+++ b/indent/stylus.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'stylus') == -1
+
" Vim indent file
" Language: Stylus
" Maintainer: Marc Harter
@@ -127,3 +129,5 @@ function! GetStylusIndent()
endfunction
" vim:set sw=2;
+
+endif
diff --git a/indent/swift.vim b/indent/swift.vim
index 8f0de62c..472b3cf7 100644
--- a/indent/swift.vim
+++ b/indent/swift.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'swift') == -1
+
" Language: Swift<https://developer.apple.com/swift/>
" Maintainer: toyama satoshi <toyamarinyon@gmail.com>
" URL: http://github.com/toyamarinyon/vim-swift
@@ -13,3 +15,5 @@ let b:did_indent = 1
setlocal cindent
let b:undo_indent = "setl cin<"
+
+endif
diff --git a/indent/tex.vim b/indent/tex.vim
index 3abc44ba..14af7b28 100644
--- a/indent/tex.vim
+++ b/indent/tex.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
+
" LaTeX indent file (part of LaTeX Box)
" Maintainer: David Munger (mungerd@gmail.com)
@@ -134,3 +136,5 @@ if v:version > 703 || (v:version == 703 && has('patch598'))
endif
" vim:fdm=marker:ff=unix:noet:ts=4:sw=4
+
+endif
diff --git a/indent/typescript.vim b/indent/typescript.vim
index 78d04c5c..73bce658 100644
--- a/indent/typescript.vim
+++ b/indent/typescript.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
+
" Vim indent file, taken from indent/java.vim
" Language: Typescript
" Maintainer: None! Wanna improve this?
@@ -87,3 +89,5 @@ let &cpo = s:keepcpo
unlet s:keepcpo
" vim: et
+
+endif
diff --git a/indent/vala.vim b/indent/vala.vim
index da54d6bb..42babfb9 100644
--- a/indent/vala.vim
+++ b/indent/vala.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vala') == -1
+
" Copyright (c) 2012 Takezoe Tomoaki <tkztmk@outlook.com>
"
" Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -30,3 +32,5 @@ let b:did_indent = 1
setl cin
let b:undo_indent = "setl cin<"
+
+endif
diff --git a/indent/velocity.vim b/indent/velocity.vim
index f30c4af8..297fffff 100644
--- a/indent/velocity.vim
+++ b/indent/velocity.vim
@@ -1,5 +1,9 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vm') == -1
+
if exists("b:did_indent")
finish
endif
runtime! indent/html.vim
+
+endif
diff --git a/syntax/arduino.vim b/syntax/arduino.vim
index 1a2cd41b..4065608a 100644
--- a/syntax/arduino.vim
+++ b/syntax/arduino.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'arduino') == -1
+
" Vim syntax file
" Language: Arduino
" Maintainer: Sudar <sudar@sudarmuthu.com>
@@ -164,3 +166,5 @@ hi def link arduinoType Type
hi def link arduinoConstant Constant
hi def link arduinoFunc Function
hi def link arduinoIdentifier Identifier
+
+endif
diff --git a/syntax/blade.vim b/syntax/blade.vim
index 3f512163..0a1f7607 100644
--- a/syntax/blade.vim
+++ b/syntax/blade.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'blade') == -1
+
" Language: Blade
" Maintainer: Jason Walton <jwalton512@gmail.com>
" URL: https://github.com/xsbeats/vim-blade
@@ -39,3 +41,5 @@ hi def link bladeStructure Keyword
if !exists('b:current_syntax')
let b:current_syntax = 'blade'
endif
+
+endif
diff --git a/syntax/c.vim b/syntax/c.vim
index ac4909ed..81fce556 100644
--- a/syntax/c.vim
+++ b/syntax/c.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'c/c++') == -1
+
" Vim syntax file
" Language: C
" Maintainer: Bram Moolenaar <Bram@vim.org>
@@ -483,3 +485,5 @@ unlet s:ft
let &cpo = s:cpo_save
unlet s:cpo_save
" vim: ts=8
+
+endif
diff --git a/syntax/cabal.vim b/syntax/cabal.vim
index abe561a0..f0ede997 100644
--- a/syntax/cabal.vim
+++ b/syntax/cabal.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1
+
" Vim syntax file
" Language: Cabal
" Author: Tristan Ravitch
@@ -145,3 +147,5 @@ if version >= 508 || !exists('did_cabal_syntax_inits')
endif
let b:current_syntax = 'cabal'
+
+endif
diff --git a/syntax/clojure.vim b/syntax/clojure.vim
index e4348557..163e599d 100644
--- a/syntax/clojure.vim
+++ b/syntax/clojure.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'clojure') == -1
+
" Vim syntax file
" Language: Clojure
" Authors: Toralf Wittner <toralf.wittner@gmail.com>
@@ -214,3 +216,5 @@ highlight default link clojureParen Delimiter
let b:current_syntax = "clojure"
" vim:sts=8:sw=8:ts=8:noet
+
+endif
diff --git a/syntax/coffee.vim b/syntax/coffee.vim
index bfb252f5..8688a859 100644
--- a/syntax/coffee.vim
+++ b/syntax/coffee.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1
+
" Language: CoffeeScript
" Maintainer: Mick Koch <mick@kochm.co>
" URL: http://github.com/kchmck/vim-coffee-script
@@ -219,3 +221,5 @@ syn cluster coffeeAll contains=coffeeStatement,coffeeRepeat,coffeeConditional,
if !exists('b:current_syntax')
let b:current_syntax = 'coffee'
endif
+
+endif
diff --git a/syntax/cpp.vim b/syntax/cpp.vim
index 9ef2be4b..c1c6d442 100644
--- a/syntax/cpp.vim
+++ b/syntax/cpp.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'c/c++') == -1
+
" Vim syntax file
" Language: C++
" Current Maintainer: vim-jp (https://github.com/vim-jp/vim-cpp)
@@ -78,3 +80,5 @@ endif
let b:current_syntax = "cpp"
" vim: ts=8
+
+endif
diff --git a/syntax/css.vim b/syntax/css.vim
index 8212455b..b74cfc6f 100644
--- a/syntax/css.vim
+++ b/syntax/css.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'css') == -1
+
" Vim syntax file
" Language: Cascading Style Sheets
" Previous Contributor List:
@@ -669,3 +671,5 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: ts=8
+
+endif
diff --git a/syntax/cucumber.vim b/syntax/cucumber.vim
index f1ef2992..328d3912 100644
--- a/syntax/cucumber.vim
+++ b/syntax/cucumber.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cucumber') == -1
+
" Vim syntax file
" Language: Cucumber
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -140,3 +142,5 @@ let &cpo = s:keepcpo
unlet s:keepcpo
" vim:set sts=2 sw=2:
+
+endif
diff --git a/syntax/dockerfile.vim b/syntax/dockerfile.vim
index 60b395ea..b3a669cc 100644
--- a/syntax/dockerfile.vim
+++ b/syntax/dockerfile.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dockerfile') == -1
+
" dockerfile.vim - Syntax highlighting for Dockerfiles
" Maintainer: Honza Pokorny <http://honza.ca>
" Version: 0.5
@@ -29,3 +31,5 @@ syntax region dockerShSnip matchgroup=DockerShGroup start="^\s*\%(RUN\|CMD\)\s\+
highlight link DockerShGroup dockerfileKeyword
let b:current_syntax = "dockerfile"
+
+endif
diff --git a/syntax/eelixir.vim b/syntax/eelixir.vim
index f3ea65d4..6d940cb9 100644
--- a/syntax/eelixir.vim
+++ b/syntax/eelixir.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
+
" Vim syntax file
" Language: Embedded Elixir
" URL: https://github.com/elixir-lang/vim-elixir
@@ -64,3 +66,5 @@ if main_syntax == 'eelixir'
unlet main_syntax
endif
+
+endif
diff --git a/syntax/elixir.vim b/syntax/elixir.vim
index b481db9f..26374cf3 100644
--- a/syntax/elixir.vim
+++ b/syntax/elixir.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
+
" Vim syntax file
" Language: Elixir
" Maintainer: Carlos Galdino <carloshsgaldino@gmail.com>
@@ -188,3 +190,5 @@ hi def link elixirStringDelimiter Delimiter
hi def link elixirRegexDelimiter Delimiter
hi def link elixirInterpolationDelimiter Delimiter
hi def link elixirSigilDelimiter Delimiter
+
+endif
diff --git a/syntax/ember-script.vim b/syntax/ember-script.vim
index 1ede9d8e..87d6d05d 100644
--- a/syntax/ember-script.vim
+++ b/syntax/ember-script.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'emberscript') == -1
+
" Language: ember-script
" Maintainer: heartsentwined <heartsentwined@cogito-lab.com>
" URL: http://github.com/heartsentwined/vim-ember-script
@@ -29,3 +31,5 @@ syn match emEach /\v\@each/ display
hi def link emEach Special
let b:current_syntax = 'ember-script'
+
+endif
diff --git a/syntax/emblem.vim b/syntax/emblem.vim
index b5807c7e..584d72d9 100644
--- a/syntax/emblem.vim
+++ b/syntax/emblem.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'emblem') == -1
+
" Language: emblem
" Maintainer: heartsentwined <heartsentwined@cogito-lab.com>
" URL: http://github.com/heartsentwined/vim-emblem
@@ -154,3 +156,5 @@ hi def link eblId Constant
hi def link eblClass Identifier
let b:current_syntax = 'emblem'
+
+endif
diff --git a/syntax/erlang.vim b/syntax/erlang.vim
index 7f883559..fc24aab3 100644
--- a/syntax/erlang.vim
+++ b/syntax/erlang.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'erlang') == -1
+
" Vim syntax file
" Language: Erlang (http://www.erlang.org)
" Maintainer: Csaba Hoch <csaba.hoch@gmail.com>
@@ -269,3 +271,5 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: sw=2 et
+
+endif
diff --git a/syntax/eruby.vim b/syntax/eruby.vim
index 4e175bcc..e152e071 100644
--- a/syntax/eruby.vim
+++ b/syntax/eruby.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
+
" Vim syntax file
" Language: eRuby
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -72,3 +74,5 @@ if main_syntax == 'eruby'
endif
" vim: nowrap sw=2 sts=2 ts=8:
+
+endif
diff --git a/syntax/git.vim b/syntax/git.vim
index 48264c7b..964b0b8f 100644
--- a/syntax/git.vim
+++ b/syntax/git.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
+
" Vim syntax file
" Language: generic git output
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -76,3 +78,5 @@ hi def link gitDiffAdded diffAdded
hi def link gitDiffRemoved diffRemoved
let b:current_syntax = "git"
+
+endif
diff --git a/syntax/gitcommit.vim b/syntax/gitcommit.vim
index 5fc541e6..88dc19ea 100644
--- a/syntax/gitcommit.vim
+++ b/syntax/gitcommit.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
+
" Vim syntax file
" Language: git commit file
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -82,3 +84,5 @@ hi def link gitcommitArrow gitcommitComment
hi def link gitcommitBlank Error
let b:current_syntax = "gitcommit"
+
+endif
diff --git a/syntax/gitconfig.vim b/syntax/gitconfig.vim
index c6c56f77..49b992b0 100644
--- a/syntax/gitconfig.vim
+++ b/syntax/gitconfig.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
+
" Vim syntax file
" Language: git config file
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -36,3 +38,5 @@ hi def link gitconfigEscape Delimiter
hi def link gitconfigError Error
let b:current_syntax = "gitconfig"
+
+endif
diff --git a/syntax/gitrebase.vim b/syntax/gitrebase.vim
index 08464563..4fe38e88 100644
--- a/syntax/gitrebase.vim
+++ b/syntax/gitrebase.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
+
" Vim syntax file
" Language: git rebase --interactive
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -36,3 +38,5 @@ hi def link gitrebaseComment Comment
hi def link gitrebaseSquashError Error
let b:current_syntax = "gitrebase"
+
+endif
diff --git a/syntax/gitsendemail.vim b/syntax/gitsendemail.vim
index 3d7f1065..756f5da2 100644
--- a/syntax/gitsendemail.vim
+++ b/syntax/gitsendemail.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
+
" Vim syntax file
" Language: git send-email message
" Maintainer: Tim Pope
@@ -21,3 +23,5 @@ syn match gitsendemailComment "^GIT:.*"
hi def link gitsendemailComment Comment
let b:current_syntax = "gitsendemail"
+
+endif
diff --git a/syntax/go.vim b/syntax/go.vim
index 0c606ecc..fc0e7a8c 100644
--- a/syntax/go.vim
+++ b/syntax/go.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1
+
" Copyright 2009 The Go Authors. All rights reserved.
" Use of this source code is governed by a BSD-style
" license that can be found in the LICENSE file.
@@ -295,3 +297,5 @@ hi def link goBuildDirective PreProc
syn sync minlines=500
let b:current_syntax = "go"
+
+endif
diff --git a/syntax/godoc.vim b/syntax/godoc.vim
index 0fba2080..7fdd8337 100644
--- a/syntax/godoc.vim
+++ b/syntax/godoc.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1
+
" Copyright 2011 The Go Authors. All rights reserved.
" Use of this source code is governed by a BSD-style
" license that can be found in the LICENSE file.
@@ -45,3 +47,5 @@ syn sync minlines=500
let b:current_syntax = "godoc"
" vim:ts=4 sts=2 sw=2:
+
+endif
diff --git a/syntax/gohtmltmpl.vim b/syntax/gohtmltmpl.vim
index 5aa6c98d..b5e3ff76 100644
--- a/syntax/gohtmltmpl.vim
+++ b/syntax/gohtmltmpl.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1
+
if exists("b:current_syntax")
finish
endif
@@ -13,3 +15,5 @@ unlet b:current_syntax
let b:current_syntax = "gohtmltmpl"
" vim:ts=4:sw=4:et
+
+endif
diff --git a/syntax/gotexttmpl.vim b/syntax/gotexttmpl.vim
index 50b4653d..23cc8d0b 100644
--- a/syntax/gotexttmpl.vim
+++ b/syntax/gotexttmpl.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1
+
" Copyright 2011 The Go Authors. All rights reserved.
" Use of this source code is governed by a BSD-style
" license that can be found in the LICENSE file.
@@ -83,3 +85,5 @@ hi def link goTplComment Comment
let b:current_syntax = "gotexttmpl"
" vim:ts=4:sw=4:et
+
+endif
diff --git a/syntax/haml.vim b/syntax/haml.vim
index 4cc54caa..c1c407f0 100644
--- a/syntax/haml.vim
+++ b/syntax/haml.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1
+
" Vim syntax file
" Language: Haml
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -107,3 +109,5 @@ if main_syntax == "haml"
endif
" vim:set sw=2:
+
+endif
diff --git a/syntax/haskell.vim b/syntax/haskell.vim
index 8c890ee5..b8d91371 100644
--- a/syntax/haskell.vim
+++ b/syntax/haskell.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1
+
" Vim syntax file
" Language: Haskell
" Author: Tristan Ravitch
@@ -158,3 +160,5 @@ if version >= 508 || !exists('did_hs_syntax_inits')
endif
let b:current_syntax = "haskell"
+
+endif
diff --git a/syntax/haxe.vim b/syntax/haxe.vim
index ec950b94..c28e892d 100644
--- a/syntax/haxe.vim
+++ b/syntax/haxe.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haxe') == -1
+
" Vim syntax file
" Language: haxe
" Derived from:
@@ -425,3 +427,5 @@ if main_syntax == 'haxe'
unlet main_syntax
endif
let b:spell_options="contained"
+
+endif
diff --git a/syntax/html.vim b/syntax/html.vim
index 95aeb39e..abeb1490 100644
--- a/syntax/html.vim
+++ b/syntax/html.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
+
" Vim syntax file
" Language: HTML (version 5)
" Maintainer: Rodrigo Machado <rcmachado@gmail.com>
@@ -117,3 +119,5 @@ syn keyword htmlArg contained x x-height x1 x2 xChannelSelector xlink:actuate xl
syn keyword htmlArg contained y y1 y2 yChannelSelector
syn keyword htmlArg contained z zoomAndPan
syn keyword htmlArg contained alignment-baseline baseline-shift clip-path clip-rule clip color-interpolation-filters color-interpolation color-profile color-rendering color cursor direction display dominant-baseline enable-background fill-opacity fill-rule fill filter flood-color flood-opacity font-family font-size-adjust font-size font-stretch font-style font-variant font-weight glyph-orientation-horizontal glyph-orientation-vertical image-rendering kerning letter-spacing lighting-color marker-end marker-mid marker-start mask opacity overflow pointer-events shape-rendering stop-color stop-opacity stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width stroke text-anchor text-decoration text-rendering unicode-bidi visibility word-spacing writing-mode
+
+endif
diff --git a/syntax/html/aria.vim b/syntax/html/aria.vim
index 8fb67394..28cf34c0 100644
--- a/syntax/html/aria.vim
+++ b/syntax/html/aria.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
+
" Vim syntax file
" Language: WAI-ARIA
" Maintainer: othree <othree@gmail.com>
@@ -60,3 +62,5 @@ syn match htmlArg contained "\<aria-\%(\|dropeffect\|grabbed\)\>"
syn match htmlArg contained "\<aria-\%(\|activedescendant\|controls\|describedby\|flowto\)\>"
syn match htmlArg contained "\<aria-\%(\|labelledby\|owns\|posinset\|setsize\)\>"
+
+endif
diff --git a/syntax/html/rdfa.vim b/syntax/html/rdfa.vim
index ca529d32..3326a5df 100644
--- a/syntax/html/rdfa.vim
+++ b/syntax/html/rdfa.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
+
" Vim syntax file
" Language: RDFa
" Maintainer: othree <othree@gmail.com>
@@ -9,3 +11,5 @@
" RDFa
" http://www.w3.org/TR/rdfa-syntax/#s_syntax
syn keyword htmlArg contained about content datatype href inlist prefix property rel resource rev src typeof vocab
+
+endif
diff --git a/syntax/jade.vim b/syntax/jade.vim
index 6de6f112..c14ee69a 100644
--- a/syntax/jade.vim
+++ b/syntax/jade.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jade') == -1
+
" Vim syntax file
" Language: Jade
" Maintainer: Joshua Borton
@@ -100,3 +102,5 @@ let b:current_syntax = "jade"
if main_syntax == "jade"
unlet main_syntax
endif
+
+endif
diff --git a/syntax/jasmine.vim b/syntax/jasmine.vim
index 3a46a392..134b890b 100644
--- a/syntax/jasmine.vim
+++ b/syntax/jasmine.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jasmine') == -1
+
" Syntax highlighting for jasmine specs (used by http://github.com/thomd/vim-jasmine).
" if b:current_syntax is defined, some other syntax files, earlier in 'runtimepath' was already loaded
@@ -32,3 +34,5 @@ hi def link jasmineNot Special
hi def link jasmineMatcher Statement
hi def link jasmineSpy Special
hi def link jasmineSpyMatcher Statement
+
+endif
diff --git a/syntax/javascript.vim b/syntax/javascript.vim
index 1efe8c68..2d43c616 100644
--- a/syntax/javascript.vim
+++ b/syntax/javascript.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1
+
" Vim syntax file
" Language: JavaScript
" Maintainer: vim-javascript community
@@ -329,3 +331,5 @@ let b:current_syntax = "javascript"
if main_syntax == 'javascript'
unlet main_syntax
endif
+
+endif
diff --git a/syntax/javascript/html5.vim b/syntax/javascript/html5.vim
index eaf84298..f9462dee 100644
--- a/syntax/javascript/html5.vim
+++ b/syntax/javascript/html5.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
+
" Vim syntax file
" Language: HTML5 New Stuff
" Maintainer: othree <othree@gmail.com>
@@ -41,3 +43,5 @@ syn keyword javascriptDomElemAttrs videoWidth videoHeight poster
" drag and drop
syn keyword javascriptDomElemAttrs onDragStart onDragEnd onDragEnter onDragLeave onDragOver onDrag onDrop draggable dropzone
+
+endif
diff --git a/syntax/json.vim b/syntax/json.vim
index fbfbff4d..25989ead 100644
--- a/syntax/json.vim
+++ b/syntax/json.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'json') == -1
+
" Vim syntax file
" Language: JSON
" Maintainer: Eli Parra <eli@elzr.com> https://github.com/elzr/vim-json
@@ -117,3 +119,5 @@ endif
"The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
"THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"See https://twitter.com/elzr/status/294964017926119424
+
+endif
diff --git a/syntax/jst.vim b/syntax/jst.vim
index 8c43c525..be4b0c0c 100644
--- a/syntax/jst.vim
+++ b/syntax/jst.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jst') == -1
+
if exists("b:current_syntax")
finish
endif
@@ -85,3 +87,5 @@ if exists("loaded_matchit")
endif
" vim: nowrap sw=2 sts=2 ts=8:
+
+endif
diff --git a/syntax/julia.vim b/syntax/julia.vim
index 9dab3c86..1424b0cc 100644
--- a/syntax/julia.vim
+++ b/syntax/julia.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1
+
if exists("b:current_syntax")
finish
@@ -147,3 +149,5 @@ syn region ragelLine start="%%" end="$" contains=@ragel
let b:current_syntax = "julia"
+
+endif
diff --git a/syntax/latextoc.vim b/syntax/latextoc.vim
index 5709ed63..0faca708 100644
--- a/syntax/latextoc.vim
+++ b/syntax/latextoc.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
+
syntax match helpText /^.*: .*/
syntax match secNum /^\S\+\(\.\S\+\)\?\s*/ contained conceal
syntax match secLine /^\S\+\t.\+/ contains=secNum
@@ -7,3 +9,5 @@ highlight link helpText PreProc
highlight link secNum Number
highlight link mainSecLine Title
highlight link ssubSecLine Comment
+
+endif
diff --git a/syntax/less.vim b/syntax/less.vim
index 44bf470e..c856e6af 100644
--- a/syntax/less.vim
+++ b/syntax/less.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'less') == -1
+
if exists("b:current_syntax")
finish
endif
@@ -62,3 +64,5 @@ hi def link lessNestedProperty Type
hi def link lessClass PreProc
let b:current_syntax = "less"
+
+endif
diff --git a/syntax/liquid.vim b/syntax/liquid.vim
index a52c780d..fd09c7ce 100644
--- a/syntax/liquid.vim
+++ b/syntax/liquid.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'liquid') == -1
+
" Vim syntax file
" Language: Liquid
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -136,3 +138,5 @@ let b:current_syntax = 'liquid'
if exists('main_syntax') && main_syntax == 'liquid'
unlet main_syntax
endif
+
+endif
diff --git a/syntax/markdown.vim b/syntax/markdown.vim
index 49dbe3a7..b22bbf1b 100644
--- a/syntax/markdown.vim
+++ b/syntax/markdown.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'markdown') == -1
+
" Vim syntax file
" Language: Markdown
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -143,3 +145,5 @@ if main_syntax ==# 'markdown'
endif
" vim:set sw=2:
+
+endif
diff --git a/syntax/mason.vim b/syntax/mason.vim
index b4c03ae2..a7b2119a 100644
--- a/syntax/mason.vim
+++ b/syntax/mason.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
" Vim syntax file
" Language: Mason (Perl embedded in HTML)
" Maintainer: vim-perl <vim-perl@googlegroups.com>
@@ -107,3 +109,5 @@ let b:current_syntax = "mason"
if main_syntax == 'mason'
unlet main_syntax
endif
+
+endif
diff --git a/syntax/mustache.vim b/syntax/mustache.vim
index ec7d4fe5..ebedaee9 100644
--- a/syntax/mustache.vim
+++ b/syntax/mustache.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'handlebars') == -1
+
" Mustache & Handlebars syntax
" Language: Mustache, Handlebars
" Maintainer: Juvenn Woo <machese@gmail.com>
@@ -87,3 +89,5 @@ syn region mustacheScriptTemplate start=+<script [^>]*type *=[^>]*text/\(mustach
let b:current_syntax = "mustache"
delcommand HtmlHiLink
+
+endif
diff --git a/syntax/nginx.vim b/syntax/nginx.vim
index ccd47680..c9e01c11 100644
--- a/syntax/nginx.vim
+++ b/syntax/nginx.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nginx') == -1
+
" Vim syntax file
" Language: nginx.conf
@@ -662,3 +664,5 @@ hi link ngxDirective Identifier
hi link ngxDirectiveThirdParty Special
let b:current_syntax = "nginx"
+
+endif
diff --git a/syntax/ocaml.vim b/syntax/ocaml.vim
index e2abc552..a337f547 100644
--- a/syntax/ocaml.vim
+++ b/syntax/ocaml.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1
+
" Vim syntax file
" Language: OCaml
" Filenames: *.ml *.mli *.mll *.mly
@@ -329,3 +331,5 @@ endif
let b:current_syntax = "ocaml"
" vim: ts=8
+
+endif
diff --git a/syntax/octave.vim b/syntax/octave.vim
index 6a9c4744..3470afd1 100644
--- a/syntax/octave.vim
+++ b/syntax/octave.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'octave') == -1
+
" Vim syntax file
" Language: Octave
" Maintainer: Rik <rik@nomad.inbox5.com>
@@ -612,3 +614,5 @@ endif
let b:current_syntax = "octave"
"EOF vim: ts=8 noet tw=100 sw=8 sts=0
+
+endif
diff --git a/syntax/opencl.vim b/syntax/opencl.vim
index d5e0d5ac..b86e8eca 100644
--- a/syntax/opencl.vim
+++ b/syntax/opencl.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'opencl') == -1
+
" Vim syntax file
" Language: OpenCL (Open Computing Language)
" Maintainer: Terence Ou (rivan_@msn.com)
@@ -155,3 +157,5 @@ hi def link clStatement Statement
let b:current_syntax = "opencl"
" vim: ts=8
+
+endif
diff --git a/syntax/perl.vim b/syntax/perl.vim
index cffca6d6..e272d978 100644
--- a/syntax/perl.vim
+++ b/syntax/perl.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
" Vim syntax file
" Language: Perl 5
" Maintainer: vim-perl <vim-perl@googlegroups.com>
@@ -584,3 +586,5 @@ unlet s:cpo_save
" XXX Change to sts=4:sw=4
" vim:ts=8:sts=2:sw=2:expandtab:ft=vim
+
+endif
diff --git a/syntax/perl6.vim b/syntax/perl6.vim
index e5dda200..e77c7c3a 100644
--- a/syntax/perl6.vim
+++ b/syntax/perl6.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
" Vim syntax file
" Language: Perl 6
" Maintainer: vim-perl <vim-perl@googlegroups.com>
@@ -1959,3 +1961,5 @@ let &cpo = s:keepcpo
unlet s:keepcpo
" vim:ts=8:sts=4:sw=4:expandtab:ft=vim
+
+endif
diff --git a/syntax/php.vim b/syntax/php.vim
index fb1baf6a..fa9cad9f 100644
--- a/syntax/php.vim
+++ b/syntax/php.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'php') == -1
+
" Vim syntax file
" Language: PHP 5.3 & up
"
@@ -844,3 +846,5 @@ endif
" }}}
" vim: ts=8 sts=2 sw=2 fdm=marker expandtab
+
+endif
diff --git a/syntax/pod.vim b/syntax/pod.vim
index 094eff7d..c337de8f 100644
--- a/syntax/pod.vim
+++ b/syntax/pod.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
" Vim syntax file
" Language: Perl POD format
" Maintainer: vim-perl <vim-perl@googlegroups.com>
@@ -187,3 +189,5 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: ts=8
+
+endif
diff --git a/syntax/proto.vim b/syntax/proto.vim
index 23085a28..d53a9d4e 100644
--- a/syntax/proto.vim
+++ b/syntax/proto.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'protobuf') == -1
+
" Protocol Buffers - Google's data interchange format
" Copyright 2008 Google Inc. All rights reserved.
" https://developers.google.com/protocol-buffers/
@@ -103,3 +105,5 @@ if version >= 508 || !exists("did_proto_syn_inits")
endif
let b:current_syntax = "proto"
+
+endif
diff --git a/syntax/ps1.vim b/syntax/ps1.vim
index 5d0a3f57..e935d581 100644
--- a/syntax/ps1.vim
+++ b/syntax/ps1.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'powershell') == -1
+
" Vim syntax file
" Language: Windows PowerShell
" Maintainer: Peter Provost <peter@provost.org>
@@ -160,3 +162,5 @@ endif
let b:current_syntax = "ps1"
+
+endif
diff --git a/syntax/ps1xml.vim b/syntax/ps1xml.vim
index 02407f55..55c52d20 100644
--- a/syntax/ps1xml.vim
+++ b/syntax/ps1xml.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'powershell') == -1
+
" Vim syntax file
" Language: Windows PowerShell XML
" Maintainer: Peter Provost <peter@provost.org>
@@ -54,3 +56,5 @@ let b:current_syntax = "ps1xml"
let &cpo = s:ps1xml_cpo_save
unlet s:ps1xml_cpo_save
+
+endif
diff --git a/syntax/puppet.vim b/syntax/puppet.vim
index a979acae..d38e297e 100644
--- a/syntax/puppet.vim
+++ b/syntax/puppet.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
+
" puppet syntax file
" Filename: puppet.vim
" Language: puppet configuration file
@@ -164,3 +166,5 @@ if version >= 508 || !exists("did_puppet_syn_inits")
endif
let b:current_syntax = "puppet"
+
+endif
diff --git a/syntax/python.vim b/syntax/python.vim
index 7482d076..09912922 100644
--- a/syntax/python.vim
+++ b/syntax/python.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'python') == -1
+
" Vim syntax file
"
" Based on python.vim (from Vim 6.1 distribution)
@@ -319,3 +321,5 @@ if version >= 508 || !exists("did_python_syn_inits")
endif
let b:current_syntax = "python"
+
+endif
diff --git a/syntax/ragel.vim b/syntax/ragel.vim
index 67ade168..6f6ddf50 100644
--- a/syntax/ragel.vim
+++ b/syntax/ragel.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ragel') == -1
+
" Vim syntax file
"
" Language: Ragel
@@ -162,3 +164,5 @@ hi link caseLabelKeyword Keyword
hi link beginRL Type
let b:current_syntax = "ragel"
+
+endif
diff --git a/syntax/rhelp.vim b/syntax/rhelp.vim
index 80d243b2..ea4fca0d 100644
--- a/syntax/rhelp.vim
+++ b/syntax/rhelp.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'r-lang') == -1
+
" Vim syntax file
" Language: R Help File
" Maintainer: Johannes Ranke <jranke@uni-bremen.de>
@@ -153,3 +155,5 @@ endif
let b:current_syntax = "rhelp"
" vim: foldmethod=marker:
+
+endif
diff --git a/syntax/rnoweb.vim b/syntax/rnoweb.vim
index 201a7792..437c31cc 100644
--- a/syntax/rnoweb.vim
+++ b/syntax/rnoweb.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'r-lang') == -1
+
" Vim syntax file
" Language: R noweb Files
" Maintainer: Johannes Ranke <jranke@uni-bremen.de>
@@ -54,3 +56,5 @@ hi def link rnowebChunkReference Delimiter
let b:current_syntax = "rnoweb"
" vim: foldmethod=marker:
+
+endif
diff --git a/syntax/ruby.vim b/syntax/ruby.vim
index 5fd39aa3..3b141432 100644
--- a/syntax/ruby.vim
+++ b/syntax/ruby.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
+
" Vim syntax file
" Language: Ruby
" Maintainer: Doug Kearns <dougkearns@gmail.com>
@@ -390,3 +392,5 @@ hi def link rubySpaceError rubyError
let b:current_syntax = "ruby"
" vim: nowrap sw=2 sts=2 ts=8 noet:
+
+endif
diff --git a/syntax/rust.vim b/syntax/rust.vim
index a37b7b6d..47cb0154 100644
--- a/syntax/rust.vim
+++ b/syntax/rust.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
+
" Vim syntax file
" Language: Rust
" Maintainer: Patrick Walton <pcwalton@mozilla.com>
@@ -260,3 +262,5 @@ syn sync minlines=200
syn sync maxlines=500
let b:current_syntax = "rust"
+
+endif
diff --git a/syntax/sass.vim b/syntax/sass.vim
index 8fec5d03..b4df8a84 100644
--- a/syntax/sass.vim
+++ b/syntax/sass.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1
+
" Vim syntax file
" Language: Sass
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -104,3 +106,5 @@ hi def link sassClass Type
let b:current_syntax = "sass"
" vim:set sw=2:
+
+endif
diff --git a/syntax/sbt.vim b/syntax/sbt.vim
index 68dcd954..e82e64d4 100644
--- a/syntax/sbt.vim
+++ b/syntax/sbt.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'sbt') == -1
+
" Vim syntax file
" Language: sbt
" Maintainer: Derek Wyatt <derek@{myfirstname}{mylastname}.org>
@@ -31,3 +33,5 @@ hi link sbtSpecial Special
hi link sbtComment Comment
hi link sbtLineComment Comment
hi link sbtDocComment Comment
+
+endif
diff --git a/syntax/scala.vim b/syntax/scala.vim
index 2d727d08..674c57c4 100644
--- a/syntax/scala.vim
+++ b/syntax/scala.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1
+
" Vim syntax file
" Language: Scala
" Maintainer: Derek Wyatt
@@ -221,3 +223,5 @@ if main_syntax ==# 'scala'
endif
" vim:set sw=2 sts=2 ts=8 et:
+
+endif
diff --git a/syntax/scss.vim b/syntax/scss.vim
index 6fb96915..cb3e0fe9 100644
--- a/syntax/scss.vim
+++ b/syntax/scss.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1
+
" Vim syntax file
" Language: SCSS
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -18,3 +20,5 @@ hi def link scssComment sassComment
let b:current_syntax = "scss"
" vim:set sw=2:
+
+endif
diff --git a/syntax/slim.vim b/syntax/slim.vim
index b8d7b6a8..995186c5 100644
--- a/syntax/slim.vim
+++ b/syntax/slim.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'slim') == -1
+
" Vim syntax file
" Language: Slim
" Maintainer: Andrew Stone <andy@stonean.com>
@@ -100,3 +102,5 @@ hi def link slimWrappedAttrsDelimiter Delimiter
hi def link slimInlineTagChar Delimiter
let b:current_syntax = "slim"
+
+endif
diff --git a/syntax/solidity.vim b/syntax/solidity.vim
index 91a57e26..120db192 100644
--- a/syntax/solidity.vim
+++ b/syntax/solidity.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'solidity') == -1
+
" Vim syntax file
" Language: Solidity
" Maintainer: Tomlion (qycpublic@gmail.com)
@@ -75,3 +77,5 @@ syn region solComment start="/\*" end="\*/" contains=solCommentTodo,
hi def link solCommentTodo Comment
hi def link solLineComment Comment
hi def link solComment Comment
+
+endif
diff --git a/syntax/stylus.vim b/syntax/stylus.vim
index f3edaf28..6928c552 100644
--- a/syntax/stylus.vim
+++ b/syntax/stylus.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'stylus') == -1
+
" Vim syntax file
" Language: CSS3
" Maintainer: Hsiaoming Yang <lepture@me.com>
@@ -374,3 +376,5 @@ hi def link stylusIdChar Special
let b:current_syntax = "stylus"
" vim:set sw=2:
+
+endif
diff --git a/syntax/swift.vim b/syntax/swift.vim
index e3c3dd07..cbe46d35 100644
--- a/syntax/swift.vim
+++ b/syntax/swift.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'swift') == -1
+
" Language: Swift<https://developer.apple.com/swift/>
" Maintainer: toyama satoshi <toyamarinyon@gmail.com>
" URL: http://github.com/toyamarinyon/vim-swift
@@ -62,3 +64,5 @@ highlight default link swiftTypeIdentifier Type
if !exists('b:current_syntax')
let b:current_syntax = 'swift'
endif
+
+endif
diff --git a/syntax/systemd.vim b/syntax/systemd.vim
index d00cf7e2..a656e054 100644
--- a/syntax/systemd.vim
+++ b/syntax/systemd.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'systemd') == -1
+
" Filename: systemd.vim
" Purpose: Vim syntax file
" Language: systemd unit files
@@ -275,3 +277,5 @@ hi def link sdCapFlags Identifier
let b:current_syntax = "systemd"
" vim: fdm=marker
+
+endif
diff --git a/syntax/tap.vim b/syntax/tap.vim
index 51a56476..ab42a324 100644
--- a/syntax/tap.vim
+++ b/syntax/tap.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
" Vim syntax file
" Language: Verbose TAP Output
" Maintainer: Rufus Cable <rufus@threebytesfull.com>
@@ -95,3 +97,5 @@ if !exists("did_tapverboseoutput_syntax_inits")
endif
let b:current_syntax="tapVerboseOutput"
+
+endif
diff --git a/syntax/textile.vim b/syntax/textile.vim
index e9534e9b..d38cebf5 100644
--- a/syntax/textile.vim
+++ b/syntax/textile.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'textile') == -1
+
"
" You will have to restart vim for this to take effect. In any case
" it is a good idea to read ":he new-filetype" so that you know what
@@ -89,3 +91,5 @@ if version >= 508 || !exists("did_txt_syn_inits")
endif
" vim: set ai et sw=4 :
+
+endif
diff --git a/syntax/thrift.vim b/syntax/thrift.vim
index da8ebe2e..eb00f184 100644
--- a/syntax/thrift.vim
+++ b/syntax/thrift.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'thrift') == -1
+
" Vim syntax file
" Language: Thrift
" Maintainer: Martin Smith <martin@facebook.com>
@@ -96,3 +98,5 @@ endif
let b:current_syntax = "thrift"
+
+endif
diff --git a/syntax/tmux.vim b/syntax/tmux.vim
index a6bf74e2..0ceffd21 100644
--- a/syntax/tmux.vim
+++ b/syntax/tmux.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'tmux') == -1
+
" Vim syntax file
" Language: tmux(1) configuration file
" Maintainer: Tiago Cunha <tcunha@users.sourceforge.net>
@@ -287,3 +289,5 @@ hi def link tmuxVariable Constant
hi def link tmuxVariableExpansion Constant
let b:current_syntax = "tmux"
+
+endif
diff --git a/syntax/tomdoc.vim b/syntax/tomdoc.vim
index ad607cd1..a2b2e6e0 100644
--- a/syntax/tomdoc.vim
+++ b/syntax/tomdoc.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'tomdoc') == -1
+
syn keyword tomdocKeywords
\ Returns Yields Raises Examples Signature
\ containedin=.*Comment
@@ -16,3 +18,5 @@ syn match tomdocArguments
hi default link tomdocDescriptions String
hi default link tomdocKeywords String
hi default link tomdocArguments HELP
+
+endif
diff --git a/syntax/toml.vim b/syntax/toml.vim
index 1a1a2086..f5545803 100644
--- a/syntax/toml.vim
+++ b/syntax/toml.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'toml') == -1
+
" Language: TOML
" Maintainer: Caleb Spare <cespare@gmail.com>
" URL: http://github.com/cespare/vim-toml
@@ -51,3 +53,5 @@ syn match tomlComment /#.*/ contains=@Spell,tomlTodo
hi def link tomlComment Comment
let b:current_syntax = "toml"
+
+endif
diff --git a/syntax/tt2.vim b/syntax/tt2.vim
index 4f9f51c9..4f94834e 100644
--- a/syntax/tt2.vim
+++ b/syntax/tt2.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
" Language: TT2 (Perl Template Toolkit)
" Maintainer: vim-perl <vim-perl@googlegroups.com>
" Author: Moriki, Atsushi <4woods+vim@gmail.com>
@@ -208,3 +210,5 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim:ts=4:sw=4
+
+endif
diff --git a/syntax/tt2html.vim b/syntax/tt2html.vim
index ff1f0dcf..9d14c66d 100644
--- a/syntax/tt2html.vim
+++ b/syntax/tt2html.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
" Language: TT2 embedded with HTML
" Maintainer: vim-perl <vim-perl@googlegroups.com>
" Author: Moriki, Atsushi <4woods+vim@gmail.com>
@@ -18,3 +20,5 @@ unlet b:current_syntax
syn cluster htmlPreProc add=@tt2_top_cluster
let b:current_syntax = "tt2html"
+
+endif
diff --git a/syntax/tt2js.vim b/syntax/tt2js.vim
index 5c76ccce..06086280 100644
--- a/syntax/tt2js.vim
+++ b/syntax/tt2js.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
" Language: TT2 embedded with Javascript
" Maintainer: Andy Lester <andy@petdance.com>
" Author: Yates, Peter <pd.yates@gmail.com>
@@ -18,3 +20,5 @@ unlet b:current_syntax
syn cluster javascriptPreProc add=@tt2_top_cluster
let b:current_syntax = "tt2js"
+
+endif
diff --git a/syntax/twig.vim b/syntax/twig.vim
index af3c2659..1e4bc8fd 100644
--- a/syntax/twig.vim
+++ b/syntax/twig.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'twig') == -1
+
" Vim syntax file
" Language: Twig template
" Maintainer: Gabriel Gosselin <gabrielNOSPAM@evidens.ca>
@@ -107,3 +109,5 @@ endif
let b:current_syntax = "twig"
+
+endif
diff --git a/syntax/typescript.vim b/syntax/typescript.vim
index 5f249578..80757b4a 100644
--- a/syntax/typescript.vim
+++ b/syntax/typescript.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
+
" Vim syntax file
" Language: typescript
" Author: MicroSoft Open Technologies Inc.
@@ -326,3 +328,5 @@ if main_syntax == 'typescript'
endif
" vim: ts=4
+
+endif
diff --git a/syntax/vala.vim b/syntax/vala.vim
index 3700fb63..95836482 100644
--- a/syntax/vala.vim
+++ b/syntax/vala.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vala') == -1
+
" Vim syntax file
" Language: Vala
" Maintainers: Emmanuele Bassi <ebassi@gnome.org>
@@ -198,3 +200,5 @@ let &cpo = s:vala_cpo_save
unlet s:vala_cpo_save
" vim: ts=8
+
+endif
diff --git a/syntax/vbnet.vim b/syntax/vbnet.vim
index c78f5ca8..c60772dc 100644
--- a/syntax/vbnet.vim
+++ b/syntax/vbnet.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vbnet') == -1
+
" Vim syntax file
" Language: VB.NET
" Maintainer: Tim Pope <vim@rebelongto.us>
@@ -429,3 +431,5 @@ endif
let b:current_syntax = "vbnet"
" vim:set ft=vim sts=4 sw=4:
+
+endif
diff --git a/syntax/velocity.vim b/syntax/velocity.vim
index 9090b40a..01fff656 100644
--- a/syntax/velocity.vim
+++ b/syntax/velocity.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vm') == -1
+
" Vim syntax file
" Language: Velocity HTML template
" Maintainer: Hsiaoming Young <http://lepture.com>
@@ -65,3 +67,5 @@ if version >= 508 || !exists("did_velocity_syn_inits")
endif
let b:current_syntax = "velocity"
+
+endif
diff --git a/syntax/vimgo.vim b/syntax/vimgo.vim
index d62791d3..4dec0b43 100644
--- a/syntax/vimgo.vim
+++ b/syntax/vimgo.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1
+
if exists("b:current_syntax")
finish
endif
@@ -9,3 +11,5 @@ syn region goTitle start="\%1l" end=":"
hi def link goInterface Type
hi def link goTitle Label
+
+endif
diff --git a/syntax/xs.vim b/syntax/xs.vim
index 6fd0a468..fccb405f 100644
--- a/syntax/xs.vim
+++ b/syntax/xs.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
" Vim syntax file
" Language: XS (Perl extension interface language)
" Author: Autogenerated from perl headers, on an original basis of Michael W. Dodge <sarge@pobox.com>
@@ -3276,3 +3278,5 @@ endif
let b:current_syntax = "xs"
" vim: ts=8
+
+endif
diff --git a/syntax/xsl.vim b/syntax/xsl.vim
index 73359e51..0725324c 100644
--- a/syntax/xsl.vim
+++ b/syntax/xsl.vim
@@ -1,3 +1,5 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'xls') == -1
+
" Vim syntax file
" Language: XSLT 1.0
" with HTML, CSS, JavaScript, PerlScript, VBScript and MSXSL extention
@@ -535,3 +537,5 @@ let b:current_syntax = "xsl"
"unlet s:xml_cpo_save
" vim: ts=4:sw=4
+
+endif