From 1597b7b766ee3999cdfea862af14999c37041d0e Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 4 Mar 2019 09:28:35 +0100 Subject: [PATCH] Change plugin guard for disabling, fixes #371 --- after/ftplugin/cabal.vim | 8 ++++---- after/ftplugin/coffee.vim | 8 ++++---- after/ftplugin/haskell.vim | 8 ++++---- after/ftplugin/javascript.vim | 8 ++++---- after/ftplugin/jsx.vim | 8 ++++---- after/ftplugin/puppet.vim | 8 ++++---- after/ftplugin/terraform.vim | 8 ++++---- after/ftplugin/yaml.vim | 8 ++++---- after/indent/html.vim | 8 ++++---- after/indent/jsx.vim | 8 ++++---- after/indent/objc.vim | 8 ++++---- after/syntax/c.vim | 8 ++++---- after/syntax/coffee.vim | 8 ++++---- after/syntax/cpp.vim | 8 ++++---- after/syntax/haml.vim | 8 ++++---- after/syntax/help.vim | 8 ++++---- after/syntax/html.vim | 26 ++++++++++++------------- after/syntax/javascript/graphql.vim | 8 ++++---- after/syntax/jsx.vim | 8 ++++---- after/syntax/mma.vim | 8 ++++---- after/syntax/objc.vim | 8 ++++---- after/syntax/rspec.vim | 8 ++++---- after/syntax/ruby.vim | 8 ++++---- after/syntax/rust.vim | 8 ++++---- after/syntax/tex.vim | 8 ++++---- after/syntax/typescript/graphql.vim | 8 ++++---- after/syntax/yaml.vim | 8 ++++---- autoload/LaTeXtoUnicode.vim | 8 ++++---- autoload/RstFold.vim | 8 ++++---- autoload/cargo.vim | 8 ++++---- autoload/cargo/quickfix.vim | 8 ++++---- autoload/clojurecomplete.vim | 8 ++++---- autoload/coffee.vim | 8 ++++---- autoload/crystal_lang.vim | 8 ++++---- autoload/dart.vim | 8 ++++---- autoload/elixir/indent.vim | 8 ++++---- autoload/elixir/util.vim | 8 ++++---- autoload/elm.vim | 8 ++++---- autoload/elm/util.vim | 8 ++++---- autoload/fish.vim | 8 ++++---- autoload/go/config.vim | 8 ++++---- autoload/htmlcomplete.vim | 8 ++++---- autoload/julia.vim | 8 ++++---- autoload/julia/doc.vim | 8 ++++---- autoload/julia_blocks.vim | 8 ++++---- autoload/julia_latex_symbols.vim | 8 ++++---- autoload/pony.vim | 8 ++++---- autoload/python/utils.vim | 8 ++++---- autoload/racket.vim | 8 ++++---- autoload/rubycomplete.vim | 8 ++++---- autoload/rust.vim | 8 ++++---- autoload/rust/debugging.vim | 8 ++++---- autoload/rust/delimitmate.vim | 8 ++++---- autoload/rustfmt.vim | 8 ++++---- autoload/scss_indent.vim | 8 ++++---- autoload/vifm/edit.vim | 8 ++++---- autoload/vifm/globals.vim | 8 ++++---- autoload/vital/_crystal.vim | 8 ++++---- autoload/vital/_crystal/ColorEcho.vim | 8 ++++---- autoload/vital/_crystal/Data/List.vim | 8 ++++---- autoload/vital/_crystal/Data/String.vim | 8 ++++---- autoload/vital/_crystal/Process.vim | 8 ++++---- autoload/vital/_crystal/Web/JSON.vim | 8 ++++---- autoload/vital/crystal.vim | 8 ++++---- autoload/vital/crystal.vital | 8 ++++---- autoload/xml/aria.vim | 8 ++++---- autoload/xml/html5.vim | 8 ++++---- compiler/cake.vim | 8 ++++---- compiler/cargo.vim | 8 ++++---- compiler/coffee.vim | 8 ++++---- compiler/credo.vim | 8 ++++---- compiler/cryptol.vim | 8 ++++---- compiler/cucumber.vim | 8 ++++---- compiler/eruby.vim | 8 ++++---- compiler/eslint.vim | 8 ++++---- compiler/exunit.vim | 8 ++++---- compiler/fish.vim | 8 ++++---- compiler/go.vim | 8 ++++---- compiler/haml.vim | 8 ++++---- compiler/ls.vim | 8 ++++---- compiler/mix.vim | 8 ++++---- compiler/nim.vim | 8 ++++---- compiler/nix-build.vim | 8 ++++---- compiler/python.vim | 8 ++++---- compiler/rake.vim | 8 ++++---- compiler/rspec.vim | 8 ++++---- compiler/ruby.vim | 8 ++++---- compiler/rubyunit.vim | 8 ++++---- compiler/rustc.vim | 8 ++++---- compiler/sbt.vim | 8 ++++---- compiler/typescript.vim | 8 ++++---- extras/flow.vim | 8 ++++---- extras/jsdoc.vim | 8 ++++---- extras/ngdoc.vim | 8 ++++---- ftplugin/Dockerfile.vim | 8 ++++---- ftplugin/ansible.vim | 8 ++++---- ftplugin/ansible_hosts.vim | 8 ++++---- ftplugin/blade.vim | 8 ++++---- ftplugin/caddyfile.vim | 8 ++++---- ftplugin/clojure.vim | 8 ++++---- ftplugin/coffee.vim | 8 ++++---- ftplugin/cryptol/folding.vim | 8 ++++---- ftplugin/crystal.vim | 8 ++++---- ftplugin/cucumber.vim | 8 ++++---- ftplugin/dart.vim | 8 ++++---- ftplugin/eelixir.vim | 8 ++++---- ftplugin/elixir.vim | 8 ++++---- ftplugin/elm.vim | 8 ++++---- ftplugin/elm/tagbar.vim | 8 ++++---- ftplugin/ember-script.vim | 8 ++++---- ftplugin/emblem.vim | 8 ++++---- ftplugin/eruby.vim | 8 ++++---- ftplugin/fish.vim | 8 ++++---- ftplugin/git.vim | 8 ++++---- ftplugin/gitcommit.vim | 8 ++++---- ftplugin/gitconfig.vim | 8 ++++---- ftplugin/gitrebase.vim | 8 ++++---- ftplugin/gitsendemail.vim | 8 ++++---- ftplugin/graphql.vim | 8 ++++---- ftplugin/haml.vim | 8 ++++---- ftplugin/html.vim | 8 ++++---- ftplugin/i3config.vim | 8 ++++---- ftplugin/json.vim | 8 ++++---- ftplugin/julia.vim | 8 ++++---- ftplugin/juliadoc.vim | 8 ++++---- ftplugin/kotlin.vim | 8 ++++---- ftplugin/latex-box/common.vim | 8 ++++---- ftplugin/latex-box/complete.vim | 8 ++++---- ftplugin/latex-box/findmain.vim | 8 ++++---- ftplugin/latex-box/folding.vim | 8 ++++---- ftplugin/latex-box/latexmk.vim | 8 ++++---- ftplugin/latex-box/mappings.vim | 8 ++++---- ftplugin/latex-box/motion.vim | 8 ++++---- ftplugin/latextoc.vim | 8 ++++---- ftplugin/less.vim | 8 ++++---- ftplugin/liquid.vim | 8 ++++---- ftplugin/litcoffee.vim | 8 ++++---- ftplugin/ls.vim | 8 ++++---- ftplugin/mail_vifm.vim | 8 ++++---- ftplugin/mako.vim | 8 ++++---- ftplugin/mma.vim | 8 ++++---- ftplugin/moon.vim | 8 ++++---- ftplugin/mustache.vim | 8 ++++---- ftplugin/nginx.vim | 8 ++++---- ftplugin/nix.vim | 8 ++++---- ftplugin/objc.vim | 8 ++++---- ftplugin/ocaml.vim | 8 ++++---- ftplugin/opencl.vim | 8 ++++---- ftplugin/org.vim | 8 ++++---- ftplugin/perl.vim | 8 ++++---- ftplugin/plantuml.vim | 8 ++++---- ftplugin/pony.vim | 8 ++++---- ftplugin/ps1.vim | 8 ++++---- ftplugin/ps1xml.vim | 8 ++++---- ftplugin/pug.vim | 8 ++++---- ftplugin/puppet.vim | 8 ++++---- ftplugin/purescript.vim | 8 ++++---- ftplugin/qml.vim | 8 ++++---- ftplugin/r.vim | 8 ++++---- ftplugin/racket.vim | 8 ++++---- ftplugin/raml.vim | 8 ++++---- ftplugin/rhelp.vim | 8 ++++---- ftplugin/rnoweb.vim | 8 ++++---- ftplugin/rst.vim | 8 ++++---- ftplugin/ruby.vim | 8 ++++---- ftplugin/rust.vim | 8 ++++---- ftplugin/rust/tagbar.vim | 8 ++++---- ftplugin/scala.vim | 8 ++++---- ftplugin/scala.xpt.vim | 8 ++++---- ftplugin/scala/tagbar.vim | 8 ++++---- ftplugin/scss.vim | 8 ++++---- ftplugin/slim.vim | 8 ++++---- ftplugin/solidity.vim | 8 ++++---- ftplugin/stylus.vim | 8 ++++---- ftplugin/swift.vim | 8 ++++---- ftplugin/terraform.vim | 8 ++++---- ftplugin/tex_LatexBox.vim | 8 ++++---- ftplugin/textile.vim | 8 ++++---- ftplugin/tmux.vim | 8 ++++---- ftplugin/toml.vim | 8 ++++---- ftplugin/tt2html.vim | 8 ++++---- ftplugin/twig.vim | 8 ++++---- ftplugin/typescript.vim | 8 ++++---- ftplugin/vifm-cmdedit.vim | 8 ++++---- ftplugin/vifm-edit.vim | 8 ++++---- ftplugin/vifm-rename.vim | 8 ++++---- ftplugin/vifm.vim | 8 ++++---- ftplugin/vue.vim | 8 ++++---- ftplugin/xs.vim | 8 ++++---- indent/Dockerfile.vim | 8 ++++---- indent/Jenkinsfile.vim | 8 ++++---- indent/ansible.vim | 8 ++++---- indent/applescript.vim | 8 ++++---- indent/arduino.vim | 8 ++++---- indent/autohotkey.vim | 8 ++++---- indent/blade.vim | 8 ++++---- indent/cabal.vim | 8 ++++---- indent/caddyfile.vim | 8 ++++---- indent/clojure.vim | 8 ++++---- indent/cmake.vim | 8 ++++---- indent/coffee.vim | 8 ++++---- indent/crystal.vim | 8 ++++---- indent/cucumber.vim | 8 ++++---- indent/cython.vim | 8 ++++---- indent/dart.vim | 8 ++++---- indent/eelixir.vim | 8 ++++---- indent/elixir.vim | 8 ++++---- indent/elm.vim | 8 ++++---- indent/ember-script.vim | 8 ++++---- indent/emblem.vim | 8 ++++---- indent/erlang.vim | 8 ++++---- indent/eruby.vim | 8 ++++---- indent/fish.vim | 8 ++++---- indent/fsharp.vim | 8 ++++---- indent/gitconfig.vim | 8 ++++---- indent/glsl.vim | 8 ++++---- indent/go.vim | 8 ++++---- indent/gohtmltmpl.vim | 8 ++++---- indent/graphql.vim | 8 ++++---- indent/haml.vim | 8 ++++---- indent/handlebars.vim | 8 ++++---- indent/haskell.vim | 8 ++++---- indent/html.vim | 8 ++++---- indent/javascript.vim | 8 ++++---- indent/json.vim | 8 ++++---- indent/jst.vim | 8 ++++---- indent/julia.vim | 8 ++++---- indent/kotlin.vim | 8 ++++---- indent/less.vim | 9 +++++---- indent/liquid.vim | 8 ++++---- indent/litcoffee.vim | 8 ++++---- indent/ls.vim | 8 ++++---- indent/lua.vim | 8 ++++---- indent/mako.vim | 8 ++++---- indent/markdown.vim | 8 ++++---- indent/moon.vim | 8 ++++---- indent/nginx.vim | 8 ++++---- indent/nim.vim | 8 ++++---- indent/nix.vim | 8 ++++---- indent/ocaml.vim | 8 ++++---- indent/opencl.vim | 8 ++++---- indent/org.vim | 8 ++++---- indent/perl.vim | 8 ++++---- indent/plantuml.vim | 8 ++++---- indent/pony.vim | 8 ++++---- indent/proto.vim | 8 ++++---- indent/ps1.vim | 8 ++++---- indent/pug.vim | 8 ++++---- indent/puppet.vim | 8 ++++---- indent/purescript.vim | 8 ++++---- indent/python.vim | 8 ++++---- indent/qml.vim | 8 ++++---- indent/racket.vim | 8 ++++---- indent/ruby.vim | 8 ++++---- indent/rust.vim | 8 ++++---- indent/scala.vim | 8 ++++---- indent/slim.vim | 8 ++++---- indent/slime.vim | 8 ++++---- indent/solidity.vim | 8 ++++---- indent/stylus.vim | 8 ++++---- indent/swift.vim | 8 ++++---- indent/terraform.vim | 8 ++++---- indent/tex.vim | 8 ++++---- indent/twig.vim | 8 ++++---- indent/typescript.vim | 8 ++++---- indent/vala.vim | 8 ++++---- indent/velocity.vim | 8 ++++---- indent/vue.vim | 8 ++++---- plugin_guard.vim.template | 8 ++++---- syntax/Jenkinsfile.vim | 8 ++++---- syntax/ansible.vim | 8 ++++---- syntax/ansible_hosts.vim | 8 ++++---- syntax/apiblueprint.vim | 8 ++++---- syntax/applescript.vim | 8 ++++---- syntax/arduino.vim | 8 ++++---- syntax/asciidoc.vim | 8 ++++---- syntax/blade.vim | 8 ++++---- syntax/c.vim | 8 ++++---- syntax/cabal.vim | 8 ++++---- syntax/caddyfile.vim | 8 ++++---- syntax/carp.vim | 8 ++++---- syntax/clojure.vim | 8 ++++---- syntax/cmake.vim | 8 ++++---- syntax/coffee.vim | 8 ++++---- syntax/cpp.vim | 8 ++++---- syntax/cql.vim | 8 ++++---- syntax/cryptol.vim | 8 ++++---- syntax/crystal.vim | 8 ++++---- syntax/cucumber.vim | 8 ++++---- syntax/dart.vim | 8 ++++---- syntax/docker-compose.vim | 8 ++++---- syntax/dockerfile.vim | 8 ++++---- syntax/eelixir.vim | 8 ++++---- syntax/elixir.vim | 8 ++++---- syntax/elm.vim | 8 ++++---- syntax/ember-script.vim | 8 ++++---- syntax/emblem.vim | 8 ++++---- syntax/erlang.vim | 8 ++++---- syntax/eruby.vim | 8 ++++---- syntax/ferm.vim | 8 ++++---- syntax/fish.vim | 8 ++++---- syntax/fsharp.vim | 8 ++++---- syntax/git.vim | 8 ++++---- syntax/gitcommit.vim | 8 ++++---- syntax/gitconfig.vim | 8 ++++---- syntax/gitrebase.vim | 8 ++++---- syntax/gitsendemail.vim | 8 ++++---- syntax/glsl.vim | 8 ++++---- syntax/gmpl.vim | 8 ++++---- syntax/gnuplot.vim | 8 ++++---- syntax/go.vim | 8 ++++---- syntax/godebugoutput.vim | 8 ++++---- syntax/godebugstacktrace.vim | 8 ++++---- syntax/godebugvariables.vim | 8 ++++---- syntax/godefstack.vim | 8 ++++---- syntax/gohtmltmpl.vim | 8 ++++---- syntax/gomod.vim | 8 ++++---- syntax/gotexttmpl.vim | 8 ++++---- syntax/graphql.vim | 8 ++++---- syntax/groovy.vim | 8 ++++---- syntax/haml.vim | 8 ++++---- syntax/haproxy.vim | 8 ++++---- syntax/haskell.vim | 8 ++++---- syntax/haxe.vim | 8 ++++---- syntax/html.vim | 8 ++++---- syntax/html/aria.vim | 8 ++++---- syntax/html/electron.vim | 8 ++++---- syntax/html/rdfa.vim | 8 ++++---- syntax/i3config.vim | 8 ++++---- syntax/jasmine.vim | 8 ++++---- syntax/javascript.vim | 8 ++++---- syntax/javascript/html5.vim | 8 ++++---- syntax/jinja2.vim | 8 ++++---- syntax/json.vim | 8 ++++---- syntax/json5.vim | 8 ++++---- syntax/jst.vim | 8 ++++---- syntax/julia.vim | 8 ++++---- syntax/juliadoc.vim | 8 ++++---- syntax/kotlin.vim | 8 ++++---- syntax/latextoc.vim | 8 ++++---- syntax/less.vim | 8 ++++---- syntax/liquid.vim | 8 ++++---- syntax/litcoffee.vim | 8 ++++---- syntax/ls.vim | 8 ++++---- syntax/lua.vim | 8 ++++---- syntax/mako.vim | 8 ++++---- syntax/markdown.vim | 8 ++++---- syntax/mason.vim | 8 ++++---- syntax/mma.vim | 8 ++++---- syntax/moon.vim | 8 ++++---- syntax/mustache.vim | 8 ++++---- syntax/nginx.vim | 8 ++++---- syntax/nim.vim | 8 ++++---- syntax/nix.vim | 8 ++++---- syntax/ocaml.vim | 8 ++++---- syntax/octave.vim | 8 ++++---- syntax/opencl.vim | 8 ++++---- syntax/org.vim | 8 ++++---- syntax/orgagenda.vim | 8 ++++---- syntax/orgtodo.vim | 8 ++++---- syntax/perl.vim | 8 ++++---- syntax/pgsql.vim | 8 ++++---- syntax/php.vim | 8 ++++---- syntax/plantuml.vim | 8 ++++---- syntax/pod.vim | 8 ++++---- syntax/pony.vim | 8 ++++---- syntax/proto.vim | 8 ++++---- syntax/ps1.vim | 8 ++++---- syntax/ps1xml.vim | 8 ++++---- syntax/pug.vim | 8 ++++---- syntax/puppet.vim | 8 ++++---- syntax/purescript.vim | 8 ++++---- syntax/python.vim | 8 ++++---- syntax/qml.vim | 8 ++++---- syntax/racket.vim | 8 ++++---- syntax/ragel.vim | 8 ++++---- syntax/raml.vim | 8 ++++---- syntax/rhelp.vim | 8 ++++---- syntax/rnoweb.vim | 8 ++++---- syntax/rst.vim | 8 ++++---- syntax/ruby.vim | 8 ++++---- syntax/rust.vim | 8 ++++---- syntax/sbt.vim | 8 ++++---- syntax/scala.vim | 8 ++++---- syntax/scss.vim | 8 ++++---- syntax/slim.vim | 8 ++++---- syntax/slime.vim | 8 ++++---- syntax/solidity.vim | 8 ++++---- syntax/stylus.vim | 8 ++++---- syntax/swift.vim | 8 ++++---- syntax/sxhkdrc.vim | 8 ++++---- syntax/systemd.vim | 8 ++++---- syntax/tap.vim | 8 ++++---- syntax/terraform.vim | 8 ++++---- syntax/textile.vim | 8 ++++---- syntax/thrift.vim | 8 ++++---- syntax/tmux.vim | 8 ++++---- syntax/tomdoc.vim | 8 ++++---- syntax/toml.vim | 8 ++++---- syntax/tt2.vim | 8 ++++---- syntax/tt2html.vim | 8 ++++---- syntax/tt2js.vim | 8 ++++---- syntax/twig.vim | 8 ++++---- syntax/typescript.vim | 8 ++++---- syntax/vala.vim | 8 ++++---- syntax/vbnet.vim | 8 ++++---- syntax/vcl.vim | 8 ++++---- syntax/velocity.vim | 8 ++++---- syntax/vifm.vim | 8 ++++---- syntax/vimgo.vim | 8 ++++---- syntax/vue.vim | 8 ++++---- syntax/xs.vim | 8 ++++---- syntax/xsl.vim | 8 ++++---- 413 files changed, 1662 insertions(+), 1661 deletions(-) diff --git a/after/ftplugin/cabal.vim b/after/ftplugin/cabal.vim index 17bca8f..3c66372 100644 --- a/after/ftplugin/cabal.vim +++ b/after/ftplugin/cabal.vim @@ -1,7 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'haskell') != -1 + finish +endif + setlocal comments=s1fl:{-,mb:-,ex:-},:-- setlocal iskeyword+=-,.,* setlocal commentstring=--\ %s - -endif diff --git a/after/ftplugin/coffee.vim b/after/ftplugin/coffee.vim index 9c8f584..2060d27 100644 --- a/after/ftplugin/coffee.vim +++ b/after/ftplugin/coffee.vim @@ -1,9 +1,9 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cjsx') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'cjsx') != -1 + finish +endif + 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 9fa505f..2d3d6b3 100644 --- a/after/ftplugin/haskell.vim +++ b/after/ftplugin/haskell.vim @@ -1,6 +1,6 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'haskell') != -1 + finish +endif + setlocal comments=s1fl:{-,mb:\ \ ,ex:-},:-- setlocal iskeyword+=' - -endif diff --git a/after/ftplugin/javascript.vim b/after/ftplugin/javascript.vim index e921498..9efbb8d 100644 --- a/after/ftplugin/javascript.vim +++ b/after/ftplugin/javascript.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'javascript') != -1 + finish +endif + " Vim filetype plugin file " Language: JavaScript " Maintainer: vim-javascript community @@ -12,5 +14,3 @@ if exists('b:undo_ftplugin') else let b:undo_ftplugin = 'setlocal iskeyword< suffixesadd<' endif - -endif diff --git a/after/ftplugin/jsx.vim b/after/ftplugin/jsx.vim index 380d476..1217382 100644 --- a/after/ftplugin/jsx.vim +++ b/after/ftplugin/jsx.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jsx') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'jsx') != -1 + finish +endif + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Vim ftplugin file " @@ -19,5 +21,3 @@ if exists("loaded_matchit") endif setlocal suffixesadd+=.jsx - -endif diff --git a/after/ftplugin/puppet.vim b/after/ftplugin/puppet.vim index 574fee2..1265038 100644 --- a/after/ftplugin/puppet.vim +++ b/after/ftplugin/puppet.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'puppet') != -1 + finish +endif + if !exists('g:puppet_align_hashes') let g:puppet_align_hashes = 1 endif @@ -16,5 +18,3 @@ if g:puppet_align_hashes && exists(':Tabularize') call search(repeat('\([^=]\|=[^>]\)*=>',column).'\s\{-\}'.repeat('.',position),'ce',line('.')) endfunction endif - -endif diff --git a/after/ftplugin/terraform.vim b/after/ftplugin/terraform.vim index 48ae0f2..610fd90 100644 --- a/after/ftplugin/terraform.vim +++ b/after/ftplugin/terraform.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'terraform') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'terraform') != -1 + finish +endif + if !exists('g:terraform_align') let g:terraform_align = 0 endif @@ -81,5 +83,3 @@ if exists('g:terraform_commentstring') else setlocal commentstring=#%s endif - -endif diff --git a/after/ftplugin/yaml.vim b/after/ftplugin/yaml.vim index 047641d..a6b6d19 100644 --- a/after/ftplugin/yaml.vim +++ b/after/ftplugin/yaml.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'yaml') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'yaml') != -1 + finish +endif + " Vim indent file " Language: Yaml " Author: Henrique Barcelos @@ -7,5 +9,3 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'yaml') == -1 " URL: https://github.com/hjpbarcelos setlocal autoindent sw=2 ts=2 expandtab " vim:set sw=2: - -endif diff --git a/after/indent/html.vim b/after/indent/html.vim index 47da18f..d6c1e81 100644 --- a/after/indent/html.vim +++ b/after/indent/html.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'coffee-script') != -1 + finish +endif + " Language: CoffeeScript " Maintainer: Mick Koch " URL: http://github.com/kchmck/vim-coffee-script @@ -33,5 +35,3 @@ 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 dc244d8..35df1f5 100644 --- a/after/indent/jsx.vim +++ b/after/indent/jsx.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jsx') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'jsx') != -1 + finish +endif + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Vim indent file " @@ -114,5 +116,3 @@ fu! GetJsxIndent() return ind endfu - -endif diff --git a/after/indent/objc.vim b/after/indent/objc.vim index 64c7e79..1bcc217 100644 --- a/after/indent/objc.vim +++ b/after/indent/objc.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'objc') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'objc') != -1 + finish +endif + " Vim indent file " Language: Objective-C " Maintainer: Bjorn Winckler @@ -93,5 +95,3 @@ endfunction " Restore 'cpo' options let &cpo = s:save_cpo unlet s:save_cpo - -endif diff --git a/after/syntax/c.vim b/after/syntax/c.vim index 304a351..4b80173 100644 --- a/after/syntax/c.vim +++ b/after/syntax/c.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'c++11') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'c++11') != -1 + finish +endif + " Vim syntax file " Language: C Additions " Maintainer: Jon Haggblad @@ -304,5 +306,3 @@ 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 b77c12b..4ee795f 100644 --- a/after/syntax/coffee.vim +++ b/after/syntax/coffee.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cjsx') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'cjsx') != -1 + finish +endif + if exists('b:current_syntax') let s:current_syntax=b:current_syntax unlet b:current_syntax @@ -27,5 +29,3 @@ 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 1e3f078..01108d5 100644 --- a/after/syntax/cpp.vim +++ b/after/syntax/cpp.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'c++11') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'c++11') != -1 + finish +endif + " Vim syntax file " Language: C++ Additions " Maintainer: Jon Haggblad @@ -2092,5 +2094,3 @@ if version >= 508 || !exists("did_cpp_syntax_inits") HiLink cppRawDelimiter Delimiter delcommand HiLink endif - -endif diff --git a/after/syntax/haml.vim b/after/syntax/haml.vim index 5128f7e..da2ea2b 100644 --- a/after/syntax/haml.vim +++ b/after/syntax/haml.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'coffee-script') != -1 + finish +endif + " Language: CoffeeScript " Maintainer: Sven Felix Oberquelle " URL: http://github.com/kchmck/vim-coffee-script @@ -23,5 +25,3 @@ if exists('s:current_syntax_save') let b:current_syntax = s:current_syntax_save unlet s:current_syntax_save endif - -endif diff --git a/after/syntax/help.vim b/after/syntax/help.vim index 58b7994..a4bc0bc 100644 --- a/after/syntax/help.vim +++ b/after/syntax/help.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'scala') != -1 + finish +endif + " Extends standard help syntax with highlighting of Scala code. " " Place code between !sc! and !/sc! delimiters. These will be hidden if Vim is @@ -14,5 +16,3 @@ 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 43c0c41..a324db1 100644 --- a/after/syntax/html.vim +++ b/after/syntax/html.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'coffee-script') != -1 + finish +endif + " Language: CoffeeScript " Maintainer: Mick Koch " URL: http://github.com/kchmck/vim-coffee-script @@ -20,10 +22,10 @@ if exists('s:current_syntax_save') let b:current_syntax = s:current_syntax_save unlet s:current_syntax_save endif - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'glsl') != -1 + finish endif -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'glsl') == -1 - + " Language: OpenGL Shading Language " Maintainer: Sergey Tikhomirov @@ -33,10 +35,10 @@ syn region ShaderScript \ keepend \ end=""me=s-1 \ contains=@GLSL,htmlScriptTag,@htmlPreproc - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'html5') != -1 + finish endif -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 - + " Vim syntax file " Language: HTML (version 5.1) " Last Change: 2017 Feb 15 @@ -49,10 +51,10 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 " https://github.com/w3c/html/issues/694 syntax region htmlComment start=++ contains=@Spell syntax region htmlComment start=++ - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'less') != -1 + finish 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 @@ -79,5 +81,3 @@ syn region lessStyle start=+