summaryrefslogtreecommitdiffstats
path: root/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin')
-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
53 files changed, 212 insertions, 0 deletions
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