From 48e07bc5014fecfdff24f75124a65634c216c9e2 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Fri, 6 Sep 2019 15:54:31 +0200 Subject: Improve guard to support concatenated files --- after/autoload/styledcomplete.vim | 6 ++---- after/ftplugin/cabal.vim | 6 ++---- after/ftplugin/coffee.vim | 6 ++---- after/ftplugin/haskell.vim | 6 ++---- after/ftplugin/idris.vim | 6 ++---- after/ftplugin/javascript.vim | 14 ++++---------- after/ftplugin/llvm.vim | 6 ++---- after/ftplugin/puppet.vim | 6 ++---- after/ftplugin/typescript.vim | 10 +++------- after/ftplugin/yaml.vim | 6 ++---- after/indent/javascript.vim | 10 +++------- after/indent/jsx.vim | 6 ++---- after/indent/objc.vim | 6 ++---- after/indent/typescript.vim | 10 +++------- after/syntax/c.vim | 6 ++---- after/syntax/coffee.vim | 6 ++---- after/syntax/cpp.vim | 6 ++---- after/syntax/haskell.vim | 6 ++---- after/syntax/help.vim | 6 ++---- after/syntax/html.vim | 6 ++---- after/syntax/idris.vim | 6 ++---- after/syntax/javascript.vim | 10 +++------- after/syntax/javascript/graphql.vim | 6 ++---- after/syntax/jsx_pretty.vim | 6 ++---- after/syntax/llvm.vim | 6 ++---- after/syntax/mdx.vim | 6 ++---- after/syntax/mma.vim | 6 ++---- after/syntax/objc.vim | 6 ++---- after/syntax/reason.vim | 4 +--- after/syntax/rspec.vim | 6 ++---- after/syntax/ruby.vim | 6 ++---- after/syntax/rust.vim | 6 ++---- after/syntax/tex.vim | 6 ++---- after/syntax/typescript.vim | 10 +++------- after/syntax/typescript/graphql.vim | 6 ++---- after/syntax/yaml.vim | 6 ++---- autoload/LaTeXtoUnicode.vim | 6 ++---- autoload/RstFold.vim | 6 ++---- autoload/cargo.vim | 6 ++---- autoload/cargo/quickfix.vim | 6 ++---- autoload/clojurecomplete.vim | 6 ++---- autoload/coffee.vim | 6 ++---- autoload/crystal_lang.vim | 6 ++---- autoload/csv.vim | 6 ++---- autoload/dart.vim | 6 ++---- autoload/db/adapter/ecto.vim | 6 ++---- autoload/elixir/indent.vim | 6 ++---- autoload/elixir/util.vim | 6 ++---- autoload/elm.vim | 6 ++---- autoload/elm/util.vim | 6 ++---- autoload/fish.vim | 6 ++---- autoload/go/config.vim | 6 ++---- autoload/graphql.vim | 6 ++---- autoload/htmlcomplete.vim | 6 ++---- autoload/jsx_pretty/comment.vim | 6 ++---- autoload/jsx_pretty/indent.vim | 6 ++---- autoload/julia.vim | 6 ++---- autoload/julia/doc.vim | 6 ++---- autoload/julia_blocks.vim | 6 ++---- autoload/julia_latex_symbols.vim | 6 ++---- autoload/pony.vim | 6 ++---- autoload/puppet/align.vim | 6 ++---- autoload/puppet/ctags.vim | 6 ++---- autoload/puppet/format.vim | 6 ++---- autoload/python/utils.vim | 6 ++---- autoload/rubycomplete.vim | 6 ++---- autoload/rust.vim | 6 ++---- autoload/rust/debugging.vim | 6 ++---- autoload/rust/delimitmate.vim | 6 ++---- autoload/rust/tags.vim | 6 ++---- autoload/rustfmt.vim | 6 ++---- autoload/smt2.vim | 6 ++---- autoload/terraform.vim | 6 ++---- autoload/vifm/edit.vim | 6 ++---- autoload/vifm/globals.vim | 6 ++---- autoload/vital/_crystal.vim | 6 ++---- autoload/vital/_crystal/ColorEcho.vim | 6 ++---- autoload/vital/_crystal/Data/List.vim | 6 ++---- autoload/vital/_crystal/Data/String.vim | 6 ++---- autoload/vital/_crystal/Process.vim | 6 ++---- autoload/vital/_crystal/Web/JSON.vim | 6 ++---- autoload/vital/crystal.vim | 6 ++---- autoload/vital/crystal.vital | 6 ++---- autoload/xml/aria.vim | 6 ++---- autoload/xml/html5.vim | 6 ++---- autoload/zig/config.vim | 6 ++---- autoload/zig/fmt.vim | 6 ++---- autoload/zig/list.vim | 6 ++---- autoload/zig/util.vim | 6 ++---- compiler/cake.vim | 6 ++---- compiler/cargo.vim | 6 ++---- compiler/coffee.vim | 6 ++---- compiler/credo.vim | 6 ++---- compiler/cryptol.vim | 6 ++---- compiler/cucumber.vim | 6 ++---- compiler/eruby.vim | 6 ++---- compiler/eslint.vim | 6 ++---- compiler/exunit.vim | 6 ++---- compiler/fish.vim | 6 ++---- compiler/go.vim | 6 ++---- compiler/gradle.vim | 6 ++---- compiler/gradlew.vim | 6 ++---- compiler/haml.vim | 6 ++---- compiler/lilypond.vim | 6 ++---- compiler/ls.vim | 6 ++---- compiler/mix.vim | 6 ++---- compiler/nim.vim | 6 ++---- compiler/nix-build.vim | 6 ++---- compiler/ocaml.vim | 6 ++---- compiler/python.vim | 6 ++---- compiler/rake.vim | 6 ++---- compiler/rspec.vim | 6 ++---- compiler/ruby.vim | 6 ++---- compiler/rubyunit.vim | 6 ++---- compiler/rustc.vim | 6 ++---- compiler/sbt.vim | 6 ++---- compiler/typescript.vim | 6 ++---- extras/flow.vim | 6 ++---- extras/jsdoc.vim | 6 ++---- extras/ngdoc.vim | 6 ++---- ftplugin/Dockerfile.vim | 6 ++---- ftplugin/ansible.vim | 6 ++---- ftplugin/ansible_hosts.vim | 6 ++---- ftplugin/blade.vim | 6 ++---- ftplugin/caddyfile.vim | 6 ++---- ftplugin/clojure.vim | 6 ++---- ftplugin/coffee.vim | 6 ++---- ftplugin/cryptol/folding.vim | 6 ++---- ftplugin/crystal.vim | 6 ++---- ftplugin/csv.vim | 6 ++---- ftplugin/cucumber.vim | 6 ++---- ftplugin/dart.vim | 6 ++---- ftplugin/dhall.vim | 6 ++---- ftplugin/docker-compose.vim | 6 ++---- ftplugin/eelixir.vim | 6 ++---- ftplugin/elixir.vim | 6 ++---- ftplugin/elm.vim | 6 ++---- ftplugin/elm/tagbar.vim | 6 ++---- ftplugin/ember-script.vim | 6 ++---- ftplugin/emblem.vim | 6 ++---- ftplugin/eruby.vim | 6 ++---- ftplugin/fish.vim | 6 ++---- ftplugin/git.vim | 6 ++---- ftplugin/gitcommit.vim | 6 ++---- ftplugin/gitconfig.vim | 6 ++---- ftplugin/gitrebase.vim | 6 ++---- ftplugin/gitsendemail.vim | 6 ++---- ftplugin/graphql.vim | 6 ++---- ftplugin/haml.vim | 6 ++---- ftplugin/hcl.vim | 6 ++---- ftplugin/hive.vim | 6 ++---- ftplugin/html.vim | 6 ++---- ftplugin/i3config.vim | 6 ++---- ftplugin/idris.vim | 6 ++---- ftplugin/ion.vim | 6 ++---- ftplugin/jbuild.vim | 6 ++---- ftplugin/json.vim | 6 ++---- ftplugin/julia.vim | 6 ++---- ftplugin/juliadoc.vim | 6 ++---- ftplugin/kotlin.vim | 6 ++---- ftplugin/latex-box/common.vim | 6 ++---- ftplugin/latex-box/complete.vim | 6 ++---- ftplugin/latex-box/findmain.vim | 6 ++---- ftplugin/latex-box/folding.vim | 6 ++---- ftplugin/latex-box/latexmk.vim | 6 ++---- ftplugin/latex-box/mappings.vim | 6 ++---- ftplugin/latex-box/motion.vim | 6 ++---- ftplugin/latextoc.vim | 6 ++---- ftplugin/less.vim | 6 ++---- ftplugin/lilypond.vim | 6 ++---- ftplugin/litcoffee.vim | 6 ++---- ftplugin/llvm.vim | 6 ++---- ftplugin/ls.vim | 6 ++---- ftplugin/mail_vifm.vim | 6 ++---- ftplugin/mako.vim | 6 ++---- ftplugin/meson.vim | 6 ++---- ftplugin/mma.vim | 6 ++---- ftplugin/moon.vim | 6 ++---- ftplugin/mustache.vim | 6 ++---- ftplugin/nginx.vim | 6 ++---- ftplugin/nix.vim | 6 ++---- ftplugin/oasis.vim | 6 ++---- ftplugin/objc.vim | 6 ++---- ftplugin/ocaml.vim | 6 ++---- ftplugin/ocamlbuild_tags.vim | 6 ++---- ftplugin/omake.vim | 6 ++---- ftplugin/opencl.vim | 6 ++---- ftplugin/perl.vim | 6 ++---- ftplugin/plantuml.vim | 6 ++---- ftplugin/pony.vim | 6 ++---- ftplugin/ps1.vim | 6 ++---- ftplugin/ps1xml.vim | 6 ++---- ftplugin/pug.vim | 6 ++---- ftplugin/puppet.vim | 6 ++---- ftplugin/puppet_tagbar.vim | 6 ++---- ftplugin/purescript.vim | 6 ++---- ftplugin/qml.vim | 6 ++---- ftplugin/racket.vim | 6 ++---- ftplugin/raml.vim | 6 ++---- ftplugin/rst.vim | 6 ++---- ftplugin/ruby.vim | 6 ++---- ftplugin/rust.vim | 6 ++---- ftplugin/rust/tagbar.vim | 6 ++---- ftplugin/scala.vim | 6 ++---- ftplugin/scala.xpt.vim | 6 ++---- ftplugin/scala/tagbar.vim | 6 ++---- ftplugin/scss.vim | 6 ++---- ftplugin/sexplib.vim | 6 ++---- ftplugin/slim.vim | 6 ++---- ftplugin/smt2.vim | 6 ++---- ftplugin/solidity.vim | 6 ++---- ftplugin/stylus.vim | 6 ++---- ftplugin/swift.vim | 6 ++---- ftplugin/tablegen.vim | 6 ++---- ftplugin/terraform.vim | 6 ++---- ftplugin/tex_LatexBox.vim | 6 ++---- ftplugin/textile.vim | 6 ++---- ftplugin/tmux.vim | 6 ++---- ftplugin/toml.vim | 6 ++---- ftplugin/tsx.vim | 6 ++---- ftplugin/tt2html.vim | 6 ++---- ftplugin/twig.vim | 6 ++---- ftplugin/typescript.vim | 6 ++---- ftplugin/vifm-cmdedit.vim | 6 ++---- ftplugin/vifm-edit.vim | 6 ++---- ftplugin/vifm-rename.vim | 6 ++---- ftplugin/vifm.vim | 6 ++---- ftplugin/vue.vim | 6 ++---- ftplugin/xs.vim | 6 ++---- ftplugin/zig.vim | 6 ++---- indent/Dockerfile.vim | 6 ++---- indent/Jenkinsfile.vim | 6 ++---- indent/ansible.vim | 6 ++---- indent/applescript.vim | 6 ++---- indent/arduino.vim | 6 ++---- indent/autohotkey.vim | 6 ++---- indent/blade.vim | 6 ++---- indent/cabal.vim | 6 ++---- indent/caddyfile.vim | 6 ++---- indent/clojure.vim | 6 ++---- indent/cmake.vim | 6 ++---- indent/coffee.vim | 6 ++---- indent/crystal.vim | 6 ++---- indent/cucumber.vim | 6 ++---- indent/cython.vim | 6 ++---- indent/d.vim | 6 ++---- indent/dart.vim | 6 ++---- indent/dune.vim | 6 ++---- indent/eelixir.vim | 6 ++---- indent/elixir.vim | 6 ++---- indent/elm.vim | 6 ++---- indent/ember-script.vim | 6 ++---- indent/emblem.vim | 6 ++---- indent/erlang.vim | 6 ++---- indent/eruby.vim | 6 ++---- indent/fish.vim | 6 ++---- indent/fsharp.vim | 6 ++---- indent/gitconfig.vim | 6 ++---- indent/glsl.vim | 6 ++---- indent/go.vim | 6 ++---- indent/gohtmltmpl.vim | 6 ++---- indent/graphql.vim | 6 ++---- indent/groovy.vim | 6 ++---- indent/haml.vim | 6 ++---- indent/handlebars.vim | 6 ++---- indent/haskell.vim | 6 ++---- indent/hcl.vim | 6 ++---- indent/html.vim | 6 ++---- indent/idris.vim | 6 ++---- indent/javascript.vim | 6 ++---- indent/jinja.vim | 6 ++---- indent/json.vim | 6 ++---- indent/jst.vim | 6 ++---- indent/julia.vim | 6 ++---- indent/kotlin.vim | 6 ++---- indent/less.vim | 7 ++----- indent/lilypond.vim | 6 ++---- indent/litcoffee.vim | 6 ++---- indent/llvm.vim | 6 ++---- indent/ls.vim | 6 ++---- indent/lua.vim | 6 ++---- indent/mako.vim | 6 ++---- indent/markdown.vim | 6 ++---- indent/meson.vim | 6 ++---- indent/moon.vim | 6 ++---- indent/nginx.vim | 6 ++---- indent/nim.vim | 6 ++---- indent/nix.vim | 6 ++---- indent/ocaml.vim | 6 ++---- indent/omake.vim | 6 ++---- indent/opencl.vim | 6 ++---- indent/perl.vim | 6 ++---- indent/pgsql.vim | 6 ++---- indent/plantuml.vim | 6 ++---- indent/pony.vim | 6 ++---- indent/proto.vim | 6 ++---- indent/ps1.vim | 6 ++---- indent/pug.vim | 6 ++---- indent/puppet.vim | 6 ++---- indent/purescript.vim | 6 ++---- indent/python.vim | 6 ++---- indent/qml.vim | 6 ++---- indent/racket.vim | 6 ++---- indent/reason.vim | 6 ++---- indent/ruby.vim | 6 ++---- indent/rust.vim | 6 ++---- indent/scala.vim | 6 ++---- indent/scss.vim | 6 ++---- indent/slim.vim | 6 ++---- indent/slime.vim | 6 ++---- indent/solidity.vim | 6 ++---- indent/stylus.vim | 6 ++---- indent/svelte.vim | 6 ++---- indent/svg.vim | 6 ++---- indent/swift.vim | 6 ++---- indent/terraform.vim | 6 ++---- indent/tex.vim | 6 ++---- indent/tsx.vim | 6 ++---- indent/twig.vim | 6 ++---- indent/typescript.vim | 6 ++---- indent/vala.vim | 6 ++---- indent/velocity.vim | 6 ++---- indent/vue.vim | 6 ++---- plugin_guard.vim.template | 6 ++---- plugin_guard_jsx.vim.template | 6 ++---- syntax/Dockerfile.vim | 6 ++---- syntax/Jenkinsfile.vim | 6 ++---- syntax/ansible.vim | 6 ++---- syntax/ansible_hosts.vim | 6 ++---- syntax/apiblueprint.vim | 6 ++---- syntax/applescript.vim | 6 ++---- syntax/arduino.vim | 6 ++---- syntax/asciidoc.vim | 6 ++---- syntax/asl.vim | 6 ++---- syntax/basic/class.vim | 6 ++---- syntax/basic/cluster.vim | 6 ++---- syntax/basic/decorator.vim | 6 ++---- syntax/basic/doc.vim | 6 ++---- syntax/basic/function.vim | 6 ++---- syntax/basic/identifiers.vim | 6 ++---- syntax/basic/keyword.vim | 6 ++---- syntax/basic/literal.vim | 6 ++---- syntax/basic/members.vim | 6 ++---- syntax/basic/object.vim | 6 ++---- syntax/basic/patch.vim | 6 ++---- syntax/basic/reserved.vim | 6 ++---- syntax/basic/symbols.vim | 6 ++---- syntax/basic/type.vim | 6 ++---- syntax/blade.vim | 6 ++---- syntax/c.vim | 6 ++---- syntax/cabal.vim | 6 ++---- syntax/caddyfile.vim | 6 ++---- syntax/carp.vim | 6 ++---- syntax/clojure.vim | 6 ++---- syntax/cmake.vim | 6 ++---- syntax/coffee.vim | 6 ++---- syntax/common.vim | 6 ++---- syntax/cpp.vim | 6 ++---- syntax/cql.vim | 6 ++---- syntax/cryptol.vim | 6 ++---- syntax/crystal.vim | 6 ++---- syntax/csv.vim | 6 ++---- syntax/cucumber.vim | 6 ++---- syntax/cuesheet.vim | 6 ++---- syntax/d.vim | 6 ++---- syntax/dart.vim | 6 ++---- syntax/dcov.vim | 6 ++---- syntax/dd.vim | 6 ++---- syntax/ddoc.vim | 6 ++---- syntax/dhall.vim | 6 ++---- syntax/docker-compose.vim | 6 ++---- syntax/dsdl.vim | 6 ++---- syntax/dune.vim | 6 ++---- syntax/eelixir.vim | 6 ++---- syntax/elixir.vim | 6 ++---- syntax/elm.vim | 6 ++---- syntax/ember-script.vim | 6 ++---- syntax/emblem.vim | 6 ++---- syntax/erlang.vim | 6 ++---- syntax/eruby.vim | 6 ++---- syntax/fbs.vim | 6 ++---- syntax/ferm.vim | 6 ++---- syntax/fish.vim | 6 ++---- syntax/fsharp.vim | 6 ++---- syntax/git.vim | 6 ++---- syntax/gitcommit.vim | 6 ++---- syntax/gitconfig.vim | 6 ++---- syntax/gitrebase.vim | 6 ++---- syntax/gitsendemail.vim | 6 ++---- syntax/glsl.vim | 6 ++---- syntax/gmpl.vim | 6 ++---- syntax/gnuplot.vim | 6 ++---- syntax/go.vim | 6 ++---- syntax/godebugoutput.vim | 6 ++---- syntax/godebugstacktrace.vim | 6 ++---- syntax/godebugvariables.vim | 6 ++---- syntax/godefstack.vim | 6 ++---- syntax/gohtmltmpl.vim | 6 ++---- syntax/gomod.vim | 6 ++---- syntax/gotexttmpl.vim | 6 ++---- syntax/graphql.vim | 6 ++---- syntax/groovy.vim | 6 ++---- syntax/haml.vim | 6 ++---- syntax/haproxy.vim | 6 ++---- syntax/haskell.vim | 6 ++---- syntax/haxe.vim | 6 ++---- syntax/hcl.vim | 6 ++---- syntax/helm.vim | 6 ++---- syntax/hive.vim | 6 ++---- syntax/html.vim | 10 +++------- syntax/html/aria.vim | 6 ++---- syntax/html/electron.vim | 6 ++---- syntax/html/rdfa.vim | 6 ++---- syntax/i3config.vim | 6 ++---- syntax/idris.vim | 6 ++---- syntax/ion.vim | 6 ++---- syntax/jasmine.vim | 6 ++---- syntax/javascript.vim | 6 ++---- syntax/javascript/html5.vim | 6 ++---- syntax/jinja.vim | 6 ++---- syntax/jinja2.vim | 6 ++---- syntax/json.vim | 6 ++---- syntax/json5.vim | 6 ++---- syntax/jst.vim | 6 ++---- syntax/julia.vim | 6 ++---- syntax/juliadoc.vim | 6 ++---- syntax/kotlin.vim | 6 ++---- syntax/latextoc.vim | 6 ++---- syntax/less.vim | 6 ++---- syntax/lidris.vim | 6 ++---- syntax/lilypond-words.vim | 6 ++---- syntax/lilypond.vim | 6 ++---- syntax/litcoffee.vim | 6 ++---- syntax/llvm.vim | 6 ++---- syntax/log.vim | 6 ++---- syntax/ls.vim | 6 ++---- syntax/lua.vim | 6 ++---- syntax/mako.vim | 6 ++---- syntax/markdown.vim | 6 ++---- syntax/mason.vim | 6 ++---- syntax/merlin.vim | 6 ++---- syntax/meson.vim | 6 ++---- syntax/mma.vim | 6 ++---- syntax/moon.vim | 6 ++---- syntax/mustache.vim | 6 ++---- syntax/nginx.vim | 6 ++---- syntax/nim.vim | 6 ++---- syntax/nix.vim | 6 ++---- syntax/oasis.vim | 6 ++---- syntax/ocaml.vim | 6 ++---- syntax/ocamlbuild_tags.vim | 6 ++---- syntax/octave.vim | 6 ++---- syntax/omake.vim | 6 ++---- syntax/opam.vim | 6 ++---- syntax/opencl.vim | 6 ++---- syntax/perl.vim | 6 ++---- syntax/pgsql.vim | 6 ++---- syntax/php.vim | 6 ++---- syntax/plantuml.vim | 6 ++---- syntax/pod.vim | 6 ++---- syntax/pony.vim | 6 ++---- syntax/proto.vim | 6 ++---- syntax/ps1.vim | 6 ++---- syntax/ps1xml.vim | 6 ++---- syntax/pug.vim | 6 ++---- syntax/puppet.vim | 6 ++---- syntax/purescript.vim | 6 ++---- syntax/python.vim | 6 ++---- syntax/qmake.vim | 6 ++---- syntax/qml.vim | 6 ++---- syntax/racket.vim | 6 ++---- syntax/ragel.vim | 6 ++---- syntax/raml.vim | 6 ++---- syntax/reason.vim | 6 ++---- syntax/rhelp.vim | 6 ++---- syntax/rnoweb.vim | 6 ++---- syntax/rst.vim | 6 ++---- syntax/ruby.vim | 6 ++---- syntax/rust.vim | 6 ++---- syntax/sbt.vim | 6 ++---- syntax/scala.vim | 6 ++---- syntax/scss.vim | 6 ++---- syntax/sexplib.vim | 6 ++---- syntax/slim.vim | 6 ++---- syntax/slime.vim | 6 ++---- syntax/smhl.vim | 6 ++---- syntax/smt2.vim | 6 ++---- syntax/solidity.vim | 6 ++---- syntax/stylus.vim | 6 ++---- syntax/svelte.vim | 6 ++---- syntax/svg.vim | 6 ++---- syntax/swift.vim | 6 ++---- syntax/sxhkdrc.vim | 6 ++---- syntax/systemd.vim | 6 ++---- syntax/tablegen.vim | 6 ++---- syntax/tap.vim | 6 ++---- syntax/terraform.vim | 6 ++---- syntax/textile.vim | 6 ++---- syntax/thrift.vim | 6 ++---- syntax/tmux.vim | 6 ++---- syntax/tomdoc.vim | 6 ++---- syntax/toml.vim | 6 ++---- syntax/tptp.vim | 6 ++---- syntax/tsx.vim | 6 ++---- syntax/tt2.vim | 6 ++---- syntax/tt2html.vim | 6 ++---- syntax/tt2js.vim | 6 ++---- syntax/twig.vim | 6 ++---- syntax/typescript.vim | 6 ++---- syntax/vala.vim | 6 ++---- syntax/vbnet.vim | 6 ++---- syntax/vcl.vim | 6 ++---- syntax/velocity.vim | 6 ++---- syntax/vifm.vim | 6 ++---- syntax/vimgo.vim | 6 ++---- syntax/vue.vim | 6 ++---- syntax/xdc.vim | 6 ++---- syntax/xml.vim | 6 ++---- syntax/xs.vim | 6 ++---- syntax/xsl.vim | 6 ++---- syntax/yats.vim | 6 ++---- syntax/yats/css.vim | 6 ++---- syntax/yats/dom-document.vim | 6 ++---- syntax/yats/dom-elem.vim | 6 ++---- syntax/yats/dom-event.vim | 6 ++---- syntax/yats/dom-form.vim | 6 ++---- syntax/yats/dom-node.vim | 6 ++---- syntax/yats/dom-storage.vim | 6 ++---- syntax/yats/ecma-402.vim | 6 ++---- syntax/yats/es6-array.vim | 6 ++---- syntax/yats/es6-date.vim | 6 ++---- syntax/yats/es6-function.vim | 6 ++---- syntax/yats/es6-json.vim | 6 ++---- syntax/yats/es6-map.vim | 6 ++---- syntax/yats/es6-math.vim | 6 ++---- syntax/yats/es6-number.vim | 6 ++---- syntax/yats/es6-object.vim | 6 ++---- syntax/yats/es6-promise.vim | 6 ++---- syntax/yats/es6-proxy.vim | 6 ++---- syntax/yats/es6-reflect.vim | 6 ++---- syntax/yats/es6-regexp.vim | 6 ++---- syntax/yats/es6-set.vim | 6 ++---- syntax/yats/es6-string.vim | 6 ++---- syntax/yats/es6-symbol.vim | 6 ++---- syntax/yats/event.vim | 6 ++---- syntax/yats/node.vim | 6 ++---- syntax/yats/test.vim | 6 ++---- syntax/yats/typescript.vim | 6 ++---- syntax/yats/web-blob.vim | 6 ++---- syntax/yats/web-console.vim | 6 ++---- syntax/yats/web-crypto.vim | 6 ++---- syntax/yats/web-encoding.vim | 6 ++---- syntax/yats/web-fetch.vim | 6 ++---- syntax/yats/web-geo.vim | 6 ++---- syntax/yats/web-history.vim | 6 ++---- syntax/yats/web-location.vim | 6 ++---- syntax/yats/web-navigator.vim | 6 ++---- syntax/yats/web-network.vim | 6 ++---- syntax/yats/web-payment.vim | 6 ++---- syntax/yats/web-service-worker.vim | 6 ++---- syntax/yats/web-window.vim | 6 ++---- syntax/yats/web-xhr.vim | 6 ++---- syntax/yats/web.vim | 6 ++---- syntax/zephir.vim | 6 ++---- syntax/zig.vim | 6 ++---- 565 files changed, 1137 insertions(+), 2284 deletions(-) diff --git a/after/autoload/styledcomplete.vim b/after/autoload/styledcomplete.vim index efa992c4..68886106 100644 --- a/after/autoload/styledcomplete.vim +++ b/after/autoload/styledcomplete.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'styled-components') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'styled-components') == -1 " Vim completion script " Language: styled-components (js/ts) " Maintainer: Karl Fleischmann @@ -19,3 +16,4 @@ fun! styledcomplete#CompleteSC(findstart, base) return s:funcref(a:findstart, a:base) endif endfun +endif diff --git a/after/ftplugin/cabal.vim b/after/ftplugin/cabal.vim index 3c66372a..8e485bbd 100644 --- a/after/ftplugin/cabal.vim +++ b/after/ftplugin/cabal.vim @@ -1,7 +1,5 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'haskell') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1 setlocal comments=s1fl:{-,mb:-,ex:-},:-- setlocal iskeyword+=-,.,* setlocal commentstring=--\ %s +endif diff --git a/after/ftplugin/coffee.vim b/after/ftplugin/coffee.vim index 2060d276..2e3f7170 100644 --- a/after/ftplugin/coffee.vim +++ b/after/ftplugin/coffee.vim @@ -1,9 +1,7 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'cjsx') != -1 - finish -endif - +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 2d3d6b33..0255bdd7 100644 --- a/after/ftplugin/haskell.vim +++ b/after/ftplugin/haskell.vim @@ -1,6 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'haskell') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1 setlocal comments=s1fl:{-,mb:\ \ ,ex:-},:-- setlocal iskeyword+=' +endif diff --git a/after/ftplugin/idris.vim b/after/ftplugin/idris.vim index ce46b796..c006b7ab 100644 --- a/after/ftplugin/idris.vim +++ b/after/ftplugin/idris.vim @@ -1,5 +1,3 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'idris') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'idris') == -1 setlocal iskeyword+=' +endif diff --git a/after/ftplugin/javascript.vim b/after/ftplugin/javascript.vim index 463b854a..2ca2fd1c 100644 --- a/after/ftplugin/javascript.vim +++ b/after/ftplugin/javascript.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'javascript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 " Vim filetype plugin file " Language: JavaScript " Maintainer: vim-javascript community @@ -14,10 +11,8 @@ if exists('b:undo_ftplugin') else let b:undo_ftplugin = 'setlocal iskeyword< suffixesadd<' endif -if exists('g:polyglot_disabled') && (index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) - finish endif - +if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Vim ftplugin file " @@ -49,10 +44,8 @@ augroup jsx_comment augroup end setlocal suffixesadd+=.jsx -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'styled-components') != -1 - finish endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'styled-components') == -1 " Vim filetype plugin file " Language: styled-components (js/ts) " Maintainer: Karl Fleischmann @@ -90,3 +83,4 @@ if exists('&ofu') endif setl omnifunc=styledcomplete#CompleteSC endif +endif diff --git a/after/ftplugin/llvm.vim b/after/ftplugin/llvm.vim index 70f196c8..ece9019f 100644 --- a/after/ftplugin/llvm.vim +++ b/after/ftplugin/llvm.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'llvm') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'llvm') == -1 " Copyright (c) 2018 rhysd " " Permission is hereby granted, free of charge, to any person obtaining a copy @@ -475,3 +472,4 @@ endfunction if !exists(':LLI') command! -buffer -nargs=? -bar -complete=file LLI call run_lli() endif +endif diff --git a/after/ftplugin/puppet.vim b/after/ftplugin/puppet.vim index 934e4b03..f78ebb80 100644 --- a/after/ftplugin/puppet.vim +++ b/after/ftplugin/puppet.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'puppet') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1 if !exists('g:puppet_align_hashes') let g:puppet_align_hashes = 1 endif @@ -9,3 +6,4 @@ endif if g:puppet_align_hashes inoremap => =>:call puppet#align#AlignHashrockets()$a endif +endif diff --git a/after/ftplugin/typescript.vim b/after/ftplugin/typescript.vim index d307f5d4..4f158684 100644 --- a/after/ftplugin/typescript.vim +++ b/after/ftplugin/typescript.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && (index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) - finish -endif - +if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) " modified from html.vim " For matchit plugin if exists("loaded_matchit") @@ -25,7 +22,6 @@ augroup jsx_comment augroup end setlocal suffixesadd+=.tsx -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'styled-components') != -1 - finish endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'styled-components') == -1 +endif diff --git a/after/ftplugin/yaml.vim b/after/ftplugin/yaml.vim index a6b6d194..1b631079 100644 --- a/after/ftplugin/yaml.vim +++ b/after/ftplugin/yaml.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'yaml') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'yaml') == -1 " Vim indent file " Language: Yaml " Author: Henrique Barcelos @@ -9,3 +6,4 @@ endif " URL: https://github.com/hjpbarcelos setlocal autoindent sw=2 ts=2 expandtab " vim:set sw=2: +endif diff --git a/after/indent/javascript.vim b/after/indent/javascript.vim index 8c2254d6..90a94349 100644 --- a/after/indent/javascript.vim +++ b/after/indent/javascript.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && (index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) - finish -endif - +if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Vim indent file " @@ -31,10 +28,8 @@ endfunction let &cpo = s:keepcpo unlet s:keepcpo -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'styled-components') != -1 - finish endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'styled-components') == -1 " Vim syntax file " Language: styled-components (js/ts) " Maintainer: Karl Fleischmann @@ -204,3 +199,4 @@ fu! GetStyledIndent() " if all else fails indent according to C-syntax return cindent(v:lnum) endfu +endif diff --git a/after/indent/jsx.vim b/after/indent/jsx.vim index 3f25a7f1..ac4ceabd 100644 --- a/after/indent/jsx.vim +++ b/after/indent/jsx.vim @@ -1,5 +1,3 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'styled-components') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'styled-components') == -1 runtime! indent/javascript.vim +endif diff --git a/after/indent/objc.vim b/after/indent/objc.vim index 1bcc217a..9c64da42 100644 --- a/after/indent/objc.vim +++ b/after/indent/objc.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'objc') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'objc') == -1 " Vim indent file " Language: Objective-C " Maintainer: Bjorn Winckler @@ -95,3 +92,4 @@ endfunction " Restore 'cpo' options let &cpo = s:save_cpo unlet s:save_cpo +endif diff --git a/after/indent/typescript.vim b/after/indent/typescript.vim index acc283f0..c7fbc225 100644 --- a/after/indent/typescript.vim +++ b/after/indent/typescript.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && (index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) - finish -endif - +if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Vim indent file " @@ -32,8 +29,7 @@ endfunction let &cpo = s:keepcpo unlet s:keepcpo -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'styled-components') != -1 - finish endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'styled-components') == -1 runtime! indent/javascript.vim +endif diff --git a/after/syntax/c.vim b/after/syntax/c.vim index 4b801734..48446d7d 100644 --- a/after/syntax/c.vim +++ b/after/syntax/c.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'c++11') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'c++11') == -1 " Vim syntax file " Language: C Additions " Maintainer: Jon Haggblad @@ -306,3 +303,4 @@ 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 4ee795f0..bd48541e 100644 --- a/after/syntax/coffee.vim +++ b/after/syntax/coffee.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'cjsx') != -1 - finish -endif - +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 @@ -29,3 +26,4 @@ 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 ae11705e..b85c63bd 100644 --- a/after/syntax/cpp.vim +++ b/after/syntax/cpp.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'c++11') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'c++11') == -1 " Vim syntax file " Language: C++ Additions " Maintainer: Jon Haggblad @@ -2103,3 +2100,4 @@ if version >= 508 || !exists("did_cpp_syntax_inits") HiLink cppRawDelimiter Delimiter delcommand HiLink endif +endif diff --git a/after/syntax/haskell.vim b/after/syntax/haskell.vim index db454f2f..03a26e88 100644 --- a/after/syntax/haskell.vim +++ b/after/syntax/haskell.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'dhall') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dhall') == -1 " store and remove current syntax value let old_syntax = b:current_syntax unlet b:current_syntax @@ -15,3 +12,4 @@ hi def link quasiQuote Underlined " restore current syntax value let b:current_syntax = old_syntax +endif diff --git a/after/syntax/help.vim b/after/syntax/help.vim index a4bc0bc7..4c0dc3d3 100644 --- a/after/syntax/help.vim +++ b/after/syntax/help.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'scala') != -1 - finish -endif - +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 @@ -16,3 +13,4 @@ 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 fcb7fd51..4fd6e593 100644 --- a/after/syntax/html.vim +++ b/after/syntax/html.vim @@ -1,7 +1,4 @@ -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 @@ -14,3 +11,4 @@ endif " https://github.com/w3c/html/issues/694 syntax region htmlComment start=++ contains=@Spell syntax region htmlComment start=++ +endif diff --git a/after/syntax/idris.vim b/after/syntax/idris.vim index bef36f62..3acdcbec 100644 --- a/after/syntax/idris.vim +++ b/after/syntax/idris.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'idris') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'idris') == -1 " This script allows for unicode concealing of certain characters " For instance -> goes to → " @@ -80,3 +77,4 @@ hi link idrNiceOperator Operator hi! link Conceal Operator setlocal conceallevel=2 +endif diff --git a/after/syntax/javascript.vim b/after/syntax/javascript.vim index 1d2064b5..50a22712 100644 --- a/after/syntax/javascript.vim +++ b/after/syntax/javascript.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && (index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) - finish -endif - +if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Vim syntax file " @@ -60,10 +57,8 @@ let b:current_syntax = 'javascript.jsx' let &cpo = s:jsx_cpo unlet s:jsx_cpo -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'styled-components') != -1 - finish endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'styled-components') == -1 " Vim syntax file " Language: styled-components (js/ts) " Maintainer: Karl Fleischmann @@ -259,3 +254,4 @@ hi def link styledXmlRegion String if exists("s:current_syntax") let b:current_syntax=s:current_syntax endif +endif diff --git a/after/syntax/javascript/graphql.vim b/after/syntax/javascript/graphql.vim index edc8eea1..e9a0ff3a 100644 --- a/after/syntax/javascript/graphql.vim +++ b/after/syntax/javascript/graphql.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'graphql') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1 if exists('b:current_syntax') let s:current_syntax = b:current_syntax unlet b:current_syntax @@ -25,3 +22,4 @@ hi def link graphqlTemplateExpression jsTemplateExpression syn cluster jsExpression add=graphqlTaggedTemplate syn cluster graphqlTaggedTemplate add=graphqlTemplateString +endif diff --git a/after/syntax/jsx_pretty.vim b/after/syntax/jsx_pretty.vim index f37a084b..d2f5d383 100644 --- a/after/syntax/jsx_pretty.vim +++ b/after/syntax/jsx_pretty.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && (index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) - finish -endif - +if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) let s:highlight_close_tag = get(g:, 'vim_jsx_pretty_highlight_close_tag', 0) " @@ -214,3 +211,4 @@ if s:vim_jsx_pretty_colorful_config == 1 highlight def link jsFuncArgs Type endif +endif diff --git a/after/syntax/llvm.vim b/after/syntax/llvm.vim index aae8711c..18767d57 100644 --- a/after/syntax/llvm.vim +++ b/after/syntax/llvm.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'llvm') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'llvm') == -1 " Copyright (c) 2018 rhysd " " Permission is hereby granted, free of charge, to any person obtaining a copy @@ -24,3 +21,4 @@ endif syn keyword llvmKeyword attributes syn match llvmNoName /#\d\+\>/ +endif diff --git a/after/syntax/mdx.vim b/after/syntax/mdx.vim index 46f73946..68caa276 100644 --- a/after/syntax/mdx.vim +++ b/after/syntax/mdx.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'mdx') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mdx') == -1 " based on mxw/vim-jsx @@ -43,3 +40,4 @@ syn cluster jsExpression add=jsxRegion " Allow jsxRegion to contain reserved words. syn cluster javascriptNoReserved add=jsxRegion +endif diff --git a/after/syntax/mma.vim b/after/syntax/mma.vim index f8e7a271..c2ab7b76 100644 --- a/after/syntax/mma.vim +++ b/after/syntax/mma.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'mathematica') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mathematica') == -1 "Vim conceal file " Language: Mathematica " Maintainer: Voldikss @@ -1448,3 +1445,4 @@ endif hi! link Conceal Normal setlocal conceallevel=2 +endif diff --git a/after/syntax/objc.vim b/after/syntax/objc.vim index d9874e20..cebedf20 100644 --- a/after/syntax/objc.vim +++ b/after/syntax/objc.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'objc') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'objc') == -1 " ARC type modifiers syn keyword objcTypeModifier __bridge __bridge_retained __bridge_transfer __autoreleasing __strong __weak __unsafe_unretained @@ -21,3 +18,4 @@ syn match objcDirective "@property\|@synthesize\|@dynamic\|@package" " Highlight property attributes as if they were type modifiers hi def link objcPropertyAttribute objcTypeModifier +endif diff --git a/after/syntax/reason.vim b/after/syntax/reason.vim index 14d5abfe..7615be2b 100644 --- a/after/syntax/reason.vim +++ b/after/syntax/reason.vim @@ -1,4 +1,2 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'reason') != -1 - finish +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'reason') == -1 endif - diff --git a/after/syntax/rspec.vim b/after/syntax/rspec.vim index 653f7d63..bd447957 100644 --- a/after/syntax/rspec.vim +++ b/after/syntax/rspec.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rspec') != -1 - finish -endif - +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 @@ -34,3 +31,4 @@ 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 a9d2ea31..551969c9 100644 --- a/after/syntax/ruby.vim +++ b/after/syntax/ruby.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'yard') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'yard') == -1 " Ruby syntax extensions for highlighting YARD documentation. " " Author: Joel Holdbrooks @@ -128,3 +125,4 @@ 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 ace3ea20..8210c9f1 100644 --- a/after/syntax/rust.vim +++ b/after/syntax/rust.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 scriptencoding utf-8 if !get(g:, 'rust_conceal', 0) || !has('conceal') || &encoding !=# 'utf-8' @@ -43,3 +40,4 @@ if !get(g:, 'rust_conceal_mod_path', 0) endif " vim: set et sw=4 sts=4 ts=8: +endif diff --git a/after/syntax/tex.vim b/after/syntax/tex.vim index 444dabda..fd515891 100644 --- a/after/syntax/tex.vim +++ b/after/syntax/tex.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'latex') != -1 - finish -endif - +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 @@ -11,3 +8,4 @@ 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/typescript.vim b/after/syntax/typescript.vim index df500404..86719158 100644 --- a/after/syntax/typescript.vim +++ b/after/syntax/typescript.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && (index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) - finish -endif - +if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Vim syntax file " @@ -48,10 +45,8 @@ let b:current_syntax = 'typescript.tsx' let &cpo = s:jsx_cpo unlet s:jsx_cpo -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'styled-components') != -1 - finish endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'styled-components') == -1 runtime! syntax/javascript.vim " define custom API section, that contains typescript annotations @@ -114,3 +109,4 @@ syn cluster typescriptValue add=styledPrefix,jsFuncCall,styledTypescriptPrefix syn match typescriptIdentifierName extend \ "\\|\\|\\|\\|\" \ nextgroup=styledDefinition +endif diff --git a/after/syntax/typescript/graphql.vim b/after/syntax/typescript/graphql.vim index fc070daa..23f28e93 100644 --- a/after/syntax/typescript/graphql.vim +++ b/after/syntax/typescript/graphql.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'graphql') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1 if exists('b:current_syntax') let s:current_syntax = b:current_syntax unlet b:current_syntax @@ -24,3 +21,4 @@ hi def link graphqlTemplateExpression typescriptTemplateSubstitution syn cluster typescriptExpression add=graphqlTaggedTemplate syn cluster graphqlTaggedTemplate add=graphqlTemplateString +endif diff --git a/after/syntax/yaml.vim b/after/syntax/yaml.vim index 5a9e7c37..20cd2fb5 100644 --- a/after/syntax/yaml.vim +++ b/after/syntax/yaml.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'yaml') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'yaml') == -1 " To make this file do stuff, add something like the following (without the " leading ") to your ~/.vimrc: " au BufNewFile,BufRead *.yaml,*.yml so ~/src/PyYaml/YAML.vim @@ -63,3 +60,4 @@ hi link yamlInline Operator hi link yamlBlock Operator hi link yamlString String hi link yamlEscape Special +endif diff --git a/autoload/LaTeXtoUnicode.vim b/autoload/LaTeXtoUnicode.vim index dfaa66fe..19a759a2 100644 --- a/autoload/LaTeXtoUnicode.vim +++ b/autoload/LaTeXtoUnicode.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'julia') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Support for LaTex-to-Unicode conversion as in the Julia REPL " """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" @@ -652,3 +649,4 @@ function! LaTeXtoUnicode#Toggle() endif return endfunction +endif diff --git a/autoload/RstFold.vim b/autoload/RstFold.vim index 1f53d67f..4d865808 100644 --- a/autoload/RstFold.vim +++ b/autoload/RstFold.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rst') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rst') == -1 " Author: Antony Lee " Description: Helper functions for reStructuredText syntax folding " Last Modified: 2018-12-29 @@ -64,3 +61,4 @@ function RstFold#GetRstFoldText() let text = thisline =~ '^\([=`:.''"~^_*+#-]\)\1\+$' ? getline(v:foldstart + 1) : thisline return indent . text endfunction +endif diff --git a/autoload/cargo.vim b/autoload/cargo.vim index fe28ef3a..ea63bd7a 100644 --- a/autoload/cargo.vim +++ b/autoload/cargo.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 function! cargo#Load() " Utility call to get this script loaded, for debugging endfunction @@ -117,3 +114,4 @@ function! cargo#runtarget(args) endfunction " vim: set et sw=4 sts=4 ts=8: +endif diff --git a/autoload/cargo/quickfix.vim b/autoload/cargo/quickfix.vim index ac66d298..b108da2f 100644 --- a/autoload/cargo/quickfix.vim +++ b/autoload/cargo/quickfix.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 function! cargo#quickfix#CmdPre() abort if &filetype ==# 'rust' && get(b:, 'current_compiler', '') ==# 'cargo' " Preserve the current directory, and 'lcd' to the nearest Cargo file. @@ -28,3 +25,4 @@ function! cargo#quickfix#CmdPost() abort endfunction " vim: set et sw=4 sts=4 ts=8: +endif diff --git a/autoload/clojurecomplete.vim b/autoload/clojurecomplete.vim index b8dc71c9..88aacd74 100644 --- a/autoload/clojurecomplete.vim +++ b/autoload/clojurecomplete.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'clojure') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'clojure') == -1 " Vim completion script " Language: Clojure " Maintainer: Sung Pae @@ -24,3 +21,4 @@ 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 beeed729..b308f4c1 100644 --- a/autoload/coffee.vim +++ b/autoload/coffee.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'coffee-script') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1 " Language: CoffeeScript " Maintainer: Mick Koch " URL: http://github.com/kchmck/vim-coffee-script @@ -56,3 +53,4 @@ function! coffee#CoffeeSetUpErrorFormat() \%f:%l:%c:\ error:\ %m, \%-G%.%# endfunction +endif diff --git a/autoload/crystal_lang.vim b/autoload/crystal_lang.vim index 56221246..2acfdb76 100644 --- a/autoload/crystal_lang.vim +++ b/autoload/crystal_lang.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 let s:save_cpo = &cpo set cpo&vim @@ -342,3 +339,4 @@ endfunction let &cpo = s:save_cpo unlet s:save_cpo +endif diff --git a/autoload/csv.vim b/autoload/csv.vim index dcca5e81..66fc6a17 100644 --- a/autoload/csv.vim +++ b/autoload/csv.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'csv') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'csv') == -1 " Filetype plugin for editing CSV files. "{{{1 " Author: Christian Brabandt " Version: 0.31 @@ -3189,3 +3186,4 @@ endfun " Vim Modeline " {{{2 " vim: set foldmethod=marker et sw=0 sts=-1 ts=4: +endif diff --git a/autoload/dart.vim b/autoload/dart.vim index 82859463..39ebc9e3 100644 --- a/autoload/dart.vim +++ b/autoload/dart.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'dart') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dart') == -1 function! s:error(text) abort echohl Error @@ -186,3 +183,4 @@ function! dart#setModifiable() abort setlocal nomodifiable endif endfunction +endif diff --git a/autoload/db/adapter/ecto.vim b/autoload/db/adapter/ecto.vim index 54ee3396..e8e543ba 100644 --- a/autoload/db/adapter/ecto.vim +++ b/autoload/db/adapter/ecto.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'elixir') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 let s:path = expand(':h') let s:cmd = join(['mix', 'run', '--no-start', '--no-compile', shellescape(s:path.'/get_repos.exs')]) @@ -22,3 +19,4 @@ endfunction function! db#adapter#ecto#complete_opaque(url) abort return map(s:repo_list(), 'v:val[0]') endfunction +endif diff --git a/autoload/elixir/indent.vim b/autoload/elixir/indent.vim index 74d7344c..2924f0e6 100644 --- a/autoload/elixir/indent.vim +++ b/autoload/elixir/indent.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'elixir') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 if !exists("g:elixir_indent_max_lookbehind") let g:elixir_indent_max_lookbehind = 30 endif @@ -363,3 +360,4 @@ function! elixir#indent#handle_inside_generic_block(context) return -1 endif endfunction +endif diff --git a/autoload/elixir/util.vim b/autoload/elixir/util.vim index f02e1b87..d6b6541a 100644 --- a/autoload/elixir/util.vim +++ b/autoload/elixir/util.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'elixir') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 function! elixir#util#get_filename(word) abort let word = a:word @@ -26,3 +23,4 @@ function! elixir#util#get_filename(word) abort return word endfunction +endif diff --git a/autoload/elm.vim b/autoload/elm.vim index d58ddaab..46ada03b 100644 --- a/autoload/elm.vim +++ b/autoload/elm.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'elm') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elm') == -1 let s:errors = [] function! s:elmOracle(...) abort @@ -383,3 +380,4 @@ function! s:ExecuteInRoot(cmd) abort return l:out endfunction +endif diff --git a/autoload/elm/util.vim b/autoload/elm/util.vim index 6d1014e0..cd509cc1 100644 --- a/autoload/elm/util.vim +++ b/autoload/elm/util.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'elm') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elm') == -1 " IsWin returns 1 if current OS is Windows or 0 otherwise fun! elm#util#IsWin() abort let l:win = ['win16', 'win32', 'win32unix', 'win64', 'win95'] @@ -182,3 +179,4 @@ function! s:error(msg) echohl NONE let v:errmsg = a:msg endfunction +endif diff --git a/autoload/fish.vim b/autoload/fish.vim index 5b86736e..2ad976d7 100644 --- a/autoload/fish.vim +++ b/autoload/fish.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'fish') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fish') == -1 function! fish#Indent() let l:shiftwidth = shiftwidth() let l:prevlnum = prevnonblank(v:lnum - 1) @@ -69,3 +66,4 @@ endfunction function! fish#errorformat() return '%Afish: %m,%-G%*\\ ^,%-Z%f (line %l):%s' endfunction +endif diff --git a/autoload/go/config.vim b/autoload/go/config.vim index e3f16179..ed03d910 100644 --- a/autoload/go/config.vim +++ b/autoload/go/config.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'go') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1 " don't spam the user when Vim is started in Vi compatibility mode let s:cpo_save = &cpo set cpo&vim @@ -494,3 +491,4 @@ let &cpo = s:cpo_save unlet s:cpo_save " vim: sw=2 ts=2 et +endif diff --git a/autoload/graphql.vim b/autoload/graphql.vim index cce43556..85b654ad 100644 --- a/autoload/graphql.vim +++ b/autoload/graphql.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'graphql') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1 " Vim plugin " Language: GraphQL " Maintainer: Jon Parise @@ -14,3 +11,4 @@ let g:autoloaded_graphql = 1 function! graphql#javascript_tags() abort return get(g:, 'graphql_javascript_tags', ['gql', 'graphql', 'Relay.QL']) endfunction +endif diff --git a/autoload/htmlcomplete.vim b/autoload/htmlcomplete.vim index ef32c64d..002a6f0e 100644 --- a/autoload/htmlcomplete.vim +++ b/autoload/htmlcomplete.vim @@ -1,7 +1,4 @@ -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 completion script " Language: HTML and XHTML " Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl ) @@ -843,3 +840,4 @@ function! htmlcomplete#CheckDoctype() " {{{ endfunction " }}} " vim:set foldmethod=marker: +endif diff --git a/autoload/jsx_pretty/comment.vim b/autoload/jsx_pretty/comment.vim index 325baaea..932d5535 100644 --- a/autoload/jsx_pretty/comment.vim +++ b/autoload/jsx_pretty/comment.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && (index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) - finish -endif - +if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) function! jsx_pretty#comment#update_commentstring(original) let syn_current = s:syn_name(line('.'), col('.')) let syn_start = s:syn_name(line('.'), 1) @@ -39,3 +36,4 @@ function! s:syn_contains(lnum, cnum, syn_name) let syn_names = map(stack, 'synIDattr(v:val, "name")') return index(syn_names, a:syn_name) >= 0 endfunction +endif diff --git a/autoload/jsx_pretty/indent.vim b/autoload/jsx_pretty/indent.vim index 67170b46..4c108416 100644 --- a/autoload/jsx_pretty/indent.vim +++ b/autoload/jsx_pretty/indent.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && (index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) - finish -endif - +if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'typescript') != -1 || index(g:polyglot_disabled, 'jsx') != -1) if exists('*shiftwidth') function! s:sw() return shiftwidth() @@ -216,3 +213,4 @@ function! jsx_pretty#indent#get(js_indent) endif endfunction +endif diff --git a/autoload/julia.vim b/autoload/julia.vim index c3c949ac..f2fc6123 100644 --- a/autoload/julia.vim +++ b/autoload/julia.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'julia') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1 function! julia#set_syntax_version(jvers) if &filetype != "julia" echo "Not a Julia file" @@ -186,3 +183,4 @@ function! julia#gotodefinition() endfunction endif +endif diff --git a/autoload/julia/doc.vim b/autoload/julia/doc.vim index c2660143..1dee5aed 100644 --- a/autoload/julia/doc.vim +++ b/autoload/julia/doc.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'julia') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1 " path to the julia binary to communicate with if has('win32') || has('win64') if exists('g:julia#doc#juliapath') @@ -244,3 +241,4 @@ function! s:likely(str) abort let output = systemlist(cmd) return split(matchstr(output[0], '\C^search: \zs.*')) endfunction +endif diff --git a/autoload/julia_blocks.vim b/autoload/julia_blocks.vim index 0f4d2bb0..46b18484 100644 --- a/autoload/julia_blocks.vim +++ b/autoload/julia_blocks.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'julia') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1 " Facilities for moving around Julia blocks (e.g. if/end, function/end etc.) " (AKA a collection of horrible hacks) @@ -796,3 +793,4 @@ function! s:cursor_moved(...) let b:jlblk_did_select = b:jlblk_doing_select let b:jlblk_doing_select = 0 endfunction +endif diff --git a/autoload/julia_latex_symbols.vim b/autoload/julia_latex_symbols.vim index d0daf6fc..51deacc8 100644 --- a/autoload/julia_latex_symbols.vim +++ b/autoload/julia_latex_symbols.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'julia') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1 " This file is autogenerated from the script 'generate_latex_symbols_table.jl' " The symbols are based on Julia version 1.3.0-DEV.263 @@ -3332,3 +3329,4 @@ function! julia_latex_symbols#get_dict() \ '\:baggage_claim:': '🛄', \ '\:left_luggage:': '🛅'} endfunction +endif diff --git a/autoload/pony.vim b/autoload/pony.vim index fd14136e..52e1981a 100644 --- a/autoload/pony.vim +++ b/autoload/pony.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'pony') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'pony') == -1 " Vim plugin file " Language: Pony " Maintainer: Jak Wings @@ -534,3 +531,4 @@ endfunction let &cpo = s:cpo_save unlet s:cpo_save +endif diff --git a/autoload/puppet/align.vim b/autoload/puppet/align.vim index 54a57599..c45bc90f 100644 --- a/autoload/puppet/align.vim +++ b/autoload/puppet/align.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'puppet') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1 function! puppet#align#IndentLevel(lnum) return indent(a:lnum) / &shiftwidth endfunction @@ -70,3 +67,4 @@ function! puppet#align#AlignHashrockets(...) abort endif endfor endfunction +endif diff --git a/autoload/puppet/ctags.vim b/autoload/puppet/ctags.vim index 5547f42e..469b1213 100644 --- a/autoload/puppet/ctags.vim +++ b/autoload/puppet/ctags.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'puppet') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1 if !exists('s:ctags_type') let s:ctags_type = 0 @@ -38,3 +35,4 @@ function! puppet#ctags#Type() return s:ctags_type endfunction +endif diff --git a/autoload/puppet/format.vim b/autoload/puppet/format.vim index f60bd782..c608f228 100644 --- a/autoload/puppet/format.vim +++ b/autoload/puppet/format.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'puppet') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1 " " Simple format using puppet's l:indents and align hashrockets function function! puppet#format#Format() abort @@ -59,3 +56,4 @@ function! puppet#format#Fallback(start_lnum, end_lnum) abort endfunction +endif diff --git a/autoload/python/utils.vim b/autoload/python/utils.vim index 2ae781ae..8a8170d6 100644 --- a/autoload/python/utils.vim +++ b/autoload/python/utils.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'python-compiler') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'python-compiler') == -1 " Sometimes Python issues debugging messages " which don't belong to a call stack context " this function filters these messages @@ -19,3 +16,4 @@ function! python#utils#fix_qflist() " {{{ call setqflist(l:traceback) endif endfunction " }}} +endif diff --git a/autoload/rubycomplete.vim b/autoload/rubycomplete.vim index 3f9a01f9..02a2d014 100644 --- a/autoload/rubycomplete.vim +++ b/autoload/rubycomplete.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ruby') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1 " Vim completion script " Language: Ruby " Maintainer: Mark Guzman @@ -878,3 +875,4 @@ call s:DefRuby() "}}} ruby-side code " 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 7aff515b..1051c842 100644 --- a/autoload/rust.vim +++ b/autoload/rust.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1 - finish -endif - +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 @@ -548,3 +545,4 @@ endfunction " }}}1 " vim: set et sw=4 sts=4 ts=8: +endif diff --git a/autoload/rust/debugging.vim b/autoload/rust/debugging.vim index 6392a024..40a691c3 100644 --- a/autoload/rust/debugging.vim +++ b/autoload/rust/debugging.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 " For debugging, inspired by https://github.com/w0rp/rust/blob/master/autoload/rust/debugging.vim let s:global_variable_list = [ @@ -105,3 +102,4 @@ function! rust#debugging#InfoToFile(filename) abort endfunction " vim: set et sw=4 sts=4 ts=8: +endif diff --git a/autoload/rust/delimitmate.vim b/autoload/rust/delimitmate.vim index 5e599f6a..8d88a8f4 100644 --- a/autoload/rust/delimitmate.vim +++ b/autoload/rust/delimitmate.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 let s:delimitMate_extra_excluded_regions = ',rustLifetimeCandidate,rustGenericLifetimeCandidate' " For this buffer, when delimitMate issues the `User delimitMate_map` @@ -46,3 +43,4 @@ endfunction " vim: set et sw=4 sts=4 ts=8: +endif diff --git a/autoload/rust/tags.vim b/autoload/rust/tags.vim index 74e2f9f0..d3a3e645 100644 --- a/autoload/rust/tags.vim +++ b/autoload/rust/tags.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 " Tagbar support code, for the sake of not automatically overriding its " configuration in case Universal Ctags is detected. @@ -19,3 +16,4 @@ function! rust#tags#IsUCtags() abort endfunction " vim: set et sw=4 sts=4 ts=8: +endif diff --git a/autoload/rustfmt.vim b/autoload/rustfmt.vim index f469ac13..4118eef4 100644 --- a/autoload/rustfmt.vim +++ b/autoload/rustfmt.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 " Author: Stephen Sugden " " Adapted from https://github.com/fatih/vim-go @@ -264,3 +261,4 @@ endfunction " vim: set et sw=4 sts=4 ts=8: +endif diff --git a/autoload/smt2.vim b/autoload/smt2.vim index fd87febe..655e0d3f 100644 --- a/autoload/smt2.vim +++ b/autoload/smt2.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'smt2') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'smt2') == -1 " Invokes the solver on current file function! smt2#RunSolver() silent !clear @@ -32,3 +29,4 @@ function! smt2#PrintSolverVersion() silent !clear execute "!" . g:smt2_solver_command . " " . g:smt2_solver_version_switch endfunction +endif diff --git a/autoload/terraform.vim b/autoload/terraform.vim index 8554022e..7ddfd9d1 100644 --- a/autoload/terraform.vim +++ b/autoload/terraform.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'terraform') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'terraform') == -1 function! terraform#fmt() if !filereadable(expand('%:p')) return @@ -58,3 +55,4 @@ function! terraform#commands(A, L, P) \ 'state' \ ] endfunction +endif diff --git a/autoload/vifm/edit.vim b/autoload/vifm/edit.vim index c92baeeb..c19155a9 100644 --- a/autoload/vifm/edit.vim +++ b/autoload/vifm/edit.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'vifm') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vifm') == -1 " common functions for vifm command-line editing buffer filetype plugins " Maintainer: xaizek " Last Change: August 18, 2013 @@ -16,3 +13,4 @@ function! vifm#edit#Init() " Start buffer editing in insert mode startinsert endfunction +endif diff --git a/autoload/vifm/globals.vim b/autoload/vifm/globals.vim index 74b49a04..f7ae6a98 100644 --- a/autoload/vifm/globals.vim +++ b/autoload/vifm/globals.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'vifm') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vifm') == -1 " common functions for vifm plugin related to globals " Maintainer: xaizek " Last Change: November 03, 2018 @@ -33,3 +30,4 @@ function! vifm#globals#Init() let g:vifm_embed_term = has('gui_running') endif endfunction +endif diff --git a/autoload/vital/_crystal.vim b/autoload/vital/_crystal.vim index d2c1b560..08972e34 100644 --- a/autoload/vital/_crystal.vim +++ b/autoload/vital/_crystal.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 let s:_plugin_name = expand(':t:r') function! vital#{s:_plugin_name}#new() abort @@ -11,3 +8,4 @@ endfunction function! vital#{s:_plugin_name}#function(funcname) abort silent! return function(a:funcname) endfunction +endif diff --git a/autoload/vital/_crystal/ColorEcho.vim b/autoload/vital/_crystal/ColorEcho.vim index 54c7927b..de55e0e6 100644 --- a/autoload/vital/_crystal/ColorEcho.vim +++ b/autoload/vital/_crystal/ColorEcho.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 " ___vital___ " NOTE: lines between '" ___vital___' is generated by :Vitalize. " Do not mofidify the code nor insert new lines before '" ___vital___' @@ -189,3 +186,4 @@ endfunction let &cpo = s:save_cpo unlet s:save_cpo +endif diff --git a/autoload/vital/_crystal/Data/List.vim b/autoload/vital/_crystal/Data/List.vim index 7c83136b..8595fa53 100644 --- a/autoload/vital/_crystal/Data/List.vim +++ b/autoload/vital/_crystal/Data/List.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 " ___vital___ " NOTE: lines between '" ___vital___' is generated by :Vitalize. " Do not mofidify the code nor insert new lines before '" ___vital___' @@ -466,3 +463,4 @@ let &cpo = s:save_cpo unlet s:save_cpo " vim:set et ts=2 sts=2 sw=2 tw=0: +endif diff --git a/autoload/vital/_crystal/Data/String.vim b/autoload/vital/_crystal/Data/String.vim index 2f822225..e8c72a47 100644 --- a/autoload/vital/_crystal/Data/String.vim +++ b/autoload/vital/_crystal/Data/String.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 " ___vital___ " NOTE: lines between '" ___vital___' is generated by :Vitalize. " Do not mofidify the code nor insert new lines before '" ___vital___' @@ -629,3 +626,4 @@ endfunction let &cpo = s:save_cpo unlet s:save_cpo " vim:set et ts=2 sts=2 sw=2 tw=0: +endif diff --git a/autoload/vital/_crystal/Process.vim b/autoload/vital/_crystal/Process.vim index 2ea6d584..5f19af55 100644 --- a/autoload/vital/_crystal/Process.vim +++ b/autoload/vital/_crystal/Process.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 " ___vital___ " NOTE: lines between '" ___vital___' is generated by :Vitalize. " Do not mofidify the code nor insert new lines before '" ___vital___' @@ -175,3 +172,4 @@ let &cpo = s:save_cpo unlet s:save_cpo " vim:set et ts=2 sts=2 sw=2 tw=0: +endif diff --git a/autoload/vital/_crystal/Web/JSON.vim b/autoload/vital/_crystal/Web/JSON.vim index 39bfd724..ef9cd5e9 100644 --- a/autoload/vital/_crystal/Web/JSON.vim +++ b/autoload/vital/_crystal/Web/JSON.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 " ___vital___ " NOTE: lines between '" ___vital___' is generated by :Vitalize. " Do not mofidify the code nor insert new lines before '" ___vital___' @@ -180,3 +177,4 @@ let &cpo = s:save_cpo unlet s:save_cpo " vim:set et ts=2 sts=2 sw=2 tw=0: +endif diff --git a/autoload/vital/crystal.vim b/autoload/vital/crystal.vim index 15e7487b..f5858108 100644 --- a/autoload/vital/crystal.vim +++ b/autoload/vital/crystal.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 let s:plugin_name = expand(':t:r') let s:vital_base_dir = expand(':h') let s:project_root = expand(':h:h:h') @@ -330,3 +327,4 @@ else return a:list endfunction endif +endif diff --git a/autoload/vital/crystal.vital b/autoload/vital/crystal.vital index 3deaa053..19e5f642 100644 --- a/autoload/vital/crystal.vital +++ b/autoload/vital/crystal.vital @@ -1,10 +1,8 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 crystal bee84ae23effb0510137ad177e98c94d8b3657a6 Process Web.JSON ColorEcho +endif diff --git a/autoload/xml/aria.vim b/autoload/xml/aria.vim index 40fbfc69..6d2d1a01 100644 --- a/autoload/xml/aria.vim +++ b/autoload/xml/aria.vim @@ -1,7 +1,4 @@ -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 completion for WAI-ARIA data file " Language: HTML + WAI-ARIA " Maintainer: othree @@ -459,3 +456,4 @@ 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 60ce2460..a8ab04dc 100644 --- a/autoload/xml/html5.vim +++ b/autoload/xml/html5.vim @@ -1,7 +1,4 @@ -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 completion for HTML5 data file " Language: HTML (version 5.1 Draft 2016 Jan 13) " Maintainer: Kao, Wei-Ko(othree) ( othree AT gmail DOT com ) @@ -872,3 +869,4 @@ let g:xmldata_html5 = { \ 'wbr': ['/>', ''], \ }, \ } +endif diff --git a/autoload/zig/config.vim b/autoload/zig/config.vim index 9a87fa1c..f208af45 100644 --- a/autoload/zig/config.vim +++ b/autoload/zig/config.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'zig') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'zig') == -1 function! zig#config#ListTypeCommands() abort return get(g:, 'zig_list_type_commands', {}) endfunction @@ -41,3 +38,4 @@ endfunction function! zig#config#Debug() abort return get(g:, 'zig_debug', []) endfunction +endif diff --git a/autoload/zig/fmt.vim b/autoload/zig/fmt.vim index cc7862c7..47c49cd4 100644 --- a/autoload/zig/fmt.vim +++ b/autoload/zig/fmt.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'zig') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'zig') == -1 " Adapted from fatih/vim-go: autoload/go/fmt.vim " " Copyright 2011 The Go Authors. All rights reserved. @@ -168,3 +165,4 @@ function! zig#fmt#ToggleFmtAutoSave() abort endfunction " vim: sw=2 ts=2 et +endif diff --git a/autoload/zig/list.vim b/autoload/zig/list.vim index 97ebf47f..9716e8c9 100644 --- a/autoload/zig/list.vim +++ b/autoload/zig/list.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'zig') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'zig') == -1 " Adapted from fatih/vim-go: autoload/go/list.vim " " Copyright 2011 The Go Authors. All rights reserved. @@ -160,3 +157,4 @@ function! zig#list#Type(for) abort endfunction " vim: sw=2 ts=2 et +endif diff --git a/autoload/zig/util.vim b/autoload/zig/util.vim index bb2df40c..8545d48b 100644 --- a/autoload/zig/util.vim +++ b/autoload/zig/util.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'zig') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'zig') == -1 " Adapted from vim-go: autoload/go/util.vim " " Copyright 2011 The Go Authors. All rights reserved. @@ -392,3 +389,4 @@ function! zig#util#HasDebug(flag) endfunction " vim: sw=2 ts=2 et +endif diff --git a/compiler/cake.vim b/compiler/cake.vim index 159bd59e..c5ca4b6a 100644 --- a/compiler/cake.vim +++ b/compiler/cake.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'coffee-script') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1 " Language: CoffeeScript " Maintainer: Mick Koch " URL: http://github.com/kchmck/vim-coffee-script @@ -17,3 +14,4 @@ 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 f616067b..25a4dcdb 100644 --- a/compiler/cargo.vim +++ b/compiler/cargo.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 " Vim compiler file " Compiler: Cargo Compiler " Maintainer: Damien Radtke @@ -51,3 +48,4 @@ unlet s:save_cpo " vint: +ProhibitAbbreviationOption " vim: set et sw=4 sts=4 ts=8: +endif diff --git a/compiler/coffee.vim b/compiler/coffee.vim index d68bf74d..46a248e1 100644 --- a/compiler/coffee.vim +++ b/compiler/coffee.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'coffee-script') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1 " Language: CoffeeScript " Maintainer: Mick Koch " URL: http://github.com/kchmck/vim-coffee-script @@ -84,3 +81,4 @@ augroup CoffeeUpdateMakePrg autocmd BufWritePre,BufFilePost call s:UpdateMakePrg() endif augroup END +endif diff --git a/compiler/credo.vim b/compiler/credo.vim index 100abb4e..5fdc99ab 100644 --- a/compiler/credo.vim +++ b/compiler/credo.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'elixir') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 if exists('current_compiler') finish endif @@ -13,3 +10,4 @@ endif CompilerSet errorformat=%f:%l:%c:\ %t:\ %m,%f:%l:\ %t:\ %m CompilerSet makeprg=mix\ credo\ suggest\ --format=flycheck +endif diff --git a/compiler/cryptol.vim b/compiler/cryptol.vim index 2fe14ff4..9e4779c6 100644 --- a/compiler/cryptol.vim +++ b/compiler/cryptol.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'cryptol') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cryptol') == -1 " Vim compiler file " Compiler: Cryptol version 1.8.19-academic Compiler " Maintainer: Edward O'Callaghan @@ -22,3 +19,4 @@ CompilerSet errorformat& " use the default 'errorformat' " "%<" means the current file name without extension. CompilerSet makeprg=cryptol\ -o\ %<\ % +endif diff --git a/compiler/cucumber.vim b/compiler/cucumber.vim index 54e34848..c9223cba 100644 --- a/compiler/cucumber.vim +++ b/compiler/cucumber.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'cucumber') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cucumber') == -1 " Vim compiler file " Compiler: Cucumber " Maintainer: Tim Pope @@ -31,3 +28,4 @@ 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 04c0ffdc..5045c882 100644 --- a/compiler/eruby.vim +++ b/compiler/eruby.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ruby') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1 " Vim compiler file " Language: eRuby " Maintainer: Doug Kearns @@ -41,3 +38,4 @@ let &cpo = s:cpo_save unlet s:cpo_save " vim: nowrap sw=2 sts=2 ts=8: +endif diff --git a/compiler/eslint.vim b/compiler/eslint.vim index 0aeb3a4c..1a10be93 100644 --- a/compiler/eslint.vim +++ b/compiler/eslint.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'javascript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 " Vim compiler plugin " Language: JavaScript " Maintainer: vim-javascript community @@ -18,3 +15,4 @@ endif CompilerSet makeprg=eslint\ -f\ compact\ % CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ %m +endif diff --git a/compiler/exunit.vim b/compiler/exunit.vim index 207ab5da..e459603b 100644 --- a/compiler/exunit.vim +++ b/compiler/exunit.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'elixir') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 if exists("current_compiler") finish endif @@ -27,3 +24,4 @@ let &cpo = s:cpo_save unlet s:cpo_save " vim: nowrap sw=2 sts=2 ts=8: +endif diff --git a/compiler/fish.vim b/compiler/fish.vim index 827ef3b4..9daba2e3 100644 --- a/compiler/fish.vim +++ b/compiler/fish.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'fish') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fish') == -1 if exists('current_compiler') finish endif @@ -9,3 +6,4 @@ let current_compiler = 'fish' CompilerSet makeprg=fish\ --no-execute\ % execute 'CompilerSet errorformat='.escape(fish#errorformat(), ' ') +endif diff --git a/compiler/go.vim b/compiler/go.vim index 9564df22..e5d1e061 100644 --- a/compiler/go.vim +++ b/compiler/go.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'go') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1 " Copyright 2013 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. @@ -51,3 +48,4 @@ let &cpo = s:cpo_save unlet s:cpo_save " vim: sw=2 ts=2 et +endif diff --git a/compiler/gradle.vim b/compiler/gradle.vim index 4d867c8a..6b1d83d2 100644 --- a/compiler/gradle.vim +++ b/compiler/gradle.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'gradle') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'gradle') == -1 " Vim Compiler File " Compiler: gradle @@ -26,3 +23,4 @@ CompilerSet errorformat= \%E%f:\ %\\d%\\+:\ %m\ @\ line\ %l\\,\ column\ %c.,%-C%.%#,%Z%p^, \%E%>%f:\ %\\d%\\+:\ %m,%C\ @\ line\ %l\\,\ column\ %c.,%-C%.%#,%Z%p^, \%-G%.%# +endif diff --git a/compiler/gradlew.vim b/compiler/gradlew.vim index aeb73eaa..6715b44d 100644 --- a/compiler/gradlew.vim +++ b/compiler/gradlew.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'gradle') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'gradle') == -1 " Vim Compiler File " Compiler: gradlew @@ -26,3 +23,4 @@ CompilerSet errorformat= \%E%f:\ %\\d%\\+:\ %m\ @\ line\ %l\\,\ column\ %c.,%-C%.%#,%Z%p^, \%E%>%f:\ %\\d%\\+:\ %m,%C\ @\ line\ %l\\,\ column\ %c.,%-C%.%#,%Z%p^, \%-G%.%# +endif diff --git a/compiler/haml.vim b/compiler/haml.vim index 084ca48a..cb0127e2 100644 --- a/compiler/haml.vim +++ b/compiler/haml.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'haml') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1 " Vim compiler file " Compiler: Haml " Maintainer: Tim Pope @@ -30,3 +27,4 @@ let &cpo = s:cpo_save unlet s:cpo_save " vim:set sw=2 sts=2: +endif diff --git a/compiler/lilypond.vim b/compiler/lilypond.vim index 6d398030..80cdcf5e 100644 --- a/compiler/lilypond.vim +++ b/compiler/lilypond.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'lilypond') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'lilypond') == -1 " LilyPond compiler file " Language: LilyPond " Maintainer: Heikki Junes @@ -21,3 +18,4 @@ setlocal makeprg=lilypond\ $* " (how to see multiple-line error messages?) setlocal errorformat=%f:%l:%c:\ %m,%f:%l:\ %m,In\ file\ included\ from\ %f:%l:,\^I\^Ifrom\ %f:%l%m " +endif diff --git a/compiler/ls.vim b/compiler/ls.vim index b8bc8a6b..581cf2b9 100644 --- a/compiler/ls.vim +++ b/compiler/ls.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'livescript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'livescript') == -1 " Language: LiveScript " Maintainer: George Zahariev " URL: http://github.com/gkz/vim-ls @@ -76,3 +73,4 @@ augroup LiveScriptUpdateMakePrg autocmd BufFilePost,BufWritePost call s:UpdateMakePrg() endif augroup END +endif diff --git a/compiler/mix.vim b/compiler/mix.vim index 17762815..a771ed15 100644 --- a/compiler/mix.vim +++ b/compiler/mix.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'elixir') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 if exists('current_compiler') finish endif @@ -18,3 +15,4 @@ CompilerSet errorformat= \%E==\ Compilation\ error\ in\ file\ %f\ ==, \%C**\ (%\\w%\\+)\ %f:%l:\ %m,%Z +endif diff --git a/compiler/nim.vim b/compiler/nim.vim index 51021694..637bd4a9 100644 --- a/compiler/nim.vim +++ b/compiler/nim.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'nim') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nim') == -1 if exists("current_compiler") finish endif @@ -27,3 +24,4 @@ unlet s:cpo_save let g:syntastic_nim_checkers = ['nim'] +endif diff --git a/compiler/nix-build.vim b/compiler/nix-build.vim index 7544ba1a..8298e2c9 100644 --- a/compiler/nix-build.vim +++ b/compiler/nix-build.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'nix') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nix') == -1 if exists('current_compiler') finish endif @@ -13,3 +10,4 @@ endif CompilerSet errorformat=error:\ %m\ at\ %f:%l:%c,builder\ for\ \'%m\'\ failed\ with\ exit\ code\ %n,fixed-output\ derivation\ produced\ path\ \'%s\'\ with\ %m CompilerSet makeprg=nix-build +endif diff --git a/compiler/ocaml.vim b/compiler/ocaml.vim index 25ea01a3..b6de8420 100644 --- a/compiler/ocaml.vim +++ b/compiler/ocaml.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ocaml') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1 " Vim Compiler File " Compiler: ocaml " Maintainer: Markus Mottl @@ -57,3 +54,4 @@ CompilerSet errorformat = let &cpo = s:cpo_save unlet s:cpo_save +endif diff --git a/compiler/python.vim b/compiler/python.vim index cd68c684..63930793 100644 --- a/compiler/python.vim +++ b/compiler/python.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'python-compiler') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'python-compiler') == -1 " Vim compiler file " Compiler: Unit testing tool for Python " Maintainer: Ali Aliev @@ -69,3 +66,4 @@ else endif " vim:foldmethod=marker:foldlevel=0 +endif diff --git a/compiler/rake.vim b/compiler/rake.vim index 2d9d703f..28a0e7d1 100644 --- a/compiler/rake.vim +++ b/compiler/rake.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ruby') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1 " Vim compiler file " Language: Rake " Maintainer: Tim Pope @@ -41,3 +38,4 @@ 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 f7102fda..8c9c020f 100644 --- a/compiler/rspec.vim +++ b/compiler/rspec.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ruby') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1 " Vim compiler file " Language: RSpec " Maintainer: Tim Pope @@ -37,3 +34,4 @@ 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 ab537481..ef88462d 100644 --- a/compiler/ruby.vim +++ b/compiler/ruby.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ruby') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1 " Vim compiler file " Language: Ruby " Function: Syntax check and/or error reporting @@ -46,3 +43,4 @@ 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 b99c73bf..884d05ac 100644 --- a/compiler/rubyunit.vim +++ b/compiler/rubyunit.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ruby') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1 " Vim compiler file " Language: Test::Unit - Ruby Unit Testing Framework " Maintainer: Doug Kearns @@ -37,3 +34,4 @@ 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 876dab5a..cb14dccf 100644 --- a/compiler/rustc.vim +++ b/compiler/rustc.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 " Vim compiler file " Compiler: Rust Compiler " Maintainer: Chris Morgan @@ -59,3 +56,4 @@ unlet s:save_cpo " vint: +ProhibitAbbreviationOption " vim: set et sw=4 sts=4 ts=8: +endif diff --git a/compiler/sbt.vim b/compiler/sbt.vim index e5aa4d14..6125bf29 100644 --- a/compiler/sbt.vim +++ b/compiler/sbt.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'scala') != -1 - finish -endif - +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 @@ -32,3 +29,4 @@ 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 48c60ab3..6e60b8c6 100644 --- a/compiler/typescript.vim +++ b/compiler/typescript.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'typescript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 if exists('current_compiler') finish endif @@ -23,3 +20,4 @@ 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/extras/flow.vim b/extras/flow.vim index 67b7671b..7a266036 100644 --- a/extras/flow.vim +++ b/extras/flow.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'javascript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 syntax region jsFlowDefinition contained start=/:/ end=/\%(\s*[,=;)\n]\)\@=/ contains=@jsFlowCluster containedin=jsParen syntax region jsFlowArgumentDef contained start=/:/ end=/\%(\s*[,)]\|=>\@!\)\@=/ contains=@jsFlowCluster syntax region jsFlowArray contained matchgroup=jsFlowNoise start=/\[/ end=/\]/ contains=@jsFlowCluster,jsComment fold @@ -111,3 +108,4 @@ if version >= 508 || !exists("did_javascript_syn_inits") HiLink jsFlowObjectFuncName jsObjectFuncName delcommand HiLink endif +endif diff --git a/extras/jsdoc.vim b/extras/jsdoc.vim index d7250f81..cad3df30 100644 --- a/extras/jsdoc.vim +++ b/extras/jsdoc.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'javascript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 "" syntax coloring for javadoc comments (HTML) syntax region jsComment matchgroup=jsComment start="/\*\s*" end="\*/" contains=jsDocTags,jsCommentTodo,jsCvsTag,@jsHtml,@Spell fold @@ -41,3 +38,4 @@ if version >= 508 || !exists("did_javascript_syn_inits") HiLink jsDocParam Label delcommand HiLink endif +endif diff --git a/extras/ngdoc.vim b/extras/ngdoc.vim index 90eceadf..f1384556 100644 --- a/extras/ngdoc.vim +++ b/extras/ngdoc.vim @@ -1,7 +1,5 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'javascript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 syntax match jsDocTags contained /@\(link\|method[oO]f\|ngdoc\|ng[iI]nject\|restrict\)/ nextgroup=jsDocParam skipwhite syntax match jsDocType contained "\%(#\|\$\|\w\|\"\|-\|\.\|:\|\/\)\+" nextgroup=jsDocParam skipwhite syntax match jsDocParam contained "\%(#\|\$\|\w\|\"\|-\|\.\|:\|{\|}\|\/\|\[\|]\|=\)\+" +endif diff --git a/ftplugin/Dockerfile.vim b/ftplugin/Dockerfile.vim index 977be845..f1335d79 100644 --- a/ftplugin/Dockerfile.vim +++ b/ftplugin/Dockerfile.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'dockerfile') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dockerfile') == -1 " Define comment string setlocal commentstring=#\ %s @@ -35,3 +32,4 @@ inoreabbr workdir =DockerfileReplaceInstruction("workdir" inoreabbr arg =DockerfileReplaceInstruction("arg", "ARG") inoreabbr onbuild =DockerfileReplaceInstruction("onbuild", "ONBUILD") inoreabbr stopsignal =DockerfileReplaceInstruction("stopsignal", "STOPSIGNAL") +endif diff --git a/ftplugin/ansible.vim b/ftplugin/ansible.vim index 491cd803..7ee5166a 100644 --- a/ftplugin/ansible.vim +++ b/ftplugin/ansible.vim @@ -1,10 +1,8 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ansible') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ansible') == -1 " Slow yaml highlighting workaround if exists('+regexpengine') && ('®expengine' == 0) setlocal regexpengine=1 endif set isfname+=@-@ set path+=./../templates,./../files,templates,files +endif diff --git a/ftplugin/ansible_hosts.vim b/ftplugin/ansible_hosts.vim index 8b3fbe93..e2ecc4b3 100644 --- a/ftplugin/ansible_hosts.vim +++ b/ftplugin/ansible_hosts.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ansible') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ansible') == -1 if exists("b:did_ftplugin") finish else @@ -11,3 +8,4 @@ endif setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions-=c let b:undo_ftplugin = "setl comments< commentstring< formatoptions<" +endif diff --git a/ftplugin/blade.vim b/ftplugin/blade.vim index cbc8513a..a5f98824 100644 --- a/ftplugin/blade.vim +++ b/ftplugin/blade.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'blade') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'blade') == -1 " Vim filetype plugin " Language: Blade (Laravel) " Maintainer: Jason Walton @@ -35,3 +32,4 @@ if exists('loaded_matchit') && exists('b:match_words') let b:match_skip = 'synIDattr(synID(line("."), col("."), 0), "name") !=# "bladeKeyword"' let b:match_ignorecase = 0 endif +endif diff --git a/ftplugin/caddyfile.vim b/ftplugin/caddyfile.vim index 1339ca94..a90e010d 100644 --- a/ftplugin/caddyfile.vim +++ b/ftplugin/caddyfile.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'caddyfile') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'caddyfile') == -1 " Language: Caddyfile " Author: Josh Glendenning @@ -26,3 +23,4 @@ else let g:NERDCustomDelimiters = {'caddyfile': s:delimiters} endif unlet s:delimiters +endif diff --git a/ftplugin/clojure.vim b/ftplugin/clojure.vim index 0ed94392..0563e066 100644 --- a/ftplugin/clojure.vim +++ b/ftplugin/clojure.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'clojure') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'clojure') == -1 " Vim filetype plugin file " Language: Clojure " Author: Meikel Brandmeyer @@ -97,3 +94,4 @@ 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 7084424e..2ccafc1f 100644 --- a/ftplugin/coffee.vim +++ b/ftplugin/coffee.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'coffee-script') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1 " Language: CoffeeScript " Maintainer: Mick Koch " URL: http://github.com/kchmck/vim-coffee-script @@ -407,3 +404,4 @@ command! -buffer -range=% -bar -nargs=* CoffeeRun \ call s:CoffeeRun(, , ) command! -buffer -range=% -bang -bar -nargs=* CoffeeLint \ call s:CoffeeLint(, , , ) +endif diff --git a/ftplugin/cryptol/folding.vim b/ftplugin/cryptol/folding.vim index a74c8bc4..8c70c104 100644 --- a/ftplugin/cryptol/folding.vim +++ b/ftplugin/cryptol/folding.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'cryptol') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cryptol') == -1 " Copyright © 2013 Edward O'Callaghan. All Rights Reserved. "setlocal foldmethod=indent @@ -48,3 +45,4 @@ function! GetPotionFold(lnum) return '>' . next_indent endif endfunction +endif diff --git a/ftplugin/crystal.vim b/ftplugin/crystal.vim index 8ebdaed8..b6e10338 100644 --- a/ftplugin/crystal.vim +++ b/ftplugin/crystal.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 if exists('b:did_ftplugin') finish endif @@ -82,3 +79,4 @@ let &cpo = s:save_cpo unlet s:save_cpo " vim: nowrap sw=2 sts=2 ts=8: +endif diff --git a/ftplugin/csv.vim b/ftplugin/csv.vim index 2545b37f..ad4c0bec 100644 --- a/ftplugin/csv.vim +++ b/ftplugin/csv.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'csv') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'csv') == -1 " Filetype plugin for editing CSV files. "{{{1 " Author: Christian Brabandt " Version: 0.31 @@ -36,3 +33,4 @@ unlet s:cpo_save " Vim Modeline " {{{2 " vim: set foldmethod=marker et sw=0 sts=-1 ts=4: +endif diff --git a/ftplugin/cucumber.vim b/ftplugin/cucumber.vim index a07db5da..cf4c7b78 100644 --- a/ftplugin/cucumber.vim +++ b/ftplugin/cucumber.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'cucumber') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cucumber') == -1 " Vim filetype plugin " Language: Cucumber " Maintainer: Tim Pope @@ -152,3 +149,4 @@ let &cpo = s:keepcpo unlet s:keepcpo " vim:set sts=2 sw=2: +endif diff --git a/ftplugin/dart.vim b/ftplugin/dart.vim index 71114b0a..23b709c0 100644 --- a/ftplugin/dart.vim +++ b/ftplugin/dart.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'dart') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dart') == -1 if exists('b:did_ftplugin') finish endif @@ -31,3 +28,4 @@ setlocal includeexpr=dart#resolveUri(v:fname) setlocal isfname+=: let b:undo_ftplugin = 'setl et< fo< sw< sts< com< cms< inex< isf<' +endif diff --git a/ftplugin/dhall.vim b/ftplugin/dhall.vim index 7afad55f..7ce258c5 100644 --- a/ftplugin/dhall.vim +++ b/ftplugin/dhall.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'dhall') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dhall') == -1 if exists('b:dhall_ftplugin') finish endif @@ -37,3 +34,4 @@ endif augroup dhall au BufNewFile,BufRead *.dhall setl shiftwidth=2 augroup END +endif diff --git a/ftplugin/docker-compose.vim b/ftplugin/docker-compose.vim index 45a103fc..44361375 100644 --- a/ftplugin/docker-compose.vim +++ b/ftplugin/docker-compose.vim @@ -1,9 +1,7 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'dockerfile') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dockerfile') == -1 " Define comment string setlocal commentstring=#\ %s " Enable automatic comment insertion setlocal formatoptions+=cro +endif diff --git a/ftplugin/eelixir.vim b/ftplugin/eelixir.vim index 7c1b2b9c..4575f568 100644 --- a/ftplugin/eelixir.vim +++ b/ftplugin/eelixir.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'elixir') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 if exists("b:did_ftplugin") finish endif @@ -109,3 +106,4 @@ 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 5354a6c1..57f5a6f7 100644 --- a/ftplugin/elixir.vim +++ b/ftplugin/elixir.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'elixir') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 if exists('b:did_ftplugin') finish endif @@ -53,3 +50,4 @@ onoremap [] ':silent keeppatterns ?'.b:block_end .'> " URL: http://github.com/yalesov/vim-ember-script @@ -23,3 +20,4 @@ else endif setlocal comments=:# setlocal commentstring=#\ %s +endif diff --git a/ftplugin/emblem.vim b/ftplugin/emblem.vim index e3a80a42..eec84036 100644 --- a/ftplugin/emblem.vim +++ b/ftplugin/emblem.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'emblem') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'emblem') == -1 " Language: emblem " Maintainer: Yulij Andreevich Lesov " URL: http://github.com/yalesov/vim-emblem @@ -19,3 +16,4 @@ setlocal smartindent setlocal formatoptions=q setlocal comments=:/ setlocal commentstring=/\ %s +endif diff --git a/ftplugin/eruby.vim b/ftplugin/eruby.vim index 483f40c9..ba813b9e 100644 --- a/ftplugin/eruby.vim +++ b/ftplugin/eruby.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ruby') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1 " Vim filetype plugin " Language: eRuby " Maintainer: Tim Pope @@ -133,3 +130,4 @@ function! ErubyAtCursor() abort endfunction " vim: nowrap sw=2 sts=2 ts=8: +endif diff --git a/ftplugin/fish.vim b/ftplugin/fish.vim index 3784b4c4..6097e2ab 100644 --- a/ftplugin/fish.vim +++ b/ftplugin/fish.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'fish') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fish') == -1 setlocal comments=:# setlocal commentstring=#%s setlocal define=\\v^\\s*function> @@ -41,3 +38,4 @@ let b:match_words = let b:endwise_addition = 'end' let b:endwise_words = 'begin,function,if,switch,while,for' let b:endwise_syngroups = 'fishKeyword,fishConditional,fishRepeat' +endif diff --git a/ftplugin/git.vim b/ftplugin/git.vim index 7aca0e5b..6bd9098d 100644 --- a/ftplugin/git.vim +++ b/ftplugin/git.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'git') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1 " Vim filetype plugin " Language: generic git output " Maintainer: Tim Pope @@ -43,3 +40,4 @@ 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 3eb77a67..723b2915 100644 --- a/ftplugin/gitcommit.vim +++ b/ftplugin/gitcommit.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'git') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1 " Vim filetype plugin " Language: git commit file " Maintainer: Tim Pope @@ -68,3 +65,4 @@ function! s:gitdiffcached(bang,gitdir,...) nnoremap q :q setlocal buftype=nowrite nobuflisted noswapfile nomodifiable filetype=git endfunction +endif diff --git a/ftplugin/gitconfig.vim b/ftplugin/gitconfig.vim index 325b771e..0f0d705b 100644 --- a/ftplugin/gitconfig.vim +++ b/ftplugin/gitconfig.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'git') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1 " Vim filetype plugin " Language: git config file " Maintainer: Tim Pope @@ -17,3 +14,4 @@ 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 e28d83c0..202f676e 100644 --- a/ftplugin/gitrebase.vim +++ b/ftplugin/gitrebase.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'git') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1 " Vim filetype plugin " Language: git rebase --interactive " Maintainer: Tim Pope @@ -47,3 +44,4 @@ endif nnoremap K col('.') < 7 && expand('cword>') =~ '\X' && getline('.') =~ '^\w\+\s\+\x\+\>' ? 'wK' : 'K' let b:undo_ftplugin = b:undo_ftplugin . "|nunmap K" +endif diff --git a/ftplugin/gitsendemail.vim b/ftplugin/gitsendemail.vim index baf6080e..30aed3f6 100644 --- a/ftplugin/gitsendemail.vim +++ b/ftplugin/gitsendemail.vim @@ -1,10 +1,8 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'git') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1 " Vim filetype plugin " Language: git send-email message " Maintainer: Tim Pope " Last Change: 2009 Dec 24 runtime! ftplugin/mail.vim +endif diff --git a/ftplugin/graphql.vim b/ftplugin/graphql.vim index 7734acee..492fe107 100644 --- a/ftplugin/graphql.vim +++ b/ftplugin/graphql.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'graphql') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1 " Vim filetype plugin " Language: GraphQL " Maintainer: Jon Parise @@ -20,3 +17,4 @@ setlocal shiftwidth=2 setlocal expandtab let b:undo_ftplugin = 'setlocal com< cms< fo< isk< sts< sw< et<' +endif diff --git a/ftplugin/haml.vim b/ftplugin/haml.vim index ddcae644..7fa8efa4 100644 --- a/ftplugin/haml.vim +++ b/ftplugin/haml.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'haml') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1 " Vim filetype plugin " Language: Haml " Maintainer: Tim Pope @@ -73,3 +70,4 @@ let &cpo = s:save_cpo unlet s:save_cpo " vim:set sw=2: +endif diff --git a/ftplugin/hcl.vim b/ftplugin/hcl.vim index c648150c..a48f406b 100644 --- a/ftplugin/hcl.vim +++ b/ftplugin/hcl.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'hcl') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'hcl') == -1 " File: ftplugin/hcl.vim " Author: BABAROT " Description: FileType Plugin for HCL @@ -39,3 +36,4 @@ let &cpo = s:save_cpo unlet s:save_cpo " vim: set et sw=4 ts=4: +endif diff --git a/ftplugin/hive.vim b/ftplugin/hive.vim index 70daab7d..c7ceb774 100644 --- a/ftplugin/hive.vim +++ b/ftplugin/hive.vim @@ -1,6 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'hive') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'hive') == -1 setlocal comments=:-- setlocal commentstring=--\ %s +endif diff --git a/ftplugin/html.vim b/ftplugin/html.vim index 87fed79d..7b856136 100644 --- a/ftplugin/html.vim +++ b/ftplugin/html.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'html5') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 " Maintainer: othree " URL: http://github.com/othree/html5.vim " Last Change: 2014-05-02 @@ -11,3 +8,4 @@ endif " setlocal iskeyword+=- setlocal commentstring= +endif diff --git a/ftplugin/i3config.vim b/ftplugin/i3config.vim index 41de3247..f5451e80 100644 --- a/ftplugin/i3config.vim +++ b/ftplugin/i3config.vim @@ -1,5 +1,3 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'i3') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'i3') == -1 setlocal commentstring=#\ %s +endif diff --git a/ftplugin/idris.vim b/ftplugin/idris.vim index ce18060d..777b6cfd 100644 --- a/ftplugin/idris.vim +++ b/ftplugin/idris.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'idris') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'idris') == -1 if bufname('%') == "idris-response" finish endif @@ -344,3 +341,4 @@ menu Idris.Proof\ Search\ with\ hints p au BufHidden idris-response call IdrisHideResponseWin() au BufEnter idris-response call IdrisShowResponseWin() +endif diff --git a/ftplugin/ion.vim b/ftplugin/ion.vim index 7cb349b9..1a056112 100644 --- a/ftplugin/ion.vim +++ b/ftplugin/ion.vim @@ -1,9 +1,7 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ion') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ion') == -1 if exists("b:did_ftplugin") | finish | endif let b:did_ftplugin = 1 setlocal commentstring=#%s +endif diff --git a/ftplugin/jbuild.vim b/ftplugin/jbuild.vim index 1ac4801d..628620ad 100644 --- a/ftplugin/jbuild.vim +++ b/ftplugin/jbuild.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ocaml') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1 if exists("b:did_ftplugin") finish endif @@ -14,3 +11,4 @@ setl commentstring=;\ %s setl comments=:; setl iskeyword+=#,?,.,/ +endif diff --git a/ftplugin/json.vim b/ftplugin/json.vim index 132bea4b..f8185ca5 100644 --- a/ftplugin/json.vim +++ b/ftplugin/json.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'json') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'json') == -1 " Vim syntax file " Language: JSON " Maintainer: Eli Parra https://github.com/elzr/vim-json @@ -40,3 +37,4 @@ if has('conceal') "maybe g:vim_json_syntax_conceal could be settable to 0,1,2 to map "directly to vim's conceallevels? unsure if anyone cares endif +endif diff --git a/ftplugin/julia.vim b/ftplugin/julia.vim index bdfe9877..27930727 100644 --- a/ftplugin/julia.vim +++ b/ftplugin/julia.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'julia') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1 " Vim filetype plugin file " Language: Julia " Maintainer: Carlo Baldassi @@ -109,3 +106,4 @@ let b:undo_ftplugin .= " | delcommand JuliaDoc | delcommand JuliaDocKeywordprg" let &cpo = s:save_cpo unlet s:save_cpo +endif diff --git a/ftplugin/juliadoc.vim b/ftplugin/juliadoc.vim index b56a45d2..aa21646e 100644 --- a/ftplugin/juliadoc.vim +++ b/ftplugin/juliadoc.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'julia') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1 " Vim filetype plugin file " Language: Julia document @@ -32,3 +29,4 @@ let b:undo_ftplugin .= " | delcommand JuliaDoc | delcommand JuliaDocKeywordprg" let &cpo = s:save_cpo unlet s:save_cpo +endif diff --git a/ftplugin/kotlin.vim b/ftplugin/kotlin.vim index 519a153a..aefa76c9 100644 --- a/ftplugin/kotlin.vim +++ b/ftplugin/kotlin.vim @@ -1,9 +1,7 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'kotlin') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'kotlin') == -1 if exists('b:did_ftplugin') | finish | endif let b:did_ftplugin = 1 setlocal comments=:// setlocal commentstring=//\ %s +endif diff --git a/ftplugin/latex-box/common.vim b/ftplugin/latex-box/common.vim index 1eccacd4..938d97b2 100644 --- a/ftplugin/latex-box/common.vim +++ b/ftplugin/latex-box/common.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'latex') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1 " LaTeX Box common functions " Error Format {{{ @@ -415,3 +412,4 @@ 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 365ea14f..74f98696 100644 --- a/ftplugin/latex-box/complete.vim +++ b/ftplugin/latex-box/complete.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'latex') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1 " LaTeX Box completion setlocal omnifunc=LatexBox_Complete @@ -934,3 +931,4 @@ command! LatexLabels call 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 a52d745e..a06358b5 100644 --- a/ftplugin/latex-box/findmain.vim +++ b/ftplugin/latex-box/findmain.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'latex') != -1 - finish -endif - +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 @@ -64,3 +61,4 @@ function! LatexBox_GetMainFileName(...) " certain platforms. return lheadfile endfunction +endif diff --git a/ftplugin/latex-box/folding.vim b/ftplugin/latex-box/folding.vim index 6311ebf2..1dac48d5 100644 --- a/ftplugin/latex-box/folding.vim +++ b/ftplugin/latex-box/folding.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'latex') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1 " Folding support for LaTeX " @@ -380,3 +377,4 @@ 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 bee760a5..c1b917b7 100644 --- a/ftplugin/latex-box/latexmk.vim +++ b/ftplugin/latex-box/latexmk.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'latex') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1 " LaTeX Box latexmk functions " Options and variables {{{ @@ -556,3 +553,4 @@ 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 ccfb5d8d..7d2e0633 100644 --- a/ftplugin/latex-box/mappings.vim +++ b/ftplugin/latex-box/mappings.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'latex') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1 " LaTeX Box mappings if exists("g:LatexBox_no_mappings") @@ -108,3 +105,4 @@ vnoremap [[ :call LatexBoxNextSection(0,1,1) " }}} " 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 b9614d72..9caa0ed5 100644 --- a/ftplugin/latex-box/motion.vim +++ b/ftplugin/latex-box/motion.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'latex') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1 " LaTeX Box motion functions " Motion options {{{ @@ -546,3 +543,4 @@ 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 9553b211..1c4c4953 100644 --- a/ftplugin/latextoc.vim +++ b/ftplugin/latextoc.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'latex') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1 " {{{1 Settings setlocal buftype=nofile setlocal bufhidden=wipe @@ -204,3 +201,4 @@ nnoremap 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 55a282dc..5fb1f5f3 100644 --- a/ftplugin/less.vim +++ b/ftplugin/less.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'less') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'less') == -1 " Vim filetype plugin " Language: LessCSS " Author: Tim Pope @@ -28,3 +25,4 @@ setlocal fo=croql let &l:include = '^\s*@import\s\+\%(url(\)\=["'']\=' " vim:set sw=2: +endif diff --git a/ftplugin/lilypond.vim b/ftplugin/lilypond.vim index b755a6bb..a0e1a137 100644 --- a/ftplugin/lilypond.vim +++ b/ftplugin/lilypond.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'lilypond') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'lilypond') == -1 " LilyPond filetype plugin " Language: LilyPond (ft=ly) " Maintainer: Heikki Junes @@ -59,3 +56,4 @@ setlocal dictionary-=$VIM/syntax/lilypond-words dictionary+=$VIM/syntax/lilypond setlocal complete-=k complete+=k " setlocal showmatch +endif diff --git a/ftplugin/litcoffee.vim b/ftplugin/litcoffee.vim index 9bb4f697..6dfb197c 100644 --- a/ftplugin/litcoffee.vim +++ b/ftplugin/litcoffee.vim @@ -1,5 +1,3 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'coffee-script') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1 runtime ftplugin/coffee.vim +endif diff --git a/ftplugin/llvm.vim b/ftplugin/llvm.vim index 0006c288..b2c65f4e 100644 --- a/ftplugin/llvm.vim +++ b/ftplugin/llvm.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'llvm') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'llvm') == -1 " Vim filetype plugin file " Language: LLVM Assembly " Maintainer: The LLVM team, http://llvm.org/ @@ -14,3 +11,4 @@ let b:did_ftplugin = 1 setlocal softtabstop=2 shiftwidth=2 setlocal expandtab setlocal comments+=:; +endif diff --git a/ftplugin/ls.vim b/ftplugin/ls.vim index a0b86468..b40ca5ea 100644 --- a/ftplugin/ls.vim +++ b/ftplugin/ls.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'livescript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'livescript') == -1 " Language: LiveScript " Maintainer: George Zahariev " URL: http://github.com/gkz/vim-ls @@ -206,3 +203,4 @@ command! -range=% -bar -nargs=* -complete=customlist,s:LiveScriptCompileComplete \ LiveScriptCompile call s:LiveScriptCompile(, , ) " Run some LiveScript. command! -range=% -bar LiveScriptRun ,:w !lsc -sp +endif diff --git a/ftplugin/mail_vifm.vim b/ftplugin/mail_vifm.vim index 7da4b3fb..9dc2cbb5 100644 --- a/ftplugin/mail_vifm.vim +++ b/ftplugin/mail_vifm.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'vifm') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vifm') == -1 " Mail file type extension to pick files for attachments via vifm " Maintainer: xaizek " Last Change: January 02, 2018 @@ -66,3 +63,4 @@ endfunction nnoremap a :call AddMailAttachments() " vim: set tabstop=2 softtabstop=2 shiftwidth=2 noexpandtab cinoptions-=(0 : +endif diff --git a/ftplugin/mako.vim b/ftplugin/mako.vim index 1caf0e0c..b20b9593 100644 --- a/ftplugin/mako.vim +++ b/ftplugin/mako.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'mako') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mako') == -1 " Vim filetype plugin file " Language: Mako " Maintainer: Randy Stauner @@ -13,3 +10,4 @@ let b:did_ftplugin = 1 setlocal comments=:## setlocal commentstring=##%s +endif diff --git a/ftplugin/meson.vim b/ftplugin/meson.vim index 870f0052..8949b6ee 100644 --- a/ftplugin/meson.vim +++ b/ftplugin/meson.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'meson') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'meson') == -1 " Vim filetype plugin file " Language: meson " Original Author: Laurent Pinchart @@ -17,3 +14,4 @@ setlocal softtabstop=2 let &cpo = s:keepcpo unlet s:keepcpo +endif diff --git a/ftplugin/mma.vim b/ftplugin/mma.vim index c1f8a5a3..237f1da8 100644 --- a/ftplugin/mma.vim +++ b/ftplugin/mma.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'mathematica') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mathematica') == -1 "Vim filetype plugin " Language: Mathematica " Maintainer: R. Menon @@ -61,3 +58,4 @@ unlet s:cpo_save "} " vim: set foldmarker={,} foldlevel=0 foldmethod=marker: +endif diff --git a/ftplugin/moon.vim b/ftplugin/moon.vim index e8adbf2f..e99de496 100644 --- a/ftplugin/moon.vim +++ b/ftplugin/moon.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'moonscript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'moonscript') == -1 " Language: MoonScript " Maintainer: leafo " Based On: CoffeeScript by Mick Koch @@ -18,3 +15,4 @@ setlocal comments=:-- setlocal commentstring=--\ %s let b:undo_ftplugin = "setlocal commentstring< comments< formatoptions<" +endif diff --git a/ftplugin/mustache.vim b/ftplugin/mustache.vim index c0eb6221..03889841 100644 --- a/ftplugin/mustache.vim +++ b/ftplugin/mustache.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'handlebars') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'handlebars') == -1 if exists('b:loaded_mustache_handlebars') finish endif @@ -125,3 +122,4 @@ let &cpo = s:cpo_save unlet s:cpo_save " vim: nofoldenable +endif diff --git a/ftplugin/nginx.vim b/ftplugin/nginx.vim index 6ba4d016..08f9b340 100644 --- a/ftplugin/nginx.vim +++ b/ftplugin/nginx.vim @@ -1,5 +1,3 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'nginx') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nginx') == -1 setlocal commentstring=#\ %s +endif diff --git a/ftplugin/nix.vim b/ftplugin/nix.vim index c80b825a..40444150 100644 --- a/ftplugin/nix.vim +++ b/ftplugin/nix.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'nix') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nix') == -1 " Vim filetype plugin " Language: Nix " Maintainer: Daiderd Jordan @@ -23,3 +20,4 @@ if get(g:, 'nix_recommended_style', 1) \ softtabstop=2 \ expandtab endif +endif diff --git a/ftplugin/oasis.vim b/ftplugin/oasis.vim index 8471329f..51442403 100644 --- a/ftplugin/oasis.vim +++ b/ftplugin/oasis.vim @@ -1,7 +1,5 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ocaml') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1 setlocal comments=:# setlocal commentstring=#\ %s +endif diff --git a/ftplugin/objc.vim b/ftplugin/objc.vim index b3cfc708..5378f43b 100644 --- a/ftplugin/objc.vim +++ b/ftplugin/objc.vim @@ -1,10 +1,8 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'objc') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'objc') == -1 " Use C++ style comment strings with commentary.vim setl commentstring=//%s " Search for include files inside frameworks (used for gf etc.) setl includeexpr=substitute(v:fname,'\\([^/]\\+\\)/\\(.\\+\\)','/System/Library/Frameworks/\\1.framework/Headers/\\2','') +endif diff --git a/ftplugin/ocaml.vim b/ftplugin/ocaml.vim index 77f8fef0..9c8f7908 100644 --- a/ftplugin/ocaml.vim +++ b/ftplugin/ocaml.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ocaml') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1 " Language: OCaml " Maintainer: David Baelde " Mike Leary @@ -642,3 +639,4 @@ let &cpoptions=s:cposet unlet s:cposet " vim:sw=2 fdm=indent +endif diff --git a/ftplugin/ocamlbuild_tags.vim b/ftplugin/ocamlbuild_tags.vim index 8471329f..51442403 100644 --- a/ftplugin/ocamlbuild_tags.vim +++ b/ftplugin/ocamlbuild_tags.vim @@ -1,7 +1,5 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ocaml') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1 setlocal comments=:# setlocal commentstring=#\ %s +endif diff --git a/ftplugin/omake.vim b/ftplugin/omake.vim index ec3b428c..c38328a0 100644 --- a/ftplugin/omake.vim +++ b/ftplugin/omake.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ocaml') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1 " Vim filetype plugin file " Language: OMake @@ -26,3 +23,4 @@ setlocal expandtab " Including files. let &l:include = '^\s*include' +endif diff --git a/ftplugin/opencl.vim b/ftplugin/opencl.vim index 86d640ff..d3daecac 100644 --- a/ftplugin/opencl.vim +++ b/ftplugin/opencl.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'opencl') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'opencl') == -1 if exists("b:did_ftplugin") | finish | endif if version > 600 @@ -17,3 +14,4 @@ setlocal smarttab setlocal smartindent let b:did_ftplugin = 1 +endif diff --git a/ftplugin/perl.vim b/ftplugin/perl.vim index 0546d96a..cb1172e7 100644 --- a/ftplugin/perl.vim +++ b/ftplugin/perl.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'perl') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1 " Vim filetype plugin file " Language: Perl " Maintainer: vim-perl @@ -91,3 +88,4 @@ let b:match_words = '\:\:\' " Restore the saved compatibility options. let &cpo = s:save_cpo unlet s:save_cpo +endif diff --git a/ftplugin/plantuml.vim b/ftplugin/plantuml.vim index 46d26dac..ab6d331b 100644 --- a/ftplugin/plantuml.vim +++ b/ftplugin/plantuml.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'plantuml') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'plantuml') == -1 scriptencoding utf-8 " Vim filetype plugin file " Language: PlantUML @@ -46,3 +43,4 @@ let b:endwise_syngroups = 'plantumlKeyword' let &cpoptions = s:cpo_save unlet s:cpo_save +endif diff --git a/ftplugin/pony.vim b/ftplugin/pony.vim index c168cb97..7168d6be 100644 --- a/ftplugin/pony.vim +++ b/ftplugin/pony.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'pony') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'pony') == -1 " Vim filetype plugin file " Language: Pony " Maintainer: Jak Wings @@ -42,3 +39,4 @@ let &cpo = s:cpo_save unlet s:cpo_save let b:did_ftplugin = 1 +endif diff --git a/ftplugin/ps1.vim b/ftplugin/ps1.vim index 0357f9df..c7a19fc4 100644 --- a/ftplugin/ps1.vim +++ b/ftplugin/ps1.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'powershell') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'powershell') == -1 " Vim filetype plugin file " Language: Windows PowerShell " Maintainer: Peter Provost @@ -36,3 +33,4 @@ endif let b:undo_ftplugin = "setlocal tw< cms< fo<" . \ " | unlet! b:browsefilter" +endif diff --git a/ftplugin/ps1xml.vim b/ftplugin/ps1xml.vim index 0365f588..4b1b3485 100644 --- a/ftplugin/ps1xml.vim +++ b/ftplugin/ps1xml.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'powershell') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'powershell') == -1 " Vim filetype plugin file " Language: Windows PowerShell " Maintainer: Peter Provost @@ -33,3 +30,4 @@ endif let b:undo_ftplugin = "setlocal tw< cms< fo<" . \ " | unlet! b:browsefilter" +endif diff --git a/ftplugin/pug.vim b/ftplugin/pug.vim index 1aa33607..32b8f76e 100644 --- a/ftplugin/pug.vim +++ b/ftplugin/pug.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'pug') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'pug') == -1 " Vim filetype plugin " Language: Pug " Maintainer: Joshua Borton @@ -59,3 +56,4 @@ let b:undo_ftplugin = "setl cms< com< " let &cpo = s:save_cpo " vim:set sw=2: +endif diff --git a/ftplugin/puppet.vim b/ftplugin/puppet.vim index 0796f743..876b4748 100644 --- a/ftplugin/puppet.vim +++ b/ftplugin/puppet.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'puppet') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1 setl ts=2 setl sts=2 setl sw=2 @@ -9,3 +6,4 @@ setl et setl keywordprg=puppet\ describe\ --providers setl iskeyword=-,:,@,48-57,_,192-255 setl cms=#\ %s +endif diff --git a/ftplugin/puppet_tagbar.vim b/ftplugin/puppet_tagbar.vim index b607ccb0..9fdf69c7 100644 --- a/ftplugin/puppet_tagbar.vim +++ b/ftplugin/puppet_tagbar.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'puppet') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1 " Puppet set up for Tagbar plugin " (https://github.com/majutsushi/tagbar). @@ -46,3 +43,4 @@ endif let g:tagbar_type_puppet.deffile = puppet#ctags#OptionFile() +endif diff --git a/ftplugin/purescript.vim b/ftplugin/purescript.vim index 2030b86a..b637d347 100644 --- a/ftplugin/purescript.vim +++ b/ftplugin/purescript.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'purescript') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'purescript') == -1 setlocal comments=s1fl:{-,mb:\ \ ,ex:-},:--\ \|,:-- setlocal include=^import setlocal includeexpr=printf('%s.purs',substitute(v:fname,'\\.','/','g')) @@ -40,3 +37,4 @@ fun! InitPureScript() call add(s:PS, [dir, &l:path]) endfun call InitPureScript() +endif diff --git a/ftplugin/qml.vim b/ftplugin/qml.vim index e4320790..b4043b32 100644 --- a/ftplugin/qml.vim +++ b/ftplugin/qml.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'qml') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'qml') == -1 " Vim filetype plugin file " Language: qml " Last change: 2014 Feb 8 @@ -39,3 +36,4 @@ setlocal formatoptions+=croql let &cpoptions = s:cpoptions_save unlet s:cpoptions_save +endif diff --git a/ftplugin/racket.vim b/ftplugin/racket.vim index 84d6ddaa..3f76c298 100644 --- a/ftplugin/racket.vim +++ b/ftplugin/racket.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'racket') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'racket') == -1 " Language: Racket " Maintainer: Will Langstroth " URL: http://github.com/wlangstroth/vim-racket @@ -61,3 +58,4 @@ nnoremap :!racket -t % "setl commentstring=;;%s setl commentstring=#\|\ %s\ \|# +endif diff --git a/ftplugin/raml.vim b/ftplugin/raml.vim index 4cf8f5c2..21af8307 100644 --- a/ftplugin/raml.vim +++ b/ftplugin/raml.vim @@ -1,5 +1,3 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'raml') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'raml') == -1 set ts=2 sts=2 sw=2 et +endif diff --git a/ftplugin/rst.vim b/ftplugin/rst.vim index 064bd88e..5fc87d21 100644 --- a/ftplugin/rst.vim +++ b/ftplugin/rst.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rst') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rst') == -1 " reStructuredText filetype plugin file " Language: reStructuredText documentation format " Maintainer: Marshall Ward @@ -49,3 +46,4 @@ endif let &cpo = s:cpo_save unlet s:cpo_save +endif diff --git a/ftplugin/ruby.vim b/ftplugin/ruby.vim index 4edbbad6..81d9ad99 100644 --- a/ftplugin/ruby.vim +++ b/ftplugin/ruby.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ruby') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1 " Vim filetype plugin " Language: Ruby " Maintainer: Tim Pope @@ -436,3 +433,4 @@ endfunction " " vim: nowrap sw=2 sts=2 ts=8: +endif diff --git a/ftplugin/rust.vim b/ftplugin/rust.vim index 7f29cf38..3f8d9170 100644 --- a/ftplugin/rust.vim +++ b/ftplugin/rust.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 " Language: Rust " Description: Vim ftplugin for Rust " Maintainer: Chris Morgan @@ -203,3 +200,4 @@ unlet s:save_cpo " vint: +ProhibitAbbreviationOption " vim: set et sw=4 sts=4 ts=8: +endif diff --git a/ftplugin/rust/tagbar.vim b/ftplugin/rust/tagbar.vim index 3de5d8a9..af01a818 100644 --- a/ftplugin/rust/tagbar.vim +++ b/ftplugin/rust/tagbar.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 " " Support for Tagbar -- https://github.com/majutsushi/tagbar " @@ -42,3 +39,4 @@ unlet s:save_cpo " vim: set et sw=4 sts=4 ts=8: +endif diff --git a/ftplugin/scala.vim b/ftplugin/scala.vim index d843daa9..199aed94 100644 --- a/ftplugin/scala.vim +++ b/ftplugin/scala.vim @@ -1,7 +1,4 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'scala') != -1 - finish -endif - +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1 " Vim filetype plugin " Language: Scala " Maintainer: Derek Wyatt @@ -178,3 +175,4 @@ noremap