From 4f3df59be709bf0d5c5c67dc804fde49abdc2700 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Thu, 12 Sep 2019 14:33:21 +0200 Subject: Improve guard so it works for no eof new line --- after/ftplugin/cabal.vim | 2 ++ after/ftplugin/coffee.vim | 2 ++ after/ftplugin/haskell.vim | 2 ++ after/ftplugin/idris.vim | 2 ++ after/ftplugin/javascript.vim | 4 ++++ after/ftplugin/llvm.vim | 2 ++ after/ftplugin/puppet.vim | 2 ++ after/ftplugin/typescript.vim | 2 ++ after/ftplugin/yaml.vim | 2 ++ after/indent/javascript.vim | 2 ++ after/indent/objc.vim | 2 ++ after/indent/typescript.vim | 2 ++ after/syntax/c.vim | 2 ++ after/syntax/coffee.vim | 2 ++ after/syntax/cpp.vim | 2 ++ after/syntax/haskell.vim | 2 ++ after/syntax/help.vim | 2 ++ after/syntax/html.vim | 2 ++ after/syntax/idris.vim | 2 ++ after/syntax/javascript.vim | 2 ++ after/syntax/javascript/graphql.vim | 2 ++ after/syntax/jsx_pretty.vim | 2 ++ after/syntax/llvm.vim | 2 ++ after/syntax/mdx.vim | 2 ++ after/syntax/mma.vim | 2 ++ after/syntax/objc.vim | 2 ++ after/syntax/reason.vim | 2 ++ after/syntax/rspec.vim | 2 ++ after/syntax/ruby.vim | 2 ++ after/syntax/rust.vim | 2 ++ after/syntax/tex.vim | 2 ++ after/syntax/typescript.vim | 2 ++ after/syntax/typescript/graphql.vim | 2 ++ after/syntax/yaml.vim | 2 ++ autoload/LaTeXtoUnicode.vim | 2 ++ autoload/RstFold.vim | 2 ++ autoload/cargo.vim | 2 ++ autoload/cargo/quickfix.vim | 2 ++ autoload/clojurecomplete.vim | 2 ++ autoload/coffee.vim | 2 ++ autoload/crystal_lang.vim | 2 ++ autoload/csv.vim | 2 ++ autoload/dart.vim | 2 ++ autoload/db/adapter/ecto.vim | 2 ++ autoload/elixir/indent.vim | 2 ++ autoload/elixir/util.vim | 2 ++ autoload/elm.vim | 2 ++ autoload/elm/util.vim | 2 ++ autoload/fish.vim | 2 ++ autoload/go/config.vim | 2 ++ autoload/graphql.vim | 2 ++ autoload/htmlcomplete.vim | 2 ++ autoload/jsx_pretty/comment.vim | 2 ++ autoload/jsx_pretty/indent.vim | 2 ++ autoload/julia.vim | 2 ++ autoload/julia/doc.vim | 2 ++ autoload/julia_blocks.vim | 2 ++ autoload/julia_latex_symbols.vim | 2 ++ autoload/pony.vim | 2 ++ autoload/puppet/align.vim | 2 ++ autoload/puppet/ctags.vim | 2 ++ autoload/puppet/format.vim | 2 ++ autoload/python/utils.vim | 2 ++ autoload/rubycomplete.vim | 2 ++ autoload/rust.vim | 2 ++ autoload/rust/debugging.vim | 2 ++ autoload/rust/delimitmate.vim | 2 ++ autoload/rust/tags.vim | 2 ++ autoload/rustfmt.vim | 2 ++ autoload/smt2.vim | 2 ++ autoload/terraform.vim | 2 ++ autoload/vifm/edit.vim | 2 ++ autoload/vifm/globals.vim | 2 ++ autoload/vital/_crystal.vim | 2 ++ autoload/vital/_crystal/ColorEcho.vim | 2 ++ autoload/vital/_crystal/Data/List.vim | 2 ++ autoload/vital/_crystal/Data/String.vim | 2 ++ autoload/vital/_crystal/Process.vim | 2 ++ autoload/vital/_crystal/Web/JSON.vim | 2 ++ autoload/vital/crystal.vim | 2 ++ autoload/vital/crystal.vital | 2 ++ autoload/xml/aria.vim | 2 ++ autoload/xml/html5.vim | 2 ++ autoload/zig/config.vim | 2 ++ autoload/zig/fmt.vim | 2 ++ autoload/zig/list.vim | 2 ++ autoload/zig/util.vim | 2 ++ compiler/cake.vim | 2 ++ compiler/cargo.vim | 2 ++ compiler/coffee.vim | 2 ++ compiler/credo.vim | 2 ++ compiler/cryptol.vim | 2 ++ compiler/cucumber.vim | 2 ++ compiler/eruby.vim | 2 ++ compiler/eslint.vim | 2 ++ compiler/exunit.vim | 2 ++ compiler/fish.vim | 2 ++ compiler/go.vim | 2 ++ compiler/gradle.vim | 2 ++ compiler/gradlew.vim | 2 ++ compiler/haml.vim | 2 ++ compiler/lilypond.vim | 2 ++ compiler/ls.vim | 2 ++ compiler/mix.vim | 2 ++ compiler/nim.vim | 2 ++ compiler/nix-build.vim | 2 ++ compiler/ocaml.vim | 2 ++ compiler/python.vim | 2 ++ compiler/rake.vim | 2 ++ compiler/rspec.vim | 2 ++ compiler/ruby.vim | 2 ++ compiler/rubyunit.vim | 2 ++ compiler/rustc.vim | 2 ++ compiler/sbt.vim | 2 ++ compiler/typescript.vim | 2 ++ extras/flow.vim | 2 ++ extras/jsdoc.vim | 2 ++ extras/ngdoc.vim | 2 ++ ftplugin/Dockerfile.vim | 2 ++ ftplugin/ansible.vim | 2 ++ ftplugin/ansible_hosts.vim | 2 ++ ftplugin/blade.vim | 2 ++ ftplugin/caddyfile.vim | 2 ++ ftplugin/clojure.vim | 2 ++ ftplugin/coffee.vim | 2 ++ ftplugin/cryptol/folding.vim | 2 ++ ftplugin/crystal.vim | 2 ++ ftplugin/csv.vim | 2 ++ ftplugin/cucumber.vim | 2 ++ ftplugin/dart.vim | 2 ++ ftplugin/dhall.vim | 2 ++ ftplugin/docker-compose.vim | 2 ++ ftplugin/eelixir.vim | 2 ++ ftplugin/elixir.vim | 2 ++ ftplugin/elm.vim | 2 ++ ftplugin/elm/tagbar.vim | 2 ++ ftplugin/ember-script.vim | 2 ++ ftplugin/emblem.vim | 2 ++ ftplugin/eruby.vim | 2 ++ ftplugin/fish.vim | 2 ++ ftplugin/git.vim | 2 ++ ftplugin/gitcommit.vim | 2 ++ ftplugin/gitconfig.vim | 2 ++ ftplugin/gitrebase.vim | 2 ++ ftplugin/gitsendemail.vim | 2 ++ ftplugin/graphql.vim | 2 ++ ftplugin/haml.vim | 2 ++ ftplugin/hcl.vim | 2 ++ ftplugin/hive.vim | 2 ++ ftplugin/html.vim | 2 ++ ftplugin/i3config.vim | 2 ++ ftplugin/idris.vim | 2 ++ ftplugin/ion.vim | 2 ++ ftplugin/jbuild.vim | 2 ++ ftplugin/json.vim | 2 ++ ftplugin/julia.vim | 2 ++ ftplugin/juliadoc.vim | 2 ++ ftplugin/kotlin.vim | 2 ++ ftplugin/latex-box/common.vim | 2 ++ ftplugin/latex-box/complete.vim | 2 ++ ftplugin/latex-box/findmain.vim | 2 ++ ftplugin/latex-box/folding.vim | 2 ++ ftplugin/latex-box/latexmk.vim | 2 ++ ftplugin/latex-box/mappings.vim | 2 ++ ftplugin/latex-box/motion.vim | 2 ++ ftplugin/latextoc.vim | 2 ++ ftplugin/less.vim | 2 ++ ftplugin/lilypond.vim | 2 ++ ftplugin/litcoffee.vim | 2 ++ ftplugin/llvm.vim | 2 ++ ftplugin/ls.vim | 2 ++ ftplugin/mail_vifm.vim | 2 ++ ftplugin/mako.vim | 2 ++ ftplugin/meson.vim | 2 ++ ftplugin/mma.vim | 2 ++ ftplugin/moon.vim | 2 ++ ftplugin/mustache.vim | 2 ++ ftplugin/nginx.vim | 2 ++ ftplugin/nix.vim | 2 ++ ftplugin/oasis.vim | 2 ++ ftplugin/objc.vim | 2 ++ ftplugin/ocaml.vim | 2 ++ ftplugin/ocamlbuild_tags.vim | 2 ++ ftplugin/omake.vim | 2 ++ ftplugin/opencl.vim | 2 ++ ftplugin/perl.vim | 2 ++ ftplugin/plantuml.vim | 2 ++ ftplugin/pony.vim | 2 ++ ftplugin/ps1.vim | 2 ++ ftplugin/ps1xml.vim | 2 ++ ftplugin/pug.vim | 2 ++ ftplugin/puppet.vim | 2 ++ ftplugin/puppet_tagbar.vim | 2 ++ ftplugin/purescript.vim | 2 ++ ftplugin/qml.vim | 2 ++ ftplugin/racket.vim | 2 ++ ftplugin/raml.vim | 2 ++ ftplugin/rst.vim | 2 ++ ftplugin/ruby.vim | 2 ++ ftplugin/rust.vim | 2 ++ ftplugin/rust/tagbar.vim | 2 ++ ftplugin/scala.vim | 2 ++ ftplugin/scala.xpt.vim | 2 ++ ftplugin/scala/tagbar.vim | 2 ++ ftplugin/scss.vim | 2 ++ ftplugin/sexplib.vim | 2 ++ ftplugin/slim.vim | 2 ++ ftplugin/smt2.vim | 2 ++ ftplugin/solidity.vim | 2 ++ ftplugin/stylus.vim | 2 ++ ftplugin/swift.vim | 2 ++ ftplugin/tablegen.vim | 2 ++ ftplugin/terraform.vim | 2 ++ ftplugin/tex_LatexBox.vim | 2 ++ ftplugin/textile.vim | 2 ++ ftplugin/tmux.vim | 2 ++ ftplugin/toml.vim | 2 ++ ftplugin/tsx.vim | 2 ++ ftplugin/tt2html.vim | 2 ++ ftplugin/twig.vim | 2 ++ ftplugin/typescript.vim | 2 ++ ftplugin/vifm-cmdedit.vim | 2 ++ ftplugin/vifm-edit.vim | 2 ++ ftplugin/vifm-rename.vim | 2 ++ ftplugin/vifm.vim | 2 ++ ftplugin/vue.vim | 2 ++ ftplugin/xs.vim | 2 ++ ftplugin/zig.vim | 2 ++ indent/Dockerfile.vim | 2 ++ indent/Jenkinsfile.vim | 2 ++ indent/ansible.vim | 2 ++ indent/applescript.vim | 2 ++ indent/arduino.vim | 2 ++ indent/autohotkey.vim | 2 ++ indent/blade.vim | 2 ++ indent/cabal.vim | 2 ++ indent/caddyfile.vim | 2 ++ indent/clojure.vim | 2 ++ indent/cmake.vim | 2 ++ indent/coffee.vim | 2 ++ indent/crystal.vim | 2 ++ indent/cucumber.vim | 2 ++ indent/cython.vim | 2 ++ indent/d.vim | 2 ++ indent/dart.vim | 2 ++ indent/dune.vim | 2 ++ indent/eelixir.vim | 2 ++ indent/elixir.vim | 2 ++ indent/elm.vim | 2 ++ indent/ember-script.vim | 2 ++ indent/emblem.vim | 2 ++ indent/erlang.vim | 2 ++ indent/eruby.vim | 2 ++ indent/fish.vim | 2 ++ indent/fsharp.vim | 2 ++ indent/gitconfig.vim | 2 ++ indent/glsl.vim | 2 ++ indent/go.vim | 2 ++ indent/gohtmltmpl.vim | 2 ++ indent/graphql.vim | 2 ++ indent/groovy.vim | 2 ++ indent/haml.vim | 2 ++ indent/handlebars.vim | 2 ++ indent/haskell.vim | 2 ++ indent/hcl.vim | 2 ++ indent/html.vim | 2 ++ indent/idris.vim | 2 ++ indent/javascript.vim | 2 ++ indent/jinja.vim | 2 ++ indent/json.vim | 2 ++ indent/jst.vim | 2 ++ indent/julia.vim | 2 ++ indent/kotlin.vim | 2 ++ indent/less.vim | 4 +++- indent/lilypond.vim | 2 ++ indent/litcoffee.vim | 2 ++ indent/llvm.vim | 2 ++ indent/ls.vim | 2 ++ indent/lua.vim | 2 ++ indent/mako.vim | 2 ++ indent/markdown.vim | 2 ++ indent/meson.vim | 2 ++ indent/moon.vim | 2 ++ indent/nginx.vim | 2 ++ indent/nim.vim | 2 ++ indent/nix.vim | 2 ++ indent/ocaml.vim | 2 ++ indent/omake.vim | 2 ++ indent/opencl.vim | 2 ++ indent/perl.vim | 2 ++ indent/pgsql.vim | 2 ++ indent/plantuml.vim | 2 ++ indent/pony.vim | 2 ++ indent/proto.vim | 2 ++ indent/ps1.vim | 2 ++ indent/pug.vim | 2 ++ indent/puppet.vim | 2 ++ indent/purescript.vim | 2 ++ indent/python.vim | 2 ++ indent/qml.vim | 2 ++ indent/racket.vim | 2 ++ indent/reason.vim | 2 ++ indent/ruby.vim | 2 ++ indent/rust.vim | 2 ++ indent/scala.vim | 2 ++ indent/scss.vim | 2 ++ indent/slim.vim | 2 ++ indent/slime.vim | 2 ++ indent/solidity.vim | 2 ++ indent/stylus.vim | 2 ++ indent/svelte.vim | 2 ++ indent/svg.vim | 2 ++ indent/swift.vim | 2 ++ indent/terraform.vim | 2 ++ indent/tex.vim | 2 ++ indent/tsx.vim | 2 ++ indent/twig.vim | 2 ++ indent/typescript.vim | 2 ++ indent/vala.vim | 2 ++ indent/velocity.vim | 2 ++ indent/vue.vim | 2 ++ plugin_guard.vim.template | 2 ++ plugin_guard_jsx.vim.template | 2 ++ syntax/Dockerfile.vim | 2 ++ syntax/Jenkinsfile.vim | 2 ++ syntax/ansible.vim | 2 ++ syntax/ansible_hosts.vim | 2 ++ syntax/apiblueprint.vim | 2 ++ syntax/applescript.vim | 2 ++ syntax/arduino.vim | 2 ++ syntax/asciidoc.vim | 2 ++ syntax/asl.vim | 2 ++ syntax/basic/class.vim | 2 ++ syntax/basic/cluster.vim | 2 ++ syntax/basic/decorator.vim | 2 ++ syntax/basic/doc.vim | 2 ++ syntax/basic/function.vim | 2 ++ syntax/basic/identifiers.vim | 2 ++ syntax/basic/keyword.vim | 2 ++ syntax/basic/literal.vim | 2 ++ syntax/basic/members.vim | 2 ++ syntax/basic/object.vim | 2 ++ syntax/basic/patch.vim | 2 ++ syntax/basic/reserved.vim | 2 ++ syntax/basic/symbols.vim | 2 ++ syntax/basic/type.vim | 2 ++ syntax/blade.vim | 2 ++ syntax/c.vim | 2 ++ syntax/cabal.vim | 2 ++ syntax/caddyfile.vim | 2 ++ syntax/carp.vim | 2 ++ syntax/clojure.vim | 2 ++ syntax/cmake.vim | 2 ++ syntax/coffee.vim | 2 ++ syntax/common.vim | 2 ++ syntax/cpp.vim | 2 ++ syntax/cql.vim | 2 ++ syntax/cryptol.vim | 2 ++ syntax/crystal.vim | 2 ++ syntax/csv.vim | 2 ++ syntax/cucumber.vim | 2 ++ syntax/cuesheet.vim | 2 ++ syntax/d.vim | 2 ++ syntax/dart.vim | 2 ++ syntax/dcov.vim | 2 ++ syntax/dd.vim | 2 ++ syntax/ddoc.vim | 2 ++ syntax/dhall.vim | 2 ++ syntax/docker-compose.vim | 2 ++ syntax/dsdl.vim | 2 ++ syntax/dune.vim | 2 ++ syntax/eelixir.vim | 2 ++ syntax/elixir.vim | 2 ++ syntax/elm.vim | 2 ++ syntax/ember-script.vim | 2 ++ syntax/emblem.vim | 2 ++ syntax/erlang.vim | 2 ++ syntax/eruby.vim | 2 ++ syntax/fbs.vim | 2 ++ syntax/ferm.vim | 2 ++ syntax/fish.vim | 2 ++ syntax/fsharp.vim | 2 ++ syntax/git.vim | 2 ++ syntax/gitcommit.vim | 2 ++ syntax/gitconfig.vim | 2 ++ syntax/gitrebase.vim | 2 ++ syntax/gitsendemail.vim | 2 ++ syntax/glsl.vim | 2 ++ syntax/gmpl.vim | 2 ++ syntax/gnuplot.vim | 2 ++ syntax/go.vim | 2 ++ syntax/godebugoutput.vim | 2 ++ syntax/godebugstacktrace.vim | 2 ++ syntax/godebugvariables.vim | 2 ++ syntax/godefstack.vim | 2 ++ syntax/gohtmltmpl.vim | 2 ++ syntax/gomod.vim | 2 ++ syntax/gotexttmpl.vim | 2 ++ syntax/graphql.vim | 2 ++ syntax/groovy.vim | 2 ++ syntax/haml.vim | 2 ++ syntax/haproxy.vim | 2 ++ syntax/haskell.vim | 2 ++ syntax/haxe.vim | 2 ++ syntax/hcl.vim | 2 ++ syntax/helm.vim | 2 ++ syntax/hive.vim | 2 ++ syntax/html.vim | 4 ++++ syntax/html/aria.vim | 2 ++ syntax/html/electron.vim | 2 ++ syntax/html/rdfa.vim | 2 ++ syntax/i3config.vim | 2 ++ syntax/idris.vim | 2 ++ syntax/ion.vim | 2 ++ syntax/jasmine.vim | 2 ++ syntax/javascript.vim | 2 ++ syntax/javascript/html5.vim | 2 ++ syntax/jinja.vim | 2 ++ syntax/jinja2.vim | 2 ++ syntax/json.vim | 2 ++ syntax/json5.vim | 2 ++ syntax/jst.vim | 2 ++ syntax/julia.vim | 2 ++ syntax/juliadoc.vim | 2 ++ syntax/kotlin.vim | 2 ++ syntax/latextoc.vim | 2 ++ syntax/less.vim | 2 ++ syntax/lidris.vim | 2 ++ syntax/lilypond-words.vim | 2 ++ syntax/lilypond.vim | 2 ++ syntax/litcoffee.vim | 2 ++ syntax/llvm.vim | 2 ++ syntax/log.vim | 2 ++ syntax/ls.vim | 2 ++ syntax/lua.vim | 2 ++ syntax/mako.vim | 2 ++ syntax/markdown.vim | 2 ++ syntax/mason.vim | 2 ++ syntax/merlin.vim | 2 ++ syntax/meson.vim | 2 ++ syntax/mma.vim | 2 ++ syntax/moon.vim | 2 ++ syntax/mustache.vim | 2 ++ syntax/nginx.vim | 2 ++ syntax/nim.vim | 2 ++ syntax/nix.vim | 2 ++ syntax/oasis.vim | 2 ++ syntax/ocaml.vim | 2 ++ syntax/ocamlbuild_tags.vim | 2 ++ syntax/octave.vim | 2 ++ syntax/omake.vim | 2 ++ syntax/opam.vim | 2 ++ syntax/opencl.vim | 2 ++ syntax/perl.vim | 2 ++ syntax/pgsql.vim | 2 ++ syntax/php.vim | 2 ++ syntax/plantuml.vim | 2 ++ syntax/pod.vim | 2 ++ syntax/pony.vim | 2 ++ syntax/proto.vim | 2 ++ syntax/ps1.vim | 2 ++ syntax/ps1xml.vim | 2 ++ syntax/pug.vim | 2 ++ syntax/puppet.vim | 2 ++ syntax/purescript.vim | 2 ++ syntax/python.vim | 2 ++ syntax/qmake.vim | 2 ++ syntax/qml.vim | 2 ++ syntax/racket.vim | 2 ++ syntax/ragel.vim | 2 ++ syntax/raml.vim | 2 ++ syntax/reason.vim | 2 ++ syntax/rhelp.vim | 2 ++ syntax/rnoweb.vim | 2 ++ syntax/rst.vim | 2 ++ syntax/ruby.vim | 2 ++ syntax/rust.vim | 2 ++ syntax/sbt.vim | 2 ++ syntax/scala.vim | 2 ++ syntax/scss.vim | 2 ++ syntax/sexplib.vim | 2 ++ syntax/slim.vim | 2 ++ syntax/slime.vim | 2 ++ syntax/smhl.vim | 2 ++ syntax/smt2.vim | 2 ++ syntax/solidity.vim | 2 ++ syntax/stylus.vim | 2 ++ syntax/svelte.vim | 2 ++ syntax/svg.vim | 2 ++ syntax/swift.vim | 2 ++ syntax/sxhkdrc.vim | 2 ++ syntax/systemd.vim | 2 ++ syntax/tablegen.vim | 2 ++ syntax/tap.vim | 2 ++ syntax/terraform.vim | 2 ++ syntax/textile.vim | 2 ++ syntax/thrift.vim | 2 ++ syntax/tmux.vim | 2 ++ syntax/tomdoc.vim | 2 ++ syntax/toml.vim | 2 ++ syntax/tptp.vim | 2 ++ syntax/tsx.vim | 2 ++ syntax/tt2.vim | 2 ++ syntax/tt2html.vim | 2 ++ syntax/tt2js.vim | 2 ++ syntax/twig.vim | 2 ++ syntax/typescript.vim | 2 ++ syntax/vala.vim | 2 ++ syntax/vbnet.vim | 2 ++ syntax/vcl.vim | 2 ++ syntax/velocity.vim | 2 ++ syntax/vifm.vim | 2 ++ syntax/vimgo.vim | 2 ++ syntax/vue.vim | 2 ++ syntax/xdc.vim | 2 ++ syntax/xml.vim | 2 ++ syntax/xs.vim | 2 ++ syntax/xsl.vim | 2 ++ syntax/yats.vim | 2 ++ syntax/yats/css.vim | 2 ++ syntax/yats/dom-document.vim | 2 ++ syntax/yats/dom-elem.vim | 2 ++ syntax/yats/dom-event.vim | 2 ++ syntax/yats/dom-form.vim | 2 ++ syntax/yats/dom-node.vim | 2 ++ syntax/yats/dom-storage.vim | 2 ++ syntax/yats/ecma-402.vim | 2 ++ syntax/yats/es6-array.vim | 2 ++ syntax/yats/es6-date.vim | 2 ++ syntax/yats/es6-function.vim | 2 ++ syntax/yats/es6-json.vim | 2 ++ syntax/yats/es6-map.vim | 2 ++ syntax/yats/es6-math.vim | 2 ++ syntax/yats/es6-number.vim | 2 ++ syntax/yats/es6-object.vim | 2 ++ syntax/yats/es6-promise.vim | 2 ++ syntax/yats/es6-proxy.vim | 2 ++ syntax/yats/es6-reflect.vim | 2 ++ syntax/yats/es6-regexp.vim | 2 ++ syntax/yats/es6-set.vim | 2 ++ syntax/yats/es6-string.vim | 2 ++ syntax/yats/es6-symbol.vim | 2 ++ syntax/yats/event.vim | 2 ++ syntax/yats/node.vim | 2 ++ syntax/yats/test.vim | 2 ++ syntax/yats/typescript.vim | 2 ++ syntax/yats/web-blob.vim | 2 ++ syntax/yats/web-console.vim | 2 ++ syntax/yats/web-crypto.vim | 2 ++ syntax/yats/web-encoding.vim | 2 ++ syntax/yats/web-fetch.vim | 2 ++ syntax/yats/web-geo.vim | 2 ++ syntax/yats/web-history.vim | 2 ++ syntax/yats/web-location.vim | 2 ++ syntax/yats/web-navigator.vim | 2 ++ syntax/yats/web-network.vim | 2 ++ syntax/yats/web-payment.vim | 2 ++ syntax/yats/web-service-worker.vim | 2 ++ syntax/yats/web-window.vim | 2 ++ syntax/yats/web-xhr.vim | 2 ++ syntax/yats/web.vim | 2 ++ syntax/zephir.vim | 2 ++ syntax/zig.vim | 2 ++ 563 files changed, 1131 insertions(+), 1 deletion(-) diff --git a/after/ftplugin/cabal.vim b/after/ftplugin/cabal.vim index 8e485bbd..8009502d 100644 --- a/after/ftplugin/cabal.vim +++ b/after/ftplugin/cabal.vim @@ -1,5 +1,7 @@ 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 2e3f7170..27c00bcb 100644 --- a/after/ftplugin/coffee.vim +++ b/after/ftplugin/coffee.vim @@ -1,7 +1,9 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cjsx') == -1 + if exists("loaded_matchit") let b:match_ignorecase = 0 let b:match_words = '(:),\[:\],{:},<:>,' . \ '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>' endif + endif diff --git a/after/ftplugin/haskell.vim b/after/ftplugin/haskell.vim index 0255bdd7..a617329c 100644 --- a/after/ftplugin/haskell.vim +++ b/after/ftplugin/haskell.vim @@ -1,4 +1,6 @@ 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 c006b7ab..6c6815d5 100644 --- a/after/ftplugin/idris.vim +++ b/after/ftplugin/idris.vim @@ -1,3 +1,5 @@ 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 55cb0411..4c1549a8 100644 --- a/after/ftplugin/javascript.vim +++ b/after/ftplugin/javascript.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 + " Vim filetype plugin file " Language: JavaScript " Maintainer: vim-javascript community @@ -11,8 +12,10 @@ if exists('b:undo_ftplugin') else let b:undo_ftplugin = 'setlocal iskeyword< suffixesadd<' endif + 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 " @@ -44,4 +47,5 @@ augroup jsx_comment augroup end setlocal suffixesadd+=.jsx + endif diff --git a/after/ftplugin/llvm.vim b/after/ftplugin/llvm.vim index ece9019f..d67c94b5 100644 --- a/after/ftplugin/llvm.vim +++ b/after/ftplugin/llvm.vim @@ -1,4 +1,5 @@ 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 @@ -472,4 +473,5 @@ 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 f78ebb80..6ddb64e0 100644 --- a/after/ftplugin/puppet.vim +++ b/after/ftplugin/puppet.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1 + if !exists('g:puppet_align_hashes') let g:puppet_align_hashes = 1 endif @@ -6,4 +7,5 @@ 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 ab1aedc8..b5deef84 100644 --- a/after/ftplugin/typescript.vim +++ b/after/ftplugin/typescript.vim @@ -1,4 +1,5 @@ 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") @@ -22,4 +23,5 @@ augroup jsx_comment augroup end setlocal suffixesadd+=.tsx + endif diff --git a/after/ftplugin/yaml.vim b/after/ftplugin/yaml.vim index 1b631079..db608fa4 100644 --- a/after/ftplugin/yaml.vim +++ b/after/ftplugin/yaml.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'yaml') == -1 + " Vim indent file " Language: Yaml " Author: Henrique Barcelos @@ -6,4 +7,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'yaml') == -1 " URL: https://github.com/hjpbarcelos setlocal autoindent sw=2 ts=2 expandtab " vim:set sw=2: + endif diff --git a/after/indent/javascript.vim b/after/indent/javascript.vim index ea149c78..ffbbc97a 100644 --- a/after/indent/javascript.vim +++ b/after/indent/javascript.vim @@ -1,4 +1,5 @@ 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 " @@ -28,4 +29,5 @@ endfunction let &cpo = s:keepcpo unlet s:keepcpo + endif diff --git a/after/indent/objc.vim b/after/indent/objc.vim index 9c64da42..081e7033 100644 --- a/after/indent/objc.vim +++ b/after/indent/objc.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'objc') == -1 + " Vim indent file " Language: Objective-C " Maintainer: Bjorn Winckler @@ -92,4 +93,5 @@ 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 f5e6cb59..cc722f15 100644 --- a/after/indent/typescript.vim +++ b/after/indent/typescript.vim @@ -1,4 +1,5 @@ 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 " @@ -29,4 +30,5 @@ endfunction let &cpo = s:keepcpo unlet s:keepcpo + endif diff --git a/after/syntax/c.vim b/after/syntax/c.vim index 48446d7d..105b0268 100644 --- a/after/syntax/c.vim +++ b/after/syntax/c.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'c++11') == -1 + " Vim syntax file " Language: C Additions " Maintainer: Jon Haggblad @@ -303,4 +304,5 @@ hi def link cBoolean Boolean "hi def link cDelimiter Delimiter " foldmethod=syntax fix, courtesy of Ivan Freitas "hi def link cBraces Delimiter + endif diff --git a/after/syntax/coffee.vim b/after/syntax/coffee.vim index bd48541e..fde51eb4 100644 --- a/after/syntax/coffee.vim +++ b/after/syntax/coffee.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cjsx') == -1 + if exists('b:current_syntax') let s:current_syntax=b:current_syntax unlet b:current_syntax @@ -26,4 +27,5 @@ hi def link cjsxTagName Function hi def link cjsxEntity Statement hi def link cjsxEntityPunct Type hi def link cjsxAttribProperty Type + endif diff --git a/after/syntax/cpp.vim b/after/syntax/cpp.vim index b85c63bd..874561c8 100644 --- a/after/syntax/cpp.vim +++ b/after/syntax/cpp.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'c++11') == -1 + " Vim syntax file " Language: C++ Additions " Maintainer: Jon Haggblad @@ -2100,4 +2101,5 @@ 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 03a26e88..ac175298 100644 --- a/after/syntax/haskell.vim +++ b/after/syntax/haskell.vim @@ -1,4 +1,5 @@ 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 @@ -12,4 +13,5 @@ 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 4c0dc3d3..16c46b29 100644 --- a/after/syntax/help.vim +++ b/after/syntax/help.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1 + " Extends standard help syntax with highlighting of Scala code. " " Place code between !sc! and !/sc! delimiters. These will be hidden if Vim is @@ -13,4 +14,5 @@ if has('conceal') else syntax region rgnScala matchgroup=Ignore start='!sc!' end='!/sc!' contains=@ScalaCode endif + endif diff --git a/after/syntax/html.vim b/after/syntax/html.vim index 4fd6e593..bc7e8eed 100644 --- a/after/syntax/html.vim +++ b/after/syntax/html.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 + " Vim syntax file " Language: HTML (version 5.1) " Last Change: 2017 Feb 15 @@ -11,4 +12,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 " https://github.com/w3c/html/issues/694 syntax region htmlComment start=++ contains=@Spell syntax region htmlComment start=++ + endif diff --git a/after/syntax/idris.vim b/after/syntax/idris.vim index 3acdcbec..29d35632 100644 --- a/after/syntax/idris.vim +++ b/after/syntax/idris.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'idris') == -1 + " This script allows for unicode concealing of certain characters " For instance -> goes to → " @@ -77,4 +78,5 @@ 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 c36b1f21..ab027d41 100644 --- a/after/syntax/javascript.vim +++ b/after/syntax/javascript.vim @@ -1,4 +1,5 @@ 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 " @@ -57,4 +58,5 @@ let b:current_syntax = 'javascript.jsx' let &cpo = s:jsx_cpo unlet s:jsx_cpo + endif diff --git a/after/syntax/javascript/graphql.vim b/after/syntax/javascript/graphql.vim index e9a0ff3a..bf3ee41d 100644 --- a/after/syntax/javascript/graphql.vim +++ b/after/syntax/javascript/graphql.vim @@ -1,4 +1,5 @@ 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 @@ -22,4 +23,5 @@ 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 d2f5d383..fd5c9bde 100644 --- a/after/syntax/jsx_pretty.vim +++ b/after/syntax/jsx_pretty.vim @@ -1,4 +1,5 @@ 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) " @@ -211,4 +212,5 @@ 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 18767d57..04d234a2 100644 --- a/after/syntax/llvm.vim +++ b/after/syntax/llvm.vim @@ -1,4 +1,5 @@ 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 @@ -21,4 +22,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'llvm') == -1 syn keyword llvmKeyword attributes syn match llvmNoName /#\d\+\>/ + endif diff --git a/after/syntax/mdx.vim b/after/syntax/mdx.vim index 68caa276..5538f881 100644 --- a/after/syntax/mdx.vim +++ b/after/syntax/mdx.vim @@ -1,5 +1,6 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mdx') == -1 + " based on mxw/vim-jsx if exists('b:current_syntax') @@ -40,4 +41,5 @@ 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 c2ab7b76..45c5c428 100644 --- a/after/syntax/mma.vim +++ b/after/syntax/mma.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mathematica') == -1 + "Vim conceal file " Language: Mathematica " Maintainer: Voldikss @@ -1445,4 +1446,5 @@ endif hi! link Conceal Normal setlocal conceallevel=2 + endif diff --git a/after/syntax/objc.vim b/after/syntax/objc.vim index cebedf20..093688b1 100644 --- a/after/syntax/objc.vim +++ b/after/syntax/objc.vim @@ -1,4 +1,5 @@ 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 @@ -18,4 +19,5 @@ 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 7615be2b..3be39690 100644 --- a/after/syntax/reason.vim +++ b/after/syntax/reason.vim @@ -1,2 +1,4 @@ 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 bd447957..1287970a 100644 --- a/after/syntax/rspec.vim +++ b/after/syntax/rspec.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rspec') == -1 + " " An rspec syntax file " Originally from http://www.vim.org/scripts/script.php?script_id=2286 @@ -31,4 +32,5 @@ syntax keyword rspecMessageExpectation advise any_args any_number_of_times anyth highlight link rspecMessageExpectation Function let b:current_syntax = 'rspec' + endif diff --git a/after/syntax/ruby.vim b/after/syntax/ruby.vim index 551969c9..00cd07d9 100644 --- a/after/syntax/ruby.vim +++ b/after/syntax/ruby.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'yard') == -1 + " Ruby syntax extensions for highlighting YARD documentation. " " Author: Joel Holdbrooks @@ -125,4 +126,5 @@ hi def link yardParametricType yardComment hi def link yardArrow yardComment hi def link yardHashAngle yardComment hi def link yardHashCurly yardComment + endif diff --git a/after/syntax/rust.vim b/after/syntax/rust.vim index 8210c9f1..0a54e2fc 100644 --- a/after/syntax/rust.vim +++ b/after/syntax/rust.vim @@ -1,4 +1,5 @@ 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' @@ -40,4 +41,5 @@ 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 fd515891..f549de30 100644 --- a/after/syntax/tex.vim +++ b/after/syntax/tex.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1 + " adds support for cleverref package " \Cref, \cref, \cpageref, \labelcref, \labelcpageref syn region texRefZone matchgroup=texStatement start="\\Cref{" end="}\|%stopzone\>" contains=@texRefGroup @@ -8,4 +9,5 @@ syn region texRefZone matchgroup=texStatement start="\\\(label\|\)c\(page\|\)re syn region texZone start="\\begin{lstlisting}" end="\\end{lstlisting}\|%stopzone\>" syn match texInputFile "\\lstinputlisting\s*\(\[.*\]\)\={.\{-}}" contains=texStatement,texInputCurlies,texInputFileOpt syn match texZone "\\lstinline\s*\(\[.*\]\)\={.\{-}}" + endif diff --git a/after/syntax/typescript.vim b/after/syntax/typescript.vim index 359c1b55..ba90c5d5 100644 --- a/after/syntax/typescript.vim +++ b/after/syntax/typescript.vim @@ -1,4 +1,5 @@ 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 " @@ -45,4 +46,5 @@ let b:current_syntax = 'typescript.tsx' let &cpo = s:jsx_cpo unlet s:jsx_cpo + endif diff --git a/after/syntax/typescript/graphql.vim b/after/syntax/typescript/graphql.vim index 23f28e93..a5d6a9ce 100644 --- a/after/syntax/typescript/graphql.vim +++ b/after/syntax/typescript/graphql.vim @@ -1,4 +1,5 @@ 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 @@ -21,4 +22,5 @@ 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 20cd2fb5..4dd2c4e9 100644 --- a/after/syntax/yaml.vim +++ b/after/syntax/yaml.vim @@ -1,4 +1,5 @@ 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 @@ -60,4 +61,5 @@ 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 19a759a2..045ebb9c 100644 --- a/autoload/LaTeXtoUnicode.vim +++ b/autoload/LaTeXtoUnicode.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1 + """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Support for LaTex-to-Unicode conversion as in the Julia REPL " """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" @@ -649,4 +650,5 @@ function! LaTeXtoUnicode#Toggle() endif return endfunction + endif diff --git a/autoload/RstFold.vim b/autoload/RstFold.vim index 4d865808..30d00874 100644 --- a/autoload/RstFold.vim +++ b/autoload/RstFold.vim @@ -1,4 +1,5 @@ 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 @@ -61,4 +62,5 @@ 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 ea63bd7a..f24db923 100644 --- a/autoload/cargo.vim +++ b/autoload/cargo.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 + function! cargo#Load() " Utility call to get this script loaded, for debugging endfunction @@ -114,4 +115,5 @@ 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 b108da2f..e1e5b9d2 100644 --- a/autoload/cargo/quickfix.vim +++ b/autoload/cargo/quickfix.vim @@ -1,4 +1,5 @@ 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. @@ -25,4 +26,5 @@ 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 88aacd74..9128b3d1 100644 --- a/autoload/clojurecomplete.vim +++ b/autoload/clojurecomplete.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'clojure') == -1 + " Vim completion script " Language: Clojure " Maintainer: Sung Pae @@ -21,4 +22,5 @@ function! clojurecomplete#Complete(findstart, base) endfunction " vim:sts=8:sw=8:ts=8:noet + endif diff --git a/autoload/coffee.vim b/autoload/coffee.vim index b308f4c1..76eab3b0 100644 --- a/autoload/coffee.vim +++ b/autoload/coffee.vim @@ -1,4 +1,5 @@ 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 @@ -53,4 +54,5 @@ function! coffee#CoffeeSetUpErrorFormat() \%f:%l:%c:\ error:\ %m, \%-G%.%# endfunction + endif diff --git a/autoload/crystal_lang.vim b/autoload/crystal_lang.vim index 2acfdb76..a04d456b 100644 --- a/autoload/crystal_lang.vim +++ b/autoload/crystal_lang.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 + let s:save_cpo = &cpo set cpo&vim @@ -339,4 +340,5 @@ endfunction let &cpo = s:save_cpo unlet s:save_cpo + endif diff --git a/autoload/csv.vim b/autoload/csv.vim index 66fc6a17..d807e729 100644 --- a/autoload/csv.vim +++ b/autoload/csv.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'csv') == -1 + " Filetype plugin for editing CSV files. "{{{1 " Author: Christian Brabandt " Version: 0.31 @@ -3186,4 +3187,5 @@ 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 39ebc9e3..de67efe3 100644 --- a/autoload/dart.vim +++ b/autoload/dart.vim @@ -1,5 +1,6 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dart') == -1 + function! s:error(text) abort echohl Error echomsg printf('[dart-vim-plugin] %s', a:text) @@ -183,4 +184,5 @@ function! dart#setModifiable() abort setlocal nomodifiable endif endfunction + endif diff --git a/autoload/db/adapter/ecto.vim b/autoload/db/adapter/ecto.vim index e8e543ba..4012f04a 100644 --- a/autoload/db/adapter/ecto.vim +++ b/autoload/db/adapter/ecto.vim @@ -1,4 +1,5 @@ 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')]) @@ -19,4 +20,5 @@ 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 2924f0e6..e7c8f0ea 100644 --- a/autoload/elixir/indent.vim +++ b/autoload/elixir/indent.vim @@ -1,4 +1,5 @@ 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 @@ -360,4 +361,5 @@ 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 d6b6541a..04cb8375 100644 --- a/autoload/elixir/util.vim +++ b/autoload/elixir/util.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 + function! elixir#util#get_filename(word) abort let word = a:word @@ -23,4 +24,5 @@ function! elixir#util#get_filename(word) abort return word endfunction + endif diff --git a/autoload/elm.vim b/autoload/elm.vim index 46ada03b..10d3c0b4 100644 --- a/autoload/elm.vim +++ b/autoload/elm.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elm') == -1 + let s:errors = [] function! s:elmOracle(...) abort @@ -380,4 +381,5 @@ function! s:ExecuteInRoot(cmd) abort return l:out endfunction + endif diff --git a/autoload/elm/util.vim b/autoload/elm/util.vim index cd509cc1..6bc7cc9e 100644 --- a/autoload/elm/util.vim +++ b/autoload/elm/util.vim @@ -1,4 +1,5 @@ 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'] @@ -179,4 +180,5 @@ function! s:error(msg) echohl NONE let v:errmsg = a:msg endfunction + endif diff --git a/autoload/fish.vim b/autoload/fish.vim index 2ad976d7..fcf10bd1 100644 --- a/autoload/fish.vim +++ b/autoload/fish.vim @@ -1,4 +1,5 @@ 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) @@ -66,4 +67,5 @@ 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 3815bb6a..3301edae 100644 --- a/autoload/go/config.vim +++ b/autoload/go/config.vim @@ -1,4 +1,5 @@ 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 @@ -491,4 +492,5 @@ 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 85b654ad..976e9362 100644 --- a/autoload/graphql.vim +++ b/autoload/graphql.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1 + " Vim plugin " Language: GraphQL " Maintainer: Jon Parise @@ -11,4 +12,5 @@ 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 002a6f0e..135f716b 100644 --- a/autoload/htmlcomplete.vim +++ b/autoload/htmlcomplete.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 + " Vim completion script " Language: HTML and XHTML " Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl ) @@ -840,4 +841,5 @@ function! htmlcomplete#CheckDoctype() " {{{ endfunction " }}} " vim:set foldmethod=marker: + endif diff --git a/autoload/jsx_pretty/comment.vim b/autoload/jsx_pretty/comment.vim index 4ce4e3a7..1569cd82 100644 --- a/autoload/jsx_pretty/comment.vim +++ b/autoload/jsx_pretty/comment.vim @@ -1,4 +1,5 @@ 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) @@ -36,4 +37,5 @@ 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 4c108416..15e177e0 100644 --- a/autoload/jsx_pretty/indent.vim +++ b/autoload/jsx_pretty/indent.vim @@ -1,4 +1,5 @@ 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() @@ -213,4 +214,5 @@ function! jsx_pretty#indent#get(js_indent) endif endfunction + endif diff --git a/autoload/julia.vim b/autoload/julia.vim index f2fc6123..6bb70dce 100644 --- a/autoload/julia.vim +++ b/autoload/julia.vim @@ -1,4 +1,5 @@ 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" @@ -183,4 +184,5 @@ function! julia#gotodefinition() endfunction endif + endif diff --git a/autoload/julia/doc.vim b/autoload/julia/doc.vim index 1dee5aed..7907c94a 100644 --- a/autoload/julia/doc.vim +++ b/autoload/julia/doc.vim @@ -1,4 +1,5 @@ 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') @@ -241,4 +242,5 @@ 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 46b18484..81c204cf 100644 --- a/autoload/julia_blocks.vim +++ b/autoload/julia_blocks.vim @@ -1,4 +1,5 @@ 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) @@ -793,4 +794,5 @@ 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 51deacc8..70d5d3de 100644 --- a/autoload/julia_latex_symbols.vim +++ b/autoload/julia_latex_symbols.vim @@ -1,4 +1,5 @@ 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 @@ -3329,4 +3330,5 @@ function! julia_latex_symbols#get_dict() \ '\:baggage_claim:': '🛄', \ '\:left_luggage:': '🛅'} endfunction + endif diff --git a/autoload/pony.vim b/autoload/pony.vim index 52e1981a..d7ab5d02 100644 --- a/autoload/pony.vim +++ b/autoload/pony.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'pony') == -1 + " Vim plugin file " Language: Pony " Maintainer: Jak Wings @@ -531,4 +532,5 @@ endfunction let &cpo = s:cpo_save unlet s:cpo_save + endif diff --git a/autoload/puppet/align.vim b/autoload/puppet/align.vim index c45bc90f..b7dc1eda 100644 --- a/autoload/puppet/align.vim +++ b/autoload/puppet/align.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1 + function! puppet#align#IndentLevel(lnum) return indent(a:lnum) / &shiftwidth endfunction @@ -67,4 +68,5 @@ function! puppet#align#AlignHashrockets(...) abort endif endfor endfunction + endif diff --git a/autoload/puppet/ctags.vim b/autoload/puppet/ctags.vim index 469b1213..8f4d108f 100644 --- a/autoload/puppet/ctags.vim +++ b/autoload/puppet/ctags.vim @@ -1,5 +1,6 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1 + if !exists('s:ctags_type') let s:ctags_type = 0 endif @@ -35,4 +36,5 @@ function! puppet#ctags#Type() return s:ctags_type endfunction + endif diff --git a/autoload/puppet/format.vim b/autoload/puppet/format.vim index c608f228..cfd48155 100644 --- a/autoload/puppet/format.vim +++ b/autoload/puppet/format.vim @@ -1,4 +1,5 @@ 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 @@ -56,4 +57,5 @@ function! puppet#format#Fallback(start_lnum, end_lnum) abort endfunction + endif diff --git a/autoload/python/utils.vim b/autoload/python/utils.vim index 8a8170d6..c2e64874 100644 --- a/autoload/python/utils.vim +++ b/autoload/python/utils.vim @@ -1,4 +1,5 @@ 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 @@ -16,4 +17,5 @@ function! python#utils#fix_qflist() " {{{ call setqflist(l:traceback) endif endfunction " }}} + endif diff --git a/autoload/rubycomplete.vim b/autoload/rubycomplete.vim index 02a2d014..98f3b275 100644 --- a/autoload/rubycomplete.vim +++ b/autoload/rubycomplete.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1 + " Vim completion script " Language: Ruby " Maintainer: Mark Guzman @@ -875,4 +876,5 @@ 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 1051c842..e8a675f3 100644 --- a/autoload/rust.vim +++ b/autoload/rust.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 + " Author: Kevin Ballard " Description: Helper functions for Rust commands/mappings " Last Modified: May 27, 2014 @@ -545,4 +546,5 @@ 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 40a691c3..066e2451 100644 --- a/autoload/rust/debugging.vim +++ b/autoload/rust/debugging.vim @@ -1,4 +1,5 @@ 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 = [ @@ -102,4 +103,5 @@ 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 8d88a8f4..6707adc5 100644 --- a/autoload/rust/delimitmate.vim +++ b/autoload/rust/delimitmate.vim @@ -1,4 +1,5 @@ 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` @@ -43,4 +44,5 @@ endfunction " vim: set et sw=4 sts=4 ts=8: + endif diff --git a/autoload/rust/tags.vim b/autoload/rust/tags.vim index d3a3e645..21faaabb 100644 --- a/autoload/rust/tags.vim +++ b/autoload/rust/tags.vim @@ -1,4 +1,5 @@ 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. @@ -16,4 +17,5 @@ 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 4118eef4..151ac82d 100644 --- a/autoload/rustfmt.vim +++ b/autoload/rustfmt.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 + " Author: Stephen Sugden " " Adapted from https://github.com/fatih/vim-go @@ -261,4 +262,5 @@ endfunction " vim: set et sw=4 sts=4 ts=8: + endif diff --git a/autoload/smt2.vim b/autoload/smt2.vim index 655e0d3f..294a64c6 100644 --- a/autoload/smt2.vim +++ b/autoload/smt2.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'smt2') == -1 + " Invokes the solver on current file function! smt2#RunSolver() silent !clear @@ -29,4 +30,5 @@ 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 7ddfd9d1..8372b004 100644 --- a/autoload/terraform.vim +++ b/autoload/terraform.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'terraform') == -1 + function! terraform#fmt() if !filereadable(expand('%:p')) return @@ -55,4 +56,5 @@ function! terraform#commands(A, L, P) \ 'state' \ ] endfunction + endif diff --git a/autoload/vifm/edit.vim b/autoload/vifm/edit.vim index c19155a9..4d97c23b 100644 --- a/autoload/vifm/edit.vim +++ b/autoload/vifm/edit.vim @@ -1,4 +1,5 @@ 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 @@ -13,4 +14,5 @@ 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 f7ae6a98..5e74abde 100644 --- a/autoload/vifm/globals.vim +++ b/autoload/vifm/globals.vim @@ -1,4 +1,5 @@ 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 @@ -30,4 +31,5 @@ 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 08972e34..27e1b310 100644 --- a/autoload/vital/_crystal.vim +++ b/autoload/vital/_crystal.vim @@ -1,4 +1,5 @@ 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 @@ -8,4 +9,5 @@ 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 de55e0e6..af9b4374 100644 --- a/autoload/vital/_crystal/ColorEcho.vim +++ b/autoload/vital/_crystal/ColorEcho.vim @@ -1,4 +1,5 @@ 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___' @@ -186,4 +187,5 @@ 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 8595fa53..c84e1ffa 100644 --- a/autoload/vital/_crystal/Data/List.vim +++ b/autoload/vital/_crystal/Data/List.vim @@ -1,4 +1,5 @@ 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___' @@ -463,4 +464,5 @@ 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 e8c72a47..fe37c6a5 100644 --- a/autoload/vital/_crystal/Data/String.vim +++ b/autoload/vital/_crystal/Data/String.vim @@ -1,4 +1,5 @@ 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___' @@ -626,4 +627,5 @@ 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 5f19af55..9a159932 100644 --- a/autoload/vital/_crystal/Process.vim +++ b/autoload/vital/_crystal/Process.vim @@ -1,4 +1,5 @@ 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___' @@ -172,4 +173,5 @@ 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 ef9cd5e9..e9567fef 100644 --- a/autoload/vital/_crystal/Web/JSON.vim +++ b/autoload/vital/_crystal/Web/JSON.vim @@ -1,4 +1,5 @@ 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___' @@ -177,4 +178,5 @@ 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 f5858108..e1fb611b 100644 --- a/autoload/vital/crystal.vim +++ b/autoload/vital/crystal.vim @@ -1,4 +1,5 @@ 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') @@ -327,4 +328,5 @@ else return a:list endfunction endif + endif diff --git a/autoload/vital/crystal.vital b/autoload/vital/crystal.vital index 19e5f642..4a13eb01 100644 --- a/autoload/vital/crystal.vital +++ b/autoload/vital/crystal.vital @@ -1,8 +1,10 @@ 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 6d2d1a01..4fbd25d9 100644 --- a/autoload/xml/aria.vim +++ b/autoload/xml/aria.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 + " Vim completion for WAI-ARIA data file " Language: HTML + WAI-ARIA " Maintainer: othree @@ -456,4 +457,5 @@ let g:xmldata_aria = { \ 'default_role': default_role, \ 'vimariaattrinfo': aria_attributes_value \ } + endif diff --git a/autoload/xml/html5.vim b/autoload/xml/html5.vim index a8ab04dc..e9e05ee8 100644 --- a/autoload/xml/html5.vim +++ b/autoload/xml/html5.vim @@ -1,4 +1,5 @@ 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 ) @@ -869,4 +870,5 @@ let g:xmldata_html5 = { \ 'wbr': ['/>', ''], \ }, \ } + endif diff --git a/autoload/zig/config.vim b/autoload/zig/config.vim index f208af45..328ba100 100644 --- a/autoload/zig/config.vim +++ b/autoload/zig/config.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'zig') == -1 + function! zig#config#ListTypeCommands() abort return get(g:, 'zig_list_type_commands', {}) endfunction @@ -38,4 +39,5 @@ 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 47c49cd4..d3aa9641 100644 --- a/autoload/zig/fmt.vim +++ b/autoload/zig/fmt.vim @@ -1,4 +1,5 @@ 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. @@ -165,4 +166,5 @@ 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 9716e8c9..bdd43376 100644 --- a/autoload/zig/list.vim +++ b/autoload/zig/list.vim @@ -1,4 +1,5 @@ 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. @@ -157,4 +158,5 @@ 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 8545d48b..bc454dd9 100644 --- a/autoload/zig/util.vim +++ b/autoload/zig/util.vim @@ -1,4 +1,5 @@ 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. @@ -389,4 +390,5 @@ function! zig#util#HasDebug(flag) endfunction " vim: sw=2 ts=2 et + endif diff --git a/compiler/cake.vim b/compiler/cake.vim index c5ca4b6a..9cd45dbb 100644 --- a/compiler/cake.vim +++ b/compiler/cake.vim @@ -1,4 +1,5 @@ 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 @@ -14,4 +15,5 @@ call coffee#CoffeeSetUpVariables() exec 'CompilerSet makeprg=' . escape(g:coffee_cake . ' ' . \ g:coffee_cake_options . ' $*', ' ') call coffee#CoffeeSetUpErrorFormat() + endif diff --git a/compiler/cargo.vim b/compiler/cargo.vim index 25a4dcdb..a8271361 100644 --- a/compiler/cargo.vim +++ b/compiler/cargo.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 + " Vim compiler file " Compiler: Cargo Compiler " Maintainer: Damien Radtke @@ -48,4 +49,5 @@ 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 46a248e1..d4a112c5 100644 --- a/compiler/coffee.vim +++ b/compiler/coffee.vim @@ -1,4 +1,5 @@ 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 @@ -81,4 +82,5 @@ augroup CoffeeUpdateMakePrg autocmd BufWritePre,BufFilePost call s:UpdateMakePrg() endif augroup END + endif diff --git a/compiler/credo.vim b/compiler/credo.vim index 5fdc99ab..271dc67d 100644 --- a/compiler/credo.vim +++ b/compiler/credo.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 + if exists('current_compiler') finish endif @@ -10,4 +11,5 @@ 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 9e4779c6..d355f188 100644 --- a/compiler/cryptol.vim +++ b/compiler/cryptol.vim @@ -1,4 +1,5 @@ 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 @@ -19,4 +20,5 @@ 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 c9223cba..27b76888 100644 --- a/compiler/cucumber.vim +++ b/compiler/cucumber.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cucumber') == -1 + " Vim compiler file " Compiler: Cucumber " Maintainer: Tim Pope @@ -28,4 +29,5 @@ let &cpo = s:cpo_save unlet s:cpo_save " vim:set sw=2 sts=2: + endif diff --git a/compiler/eruby.vim b/compiler/eruby.vim index 5045c882..a2957379 100644 --- a/compiler/eruby.vim +++ b/compiler/eruby.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1 + " Vim compiler file " Language: eRuby " Maintainer: Doug Kearns @@ -38,4 +39,5 @@ 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 1a10be93..1e5e6de5 100644 --- a/compiler/eslint.vim +++ b/compiler/eslint.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'javascript') == -1 + " Vim compiler plugin " Language: JavaScript " Maintainer: vim-javascript community @@ -15,4 +16,5 @@ 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 e459603b..09150683 100644 --- a/compiler/exunit.vim +++ b/compiler/exunit.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 + if exists("current_compiler") finish endif @@ -24,4 +25,5 @@ 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 9daba2e3..87abb8bf 100644 --- a/compiler/fish.vim +++ b/compiler/fish.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fish') == -1 + if exists('current_compiler') finish endif @@ -6,4 +7,5 @@ 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 2eb893fa..a5528cfe 100644 --- a/compiler/go.vim +++ b/compiler/go.vim @@ -1,4 +1,5 @@ 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. @@ -47,4 +48,5 @@ 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 6b1d83d2..69fa1bb9 100644 --- a/compiler/gradle.vim +++ b/compiler/gradle.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'gradle') == -1 + " Vim Compiler File " Compiler: gradle @@ -23,4 +24,5 @@ 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 6715b44d..0d08ff3e 100644 --- a/compiler/gradlew.vim +++ b/compiler/gradlew.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'gradle') == -1 + " Vim Compiler File " Compiler: gradlew @@ -23,4 +24,5 @@ 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 cb0127e2..034c34f3 100644 --- a/compiler/haml.vim +++ b/compiler/haml.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1 + " Vim compiler file " Compiler: Haml " Maintainer: Tim Pope @@ -27,4 +28,5 @@ 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 80cdcf5e..da1dd17c 100644 --- a/compiler/lilypond.vim +++ b/compiler/lilypond.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'lilypond') == -1 + " LilyPond compiler file " Language: LilyPond " Maintainer: Heikki Junes @@ -18,4 +19,5 @@ 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 581cf2b9..8aed9a68 100644 --- a/compiler/ls.vim +++ b/compiler/ls.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'livescript') == -1 + " Language: LiveScript " Maintainer: George Zahariev " URL: http://github.com/gkz/vim-ls @@ -73,4 +74,5 @@ augroup LiveScriptUpdateMakePrg autocmd BufFilePost,BufWritePost call s:UpdateMakePrg() endif augroup END + endif diff --git a/compiler/mix.vim b/compiler/mix.vim index a771ed15..9bee88e9 100644 --- a/compiler/mix.vim +++ b/compiler/mix.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 + if exists('current_compiler') finish endif @@ -15,4 +16,5 @@ 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 637bd4a9..a587a306 100644 --- a/compiler/nim.vim +++ b/compiler/nim.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nim') == -1 + if exists("current_compiler") finish endif @@ -24,4 +25,5 @@ unlet s:cpo_save let g:syntastic_nim_checkers = ['nim'] + endif diff --git a/compiler/nix-build.vim b/compiler/nix-build.vim index 8298e2c9..4ef29d28 100644 --- a/compiler/nix-build.vim +++ b/compiler/nix-build.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nix') == -1 + if exists('current_compiler') finish endif @@ -10,4 +11,5 @@ 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 b6de8420..0f64c8a0 100644 --- a/compiler/ocaml.vim +++ b/compiler/ocaml.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1 + " Vim Compiler File " Compiler: ocaml " Maintainer: Markus Mottl @@ -54,4 +55,5 @@ CompilerSet errorformat = let &cpo = s:cpo_save unlet s:cpo_save + endif diff --git a/compiler/python.vim b/compiler/python.vim index 63930793..eac2bb84 100644 --- a/compiler/python.vim +++ b/compiler/python.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'python-compiler') == -1 + " Vim compiler file " Compiler: Unit testing tool for Python " Maintainer: Ali Aliev @@ -66,4 +67,5 @@ else endif " vim:foldmethod=marker:foldlevel=0 + endif diff --git a/compiler/rake.vim b/compiler/rake.vim index 28a0e7d1..12f7b7a0 100644 --- a/compiler/rake.vim +++ b/compiler/rake.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1 + " Vim compiler file " Language: Rake " Maintainer: Tim Pope @@ -38,4 +39,5 @@ let &cpo = s:cpo_save unlet s:cpo_save " vim: nowrap sw=2 sts=2 ts=8: + endif diff --git a/compiler/rspec.vim b/compiler/rspec.vim index 8c9c020f..1f7c132f 100644 --- a/compiler/rspec.vim +++ b/compiler/rspec.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1 + " Vim compiler file " Language: RSpec " Maintainer: Tim Pope @@ -34,4 +35,5 @@ let &cpo = s:cpo_save unlet s:cpo_save " vim: nowrap sw=2 sts=2 ts=8: + endif diff --git a/compiler/ruby.vim b/compiler/ruby.vim index ef88462d..abdb6d30 100644 --- a/compiler/ruby.vim +++ b/compiler/ruby.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1 + " Vim compiler file " Language: Ruby " Function: Syntax check and/or error reporting @@ -43,4 +44,5 @@ let &cpo = s:cpo_save unlet s:cpo_save " vim: nowrap sw=2 sts=2 ts=8: + endif diff --git a/compiler/rubyunit.vim b/compiler/rubyunit.vim index 884d05ac..c92f3ec8 100644 --- a/compiler/rubyunit.vim +++ b/compiler/rubyunit.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1 + " Vim compiler file " Language: Test::Unit - Ruby Unit Testing Framework " Maintainer: Doug Kearns @@ -34,4 +35,5 @@ let &cpo = s:cpo_save unlet s:cpo_save " vim: nowrap sw=2 sts=2 ts=8: + endif diff --git a/compiler/rustc.vim b/compiler/rustc.vim index cb14dccf..3c378850 100644 --- a/compiler/rustc.vim +++ b/compiler/rustc.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 + " Vim compiler file " Compiler: Rust Compiler " Maintainer: Chris Morgan @@ -56,4 +57,5 @@ 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 6125bf29..a57f58c9 100644 --- a/compiler/sbt.vim +++ b/compiler/sbt.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1 + " Vim compiler file " Language: Scala SBT (http://www.scala-sbt.org/) " Maintainer: Derek Wyatt @@ -29,4 +30,5 @@ let &cpo = s:cpo_save unlet s:cpo_save " vim:set sw=2 sts=2 ts=8 et: + endif diff --git a/compiler/typescript.vim b/compiler/typescript.vim index 6e60b8c6..6d158771 100644 --- a/compiler/typescript.vim +++ b/compiler/typescript.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1 + if exists('current_compiler') finish endif @@ -20,4 +21,5 @@ endif let &l:makeprg = g:typescript_compiler_binary . ' ' . g:typescript_compiler_options . ' $* %' CompilerSet errorformat=%+A\ %#%f\ %#(%l\\\,%c):\ %m,%C%m + endif diff --git a/extras/flow.vim b/extras/flow.vim index 7a266036..6bbd91f1 100644 --- a/extras/flow.vim +++ b/extras/flow.vim @@ -1,4 +1,5 @@ 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 @@ -108,4 +109,5 @@ 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 cad3df30..bbb0bb57 100644 --- a/extras/jsdoc.vim +++ b/extras/jsdoc.vim @@ -1,4 +1,5 @@ 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 @@ -38,4 +39,5 @@ 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 f1384556..6e38f905 100644 --- a/extras/ngdoc.vim +++ b/extras/ngdoc.vim @@ -1,5 +1,7 @@ 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 f1335d79..85fb1ee5 100644 --- a/ftplugin/Dockerfile.vim +++ b/ftplugin/Dockerfile.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dockerfile') == -1 + " Define comment string setlocal commentstring=#\ %s @@ -32,4 +33,5 @@ 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 7ee5166a..7e94ba9d 100644 --- a/ftplugin/ansible.vim +++ b/ftplugin/ansible.vim @@ -1,8 +1,10 @@ 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 e2ecc4b3..d93acc7c 100644 --- a/ftplugin/ansible_hosts.vim +++ b/ftplugin/ansible_hosts.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ansible') == -1 + if exists("b:did_ftplugin") finish else @@ -8,4 +9,5 @@ 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 a5f98824..e5a5af91 100644 --- a/ftplugin/blade.vim +++ b/ftplugin/blade.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'blade') == -1 + " Vim filetype plugin " Language: Blade (Laravel) " Maintainer: Jason Walton @@ -32,4 +33,5 @@ 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 a90e010d..8e4bb985 100644 --- a/ftplugin/caddyfile.vim +++ b/ftplugin/caddyfile.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'caddyfile') == -1 + " Language: Caddyfile " Author: Josh Glendenning @@ -23,4 +24,5 @@ else let g:NERDCustomDelimiters = {'caddyfile': s:delimiters} endif unlet s:delimiters + endif diff --git a/ftplugin/clojure.vim b/ftplugin/clojure.vim index 0563e066..10278114 100644 --- a/ftplugin/clojure.vim +++ b/ftplugin/clojure.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'clojure') == -1 + " Vim filetype plugin file " Language: Clojure " Author: Meikel Brandmeyer @@ -94,4 +95,5 @@ let &cpo = s:cpo_save unlet! s:cpo_save s:setting s:dir " vim:sts=8:sw=8:ts=8:noet + endif diff --git a/ftplugin/coffee.vim b/ftplugin/coffee.vim index 2ccafc1f..64daa290 100644 --- a/ftplugin/coffee.vim +++ b/ftplugin/coffee.vim @@ -1,4 +1,5 @@ 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 @@ -404,4 +405,5 @@ 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 8c70c104..210d0573 100644 --- a/ftplugin/cryptol/folding.vim +++ b/ftplugin/cryptol/folding.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cryptol') == -1 + " Copyright © 2013 Edward O'Callaghan. All Rights Reserved. "setlocal foldmethod=indent @@ -45,4 +46,5 @@ function! GetPotionFold(lnum) return '>' . next_indent endif endfunction + endif diff --git a/ftplugin/crystal.vim b/ftplugin/crystal.vim index b6e10338..c82c3b74 100644 --- a/ftplugin/crystal.vim +++ b/ftplugin/crystal.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 + if exists('b:did_ftplugin') finish endif @@ -79,4 +80,5 @@ 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 ad4c0bec..b5d48dd0 100644 --- a/ftplugin/csv.vim +++ b/ftplugin/csv.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'csv') == -1 + " Filetype plugin for editing CSV files. "{{{1 " Author: Christian Brabandt " Version: 0.31 @@ -33,4 +34,5 @@ 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 cf4c7b78..296fd752 100644 --- a/ftplugin/cucumber.vim +++ b/ftplugin/cucumber.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cucumber') == -1 + " Vim filetype plugin " Language: Cucumber " Maintainer: Tim Pope @@ -149,4 +150,5 @@ 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 23b709c0..99dd9a8c 100644 --- a/ftplugin/dart.vim +++ b/ftplugin/dart.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dart') == -1 + if exists('b:did_ftplugin') finish endif @@ -28,4 +29,5 @@ 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 7ce258c5..3e7c2d0a 100644 --- a/ftplugin/dhall.vim +++ b/ftplugin/dhall.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dhall') == -1 + if exists('b:dhall_ftplugin') finish endif @@ -34,4 +35,5 @@ 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 44361375..82896b05 100644 --- a/ftplugin/docker-compose.vim +++ b/ftplugin/docker-compose.vim @@ -1,7 +1,9 @@ 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 4575f568..ab8174a9 100644 --- a/ftplugin/eelixir.vim +++ b/ftplugin/eelixir.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 + if exists("b:did_ftplugin") finish endif @@ -106,4 +107,5 @@ let b:undo_ftplugin = "setl cms< " . \ " | unlet! b:browsefilter b:match_words | " . s:undo_ftplugin let &cpo = s:save_cpo + endif diff --git a/ftplugin/elixir.vim b/ftplugin/elixir.vim index 57f5a6f7..e6e0cafa 100644 --- a/ftplugin/elixir.vim +++ b/ftplugin/elixir.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 + if exists('b:did_ftplugin') finish endif @@ -50,4 +51,5 @@ onoremap [] ':silent keeppatterns ?'.b:block_end .'> " URL: http://github.com/yalesov/vim-ember-script @@ -20,4 +21,5 @@ else endif setlocal comments=:# setlocal commentstring=#\ %s + endif diff --git a/ftplugin/emblem.vim b/ftplugin/emblem.vim index eec84036..54bdc07e 100644 --- a/ftplugin/emblem.vim +++ b/ftplugin/emblem.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'emblem') == -1 + " Language: emblem " Maintainer: Yulij Andreevich Lesov " URL: http://github.com/yalesov/vim-emblem @@ -16,4 +17,5 @@ setlocal smartindent setlocal formatoptions=q setlocal comments=:/ setlocal commentstring=/\ %s + endif diff --git a/ftplugin/eruby.vim b/ftplugin/eruby.vim index ba813b9e..2add9e90 100644 --- a/ftplugin/eruby.vim +++ b/ftplugin/eruby.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1 + " Vim filetype plugin " Language: eRuby " Maintainer: Tim Pope @@ -130,4 +131,5 @@ function! ErubyAtCursor() abort endfunction " vim: nowrap sw=2 sts=2 ts=8: + endif diff --git a/ftplugin/fish.vim b/ftplugin/fish.vim index 6097e2ab..7ba9c927 100644 --- a/ftplugin/fish.vim +++ b/ftplugin/fish.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fish') == -1 + setlocal comments=:# setlocal commentstring=#%s setlocal define=\\v^\\s*function> @@ -38,4 +39,5 @@ 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 6bd9098d..f26c62cf 100644 --- a/ftplugin/git.vim +++ b/ftplugin/git.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1 + " Vim filetype plugin " Language: generic git output " Maintainer: Tim Pope @@ -40,4 +41,5 @@ endif setlocal includeexpr=substitute(v:fname,'^[^/]\\+/','','') let b:undo_ftplugin = "setl keywordprg< path< includeexpr<" + endif diff --git a/ftplugin/gitcommit.vim b/ftplugin/gitcommit.vim index 723b2915..ca849a2c 100644 --- a/ftplugin/gitcommit.vim +++ b/ftplugin/gitcommit.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1 + " Vim filetype plugin " Language: git commit file " Maintainer: Tim Pope @@ -65,4 +66,5 @@ 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 0f0d705b..2cb8d97f 100644 --- a/ftplugin/gitconfig.vim +++ b/ftplugin/gitconfig.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1 + " Vim filetype plugin " Language: git config file " Maintainer: Tim Pope @@ -14,4 +15,5 @@ setlocal formatoptions-=t formatoptions+=croql setlocal comments=:#,:; commentstring=;\ %s let b:undo_ftplugin = "setl fo< com< cms<" + endif diff --git a/ftplugin/gitrebase.vim b/ftplugin/gitrebase.vim index 202f676e..1395c8ab 100644 --- a/ftplugin/gitrebase.vim +++ b/ftplugin/gitrebase.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1 + " Vim filetype plugin " Language: git rebase --interactive " Maintainer: Tim Pope @@ -44,4 +45,5 @@ 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 30aed3f6..e13b3ca9 100644 --- a/ftplugin/gitsendemail.vim +++ b/ftplugin/gitsendemail.vim @@ -1,8 +1,10 @@ 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 492fe107..e6c59d92 100644 --- a/ftplugin/graphql.vim +++ b/ftplugin/graphql.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1 + " Vim filetype plugin " Language: GraphQL " Maintainer: Jon Parise @@ -17,4 +18,5 @@ 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 7fa8efa4..ca5655ec 100644 --- a/ftplugin/haml.vim +++ b/ftplugin/haml.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1 + " Vim filetype plugin " Language: Haml " Maintainer: Tim Pope @@ -70,4 +71,5 @@ 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 a48f406b..c4b44e24 100644 --- a/ftplugin/hcl.vim +++ b/ftplugin/hcl.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'hcl') == -1 + " File: ftplugin/hcl.vim " Author: BABAROT " Description: FileType Plugin for HCL @@ -36,4 +37,5 @@ 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 c7ceb774..dc950624 100644 --- a/ftplugin/hive.vim +++ b/ftplugin/hive.vim @@ -1,4 +1,6 @@ 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 7b856136..50cdb2ae 100644 --- a/ftplugin/html.vim +++ b/ftplugin/html.vim @@ -1,4 +1,5 @@ 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 @@ -8,4 +9,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 " setlocal iskeyword+=- setlocal commentstring= + endif diff --git a/ftplugin/i3config.vim b/ftplugin/i3config.vim index f5451e80..dbb95e33 100644 --- a/ftplugin/i3config.vim +++ b/ftplugin/i3config.vim @@ -1,3 +1,5 @@ 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 777b6cfd..ae46bedd 100644 --- a/ftplugin/idris.vim +++ b/ftplugin/idris.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'idris') == -1 + if bufname('%') == "idris-response" finish endif @@ -341,4 +342,5 @@ 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 1a056112..88bb5238 100644 --- a/ftplugin/ion.vim +++ b/ftplugin/ion.vim @@ -1,7 +1,9 @@ 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 628620ad..2ed1b9cc 100644 --- a/ftplugin/jbuild.vim +++ b/ftplugin/jbuild.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1 + if exists("b:did_ftplugin") finish endif @@ -11,4 +12,5 @@ setl commentstring=;\ %s setl comments=:; setl iskeyword+=#,?,.,/ + endif diff --git a/ftplugin/json.vim b/ftplugin/json.vim index f8185ca5..2d51fbd7 100644 --- a/ftplugin/json.vim +++ b/ftplugin/json.vim @@ -1,4 +1,5 @@ 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 @@ -37,4 +38,5 @@ 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 27930727..c03ac30b 100644 --- a/ftplugin/julia.vim +++ b/ftplugin/julia.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1 + " Vim filetype plugin file " Language: Julia " Maintainer: Carlo Baldassi @@ -106,4 +107,5 @@ 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 aa21646e..2d9e2168 100644 --- a/ftplugin/juliadoc.vim +++ b/ftplugin/juliadoc.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1 + " Vim filetype plugin file " Language: Julia document @@ -29,4 +30,5 @@ 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 aefa76c9..f9cc4303 100644 --- a/ftplugin/kotlin.vim +++ b/ftplugin/kotlin.vim @@ -1,7 +1,9 @@ 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 938d97b2..1a972c9b 100644 --- a/ftplugin/latex-box/common.vim +++ b/ftplugin/latex-box/common.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1 + " LaTeX Box common functions " Error Format {{{ @@ -412,4 +413,5 @@ endfunction " }}} " vim:fdm=marker:ff=unix:noet:ts=4:sw=4 + endif diff --git a/ftplugin/latex-box/complete.vim b/ftplugin/latex-box/complete.vim index 74f98696..56e7516e 100644 --- a/ftplugin/latex-box/complete.vim +++ b/ftplugin/latex-box/complete.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1 + " LaTeX Box completion setlocal omnifunc=LatexBox_Complete @@ -931,4 +932,5 @@ 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 a06358b5..6d1a9928 100644 --- a/ftplugin/latex-box/findmain.vim +++ b/ftplugin/latex-box/findmain.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1 + " LatexBox_GetMainFileName: gets the name of the main file being compiled. {{{ " Description: returns the full path name of the main file. " This function checks for the existence of a .latexmain file @@ -61,4 +62,5 @@ function! LatexBox_GetMainFileName(...) " certain platforms. return lheadfile endfunction + endif diff --git a/ftplugin/latex-box/folding.vim b/ftplugin/latex-box/folding.vim index 1dac48d5..e24e036d 100644 --- a/ftplugin/latex-box/folding.vim +++ b/ftplugin/latex-box/folding.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1 + " Folding support for LaTeX " @@ -377,4 +378,5 @@ endfunction " {{{1 Footer " vim:fdm=marker:ff=unix:ts=4:sw=4 + endif diff --git a/ftplugin/latex-box/latexmk.vim b/ftplugin/latex-box/latexmk.vim index c1b917b7..ef9ef024 100644 --- a/ftplugin/latex-box/latexmk.vim +++ b/ftplugin/latex-box/latexmk.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1 + " LaTeX Box latexmk functions " Options and variables {{{ @@ -553,4 +554,5 @@ endif " }}} " vim:fdm=marker:ff=unix:noet:ts=4:sw=4 + endif diff --git a/ftplugin/latex-box/mappings.vim b/ftplugin/latex-box/mappings.vim index 7d2e0633..b64a88df 100644 --- a/ftplugin/latex-box/mappings.vim +++ b/ftplugin/latex-box/mappings.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1 + " LaTeX Box mappings if exists("g:LatexBox_no_mappings") @@ -105,4 +106,5 @@ 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 9caa0ed5..7982d04b 100644 --- a/ftplugin/latex-box/motion.vim +++ b/ftplugin/latex-box/motion.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1 + " LaTeX Box motion functions " Motion options {{{ @@ -543,4 +544,5 @@ command! LatexTOCToggle call LatexBox_TOC(1) " }}} " vim:fdm=marker:ff=unix:noet:ts=4:sw=4 + endif diff --git a/ftplugin/latextoc.vim b/ftplugin/latextoc.vim index 1c4c4953..5e709f67 100644 --- a/ftplugin/latextoc.vim +++ b/ftplugin/latextoc.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1 + " {{{1 Settings setlocal buftype=nofile setlocal bufhidden=wipe @@ -201,4 +202,5 @@ 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 5fb1f5f3..ecb060b9 100644 --- a/ftplugin/less.vim +++ b/ftplugin/less.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'less') == -1 + " Vim filetype plugin " Language: LessCSS " Author: Tim Pope @@ -25,4 +26,5 @@ 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 a0e1a137..9debb532 100644 --- a/ftplugin/lilypond.vim +++ b/ftplugin/lilypond.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'lilypond') == -1 + " LilyPond filetype plugin " Language: LilyPond (ft=ly) " Maintainer: Heikki Junes @@ -56,4 +57,5 @@ 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 6dfb197c..31284a8d 100644 --- a/ftplugin/litcoffee.vim +++ b/ftplugin/litcoffee.vim @@ -1,3 +1,5 @@ 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 b2c65f4e..a7b93e7b 100644 --- a/ftplugin/llvm.vim +++ b/ftplugin/llvm.vim @@ -1,4 +1,5 @@ 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/ @@ -11,4 +12,5 @@ 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 b40ca5ea..5f9af33d 100644 --- a/ftplugin/ls.vim +++ b/ftplugin/ls.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'livescript') == -1 + " Language: LiveScript " Maintainer: George Zahariev " URL: http://github.com/gkz/vim-ls @@ -203,4 +204,5 @@ 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 9dc2cbb5..33e62683 100644 --- a/ftplugin/mail_vifm.vim +++ b/ftplugin/mail_vifm.vim @@ -1,4 +1,5 @@ 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 @@ -63,4 +64,5 @@ 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 b20b9593..81943b68 100644 --- a/ftplugin/mako.vim +++ b/ftplugin/mako.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mako') == -1 + " Vim filetype plugin file " Language: Mako " Maintainer: Randy Stauner @@ -10,4 +11,5 @@ let b:did_ftplugin = 1 setlocal comments=:## setlocal commentstring=##%s + endif diff --git a/ftplugin/meson.vim b/ftplugin/meson.vim index 8949b6ee..2f4abd9b 100644 --- a/ftplugin/meson.vim +++ b/ftplugin/meson.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'meson') == -1 + " Vim filetype plugin file " Language: meson " Original Author: Laurent Pinchart @@ -14,4 +15,5 @@ setlocal softtabstop=2 let &cpo = s:keepcpo unlet s:keepcpo + endif diff --git a/ftplugin/mma.vim b/ftplugin/mma.vim index 237f1da8..4a2581eb 100644 --- a/ftplugin/mma.vim +++ b/ftplugin/mma.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mathematica') == -1 + "Vim filetype plugin " Language: Mathematica " Maintainer: R. Menon @@ -58,4 +59,5 @@ unlet s:cpo_save "} " vim: set foldmarker={,} foldlevel=0 foldmethod=marker: + endif diff --git a/ftplugin/moon.vim b/ftplugin/moon.vim index e99de496..a4eca9a5 100644 --- a/ftplugin/moon.vim +++ b/ftplugin/moon.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'moonscript') == -1 + " Language: MoonScript " Maintainer: leafo " Based On: CoffeeScript by Mick Koch @@ -15,4 +16,5 @@ 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 03889841..649984aa 100644 --- a/ftplugin/mustache.vim +++ b/ftplugin/mustache.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'handlebars') == -1 + if exists('b:loaded_mustache_handlebars') finish endif @@ -122,4 +123,5 @@ let &cpo = s:cpo_save unlet s:cpo_save " vim: nofoldenable + endif diff --git a/ftplugin/nginx.vim b/ftplugin/nginx.vim index 08f9b340..1ae40849 100644 --- a/ftplugin/nginx.vim +++ b/ftplugin/nginx.vim @@ -1,3 +1,5 @@ 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 40444150..c3e745a9 100644 --- a/ftplugin/nix.vim +++ b/ftplugin/nix.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nix') == -1 + " Vim filetype plugin " Language: Nix " Maintainer: Daiderd Jordan @@ -20,4 +21,5 @@ if get(g:, 'nix_recommended_style', 1) \ softtabstop=2 \ expandtab endif + endif diff --git a/ftplugin/oasis.vim b/ftplugin/oasis.vim index 51442403..850889eb 100644 --- a/ftplugin/oasis.vim +++ b/ftplugin/oasis.vim @@ -1,5 +1,7 @@ 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 5378f43b..ed76e4bd 100644 --- a/ftplugin/objc.vim +++ b/ftplugin/objc.vim @@ -1,8 +1,10 @@ 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 9c8f7908..7e84445c 100644 --- a/ftplugin/ocaml.vim +++ b/ftplugin/ocaml.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1 + " Language: OCaml " Maintainer: David Baelde " Mike Leary @@ -639,4 +640,5 @@ 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 51442403..850889eb 100644 --- a/ftplugin/ocamlbuild_tags.vim +++ b/ftplugin/ocamlbuild_tags.vim @@ -1,5 +1,7 @@ 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 c38328a0..656cc6a9 100644 --- a/ftplugin/omake.vim +++ b/ftplugin/omake.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1 + " Vim filetype plugin file " Language: OMake @@ -23,4 +24,5 @@ setlocal expandtab " Including files. let &l:include = '^\s*include' + endif diff --git a/ftplugin/opencl.vim b/ftplugin/opencl.vim index d3daecac..c9fa5673 100644 --- a/ftplugin/opencl.vim +++ b/ftplugin/opencl.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'opencl') == -1 + if exists("b:did_ftplugin") | finish | endif if version > 600 @@ -14,4 +15,5 @@ setlocal smarttab setlocal smartindent let b:did_ftplugin = 1 + endif diff --git a/ftplugin/perl.vim b/ftplugin/perl.vim index cb1172e7..b0eaf1ba 100644 --- a/ftplugin/perl.vim +++ b/ftplugin/perl.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1 + " Vim filetype plugin file " Language: Perl " Maintainer: vim-perl @@ -88,4 +89,5 @@ 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 ab6d331b..b17f88ba 100644 --- a/ftplugin/plantuml.vim +++ b/ftplugin/plantuml.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'plantuml') == -1 + scriptencoding utf-8 " Vim filetype plugin file " Language: PlantUML @@ -43,4 +44,5 @@ 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 7168d6be..df726643 100644 --- a/ftplugin/pony.vim +++ b/ftplugin/pony.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'pony') == -1 + " Vim filetype plugin file " Language: Pony " Maintainer: Jak Wings @@ -39,4 +40,5 @@ 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 c7a19fc4..4baa4665 100644 --- a/ftplugin/ps1.vim +++ b/ftplugin/ps1.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'powershell') == -1 + " Vim filetype plugin file " Language: Windows PowerShell " Maintainer: Peter Provost @@ -33,4 +34,5 @@ endif let b:undo_ftplugin = "setlocal tw< cms< fo<" . \ " | unlet! b:browsefilter" + endif diff --git a/ftplugin/ps1xml.vim b/ftplugin/ps1xml.vim index 4b1b3485..a0233fd8 100644 --- a/ftplugin/ps1xml.vim +++ b/ftplugin/ps1xml.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'powershell') == -1 + " Vim filetype plugin file " Language: Windows PowerShell " Maintainer: Peter Provost @@ -30,4 +31,5 @@ endif let b:undo_ftplugin = "setlocal tw< cms< fo<" . \ " | unlet! b:browsefilter" + endif diff --git a/ftplugin/pug.vim b/ftplugin/pug.vim index 32b8f76e..1bd08b39 100644 --- a/ftplugin/pug.vim +++ b/ftplugin/pug.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'pug') == -1 + " Vim filetype plugin " Language: Pug " Maintainer: Joshua Borton @@ -56,4 +57,5 @@ 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 876b4748..3c843314 100644 --- a/ftplugin/puppet.vim +++ b/ftplugin/puppet.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1 + setl ts=2 setl sts=2 setl sw=2 @@ -6,4 +7,5 @@ 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 9fdf69c7..36772da7 100644 --- a/ftplugin/puppet_tagbar.vim +++ b/ftplugin/puppet_tagbar.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1 + " Puppet set up for Tagbar plugin " (https://github.com/majutsushi/tagbar). @@ -43,4 +44,5 @@ endif let g:tagbar_type_puppet.deffile = puppet#ctags#OptionFile() + endif diff --git a/ftplugin/purescript.vim b/ftplugin/purescript.vim index b637d347..c2c85535 100644 --- a/ftplugin/purescript.vim +++ b/ftplugin/purescript.vim @@ -1,4 +1,5 @@ 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')) @@ -37,4 +38,5 @@ fun! InitPureScript() call add(s:PS, [dir, &l:path]) endfun call InitPureScript() + endif diff --git a/ftplugin/qml.vim b/ftplugin/qml.vim index b4043b32..f4a96fa6 100644 --- a/ftplugin/qml.vim +++ b/ftplugin/qml.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'qml') == -1 + " Vim filetype plugin file " Language: qml " Last change: 2014 Feb 8 @@ -36,4 +37,5 @@ setlocal formatoptions+=croql let &cpoptions = s:cpoptions_save unlet s:cpoptions_save + endif diff --git a/ftplugin/racket.vim b/ftplugin/racket.vim index 3f76c298..ccdcdef4 100644 --- a/ftplugin/racket.vim +++ b/ftplugin/racket.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'racket') == -1 + " Language: Racket " Maintainer: Will Langstroth " URL: http://github.com/wlangstroth/vim-racket @@ -58,4 +59,5 @@ nnoremap :!racket -t % "setl commentstring=;;%s setl commentstring=#\|\ %s\ \|# + endif diff --git a/ftplugin/raml.vim b/ftplugin/raml.vim index 21af8307..b7cef80e 100644 --- a/ftplugin/raml.vim +++ b/ftplugin/raml.vim @@ -1,3 +1,5 @@ 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 5fc87d21..14983362 100644 --- a/ftplugin/rst.vim +++ b/ftplugin/rst.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rst') == -1 + " reStructuredText filetype plugin file " Language: reStructuredText documentation format " Maintainer: Marshall Ward @@ -46,4 +47,5 @@ endif let &cpo = s:cpo_save unlet s:cpo_save + endif diff --git a/ftplugin/ruby.vim b/ftplugin/ruby.vim index 81d9ad99..9abce9f9 100644 --- a/ftplugin/ruby.vim +++ b/ftplugin/ruby.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1 + " Vim filetype plugin " Language: Ruby " Maintainer: Tim Pope @@ -433,4 +434,5 @@ endfunction " " vim: nowrap sw=2 sts=2 ts=8: + endif diff --git a/ftplugin/rust.vim b/ftplugin/rust.vim index 3f8d9170..d8de0f1a 100644 --- a/ftplugin/rust.vim +++ b/ftplugin/rust.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 + " Language: Rust " Description: Vim ftplugin for Rust " Maintainer: Chris Morgan @@ -200,4 +201,5 @@ 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 af01a818..9533a682 100644 --- a/ftplugin/rust/tagbar.vim +++ b/ftplugin/rust/tagbar.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 + " " Support for Tagbar -- https://github.com/majutsushi/tagbar " @@ -39,4 +40,5 @@ 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 199aed94..dafda59f 100644 --- a/ftplugin/scala.vim +++ b/ftplugin/scala.vim @@ -1,4 +1,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1 + " Vim filetype plugin " Language: Scala " Maintainer: Derek Wyatt @@ -175,4 +176,5 @@ noremap