├── .github ├── ISSUE_TEMPLATE │ ├── add-language.md │ └── bug-report.md └── workflows │ └── test.yml ├── .gitignore ├── Makefile ├── README.md ├── after ├── compiler │ └── tex.vim ├── ftplugin │ ├── cabal.vim │ ├── coffee.vim │ ├── haskell.vim │ ├── idris.vim │ ├── idris2.vim │ ├── javascript-1.vim │ ├── javascript-2.vim │ ├── javascript.vim │ ├── javascriptreact.vim │ ├── jsx.vim │ ├── just.vim │ ├── llvm.vim │ ├── puppet.vim │ ├── tex.vim │ ├── tsx.vim │ └── typescriptreact.vim ├── indent │ ├── javascript-1.vim │ ├── javascript-2.vim │ ├── javascript.vim │ ├── javascriptreact.vim │ ├── jsx.vim │ ├── objc.vim │ ├── php.vim │ ├── tex.vim │ ├── tsx.vim │ ├── typescript.vim │ └── typescriptreact.vim └── syntax │ ├── c.vim │ ├── coffee.vim │ ├── cpp.vim │ ├── haskell.vim │ ├── help.vim │ ├── html.vim │ ├── idris.vim │ ├── idris2.vim │ ├── javascript.vim │ ├── javascript │ ├── graphql.vim │ └── sql.vim │ ├── javascriptreact.vim │ ├── javascriptreact │ └── graphql.vim │ ├── jsx.vim │ ├── jsx_pretty.vim │ ├── llvm.vim │ ├── mdx.vim │ ├── mma.vim │ ├── objc.vim │ ├── php │ └── graphql.vim │ ├── puppet.vim │ ├── reason.vim │ ├── reason │ └── graphql.vim │ ├── rescript │ └── graphql.vim │ ├── rspec.vim │ ├── ruby.vim │ ├── rust.vim │ ├── tex.vim │ ├── tsx.vim │ ├── typescript │ └── graphql.vim │ ├── typescriptreact.vim │ ├── typescriptreact │ └── graphql.vim │ ├── vue │ └── graphql.vim │ ├── yardoc_support.vim │ └── zsh.vim ├── autoload ├── LaTeXtoUnicode.vim ├── RstFold.vim ├── ada.vim ├── cargo.vim ├── cargo │ └── quickfix.vim ├── clojurecomplete.vim ├── coc │ └── source │ │ └── requirements.vim ├── coffee.vim ├── crystal │ └── indent.vim ├── crystal_lang.vim ├── csv.vim ├── dart.vim ├── db │ └── adapter │ │ └── ecto.vim ├── ecrystal.vim ├── elixir │ ├── indent.vim │ └── util.vim ├── fish.vim ├── freebasic.vim ├── fsharp.vim ├── fzf_gitignore.vim ├── go │ └── config.vim ├── graphql.vim ├── hcl.vim ├── htmlcomplete.vim ├── jsonnet.vim ├── jsx_pretty │ ├── comment.vim │ └── indent.vim ├── julia.vim ├── julia │ └── doc.vim ├── julia_blocks.vim ├── julia_latex_symbols.vim ├── ledger.vim ├── nim.vim ├── org.vim ├── polyglot │ ├── detect.vim │ ├── ft.vim │ ├── init.vim │ ├── shebang.vim │ └── sleuth.vim ├── pony.vim ├── puppet │ ├── align.vim │ ├── ctags.vim │ └── format.vim ├── python │ └── utils.vim ├── requirements.vim ├── requirements │ └── utils.vim ├── rubycomplete.vim ├── rust.vim ├── rust │ ├── debugging.vim │ ├── delimitmate.vim │ └── tags.vim ├── rustfmt.vim ├── smt2 │ ├── formatter.vim │ ├── parser.vim │ ├── scanner.vim │ └── solver.vim ├── svelte.vim ├── terraform.vim ├── unison.vim ├── vital │ ├── _crystal.vim │ ├── _crystal │ │ ├── ColorEcho.vim │ │ ├── Data │ │ │ ├── List.vim │ │ │ └── String.vim │ │ ├── Process.vim │ │ └── Web │ │ │ └── JSON.vim │ ├── crystal.vim │ └── crystal.vital ├── xml │ ├── aria.vim │ ├── html5.vim │ └── xsd.vim ├── yats.vim └── zig │ └── fmt.vim ├── compiler ├── ant.vim ├── bdf.vim ├── cake.vim ├── cargo.vim ├── coffee.vim ├── credo.vim ├── cryptol.vim ├── cs.vim ├── cucumber.vim ├── dot.vim ├── eruby.vim ├── exunit.vim ├── fish.vim ├── gleam.vim ├── go.vim ├── gradle.vim ├── gradlew.vim ├── haml.vim ├── ledger.vim ├── lilypond.vim ├── ls.vim ├── mix.vim ├── nim.vim ├── nix-build.vim ├── ocaml.vim ├── pip_compile.vim ├── powershell.vim ├── puppet-lint.vim ├── python.vim ├── rake.vim ├── rspec.vim ├── ruby.vim ├── rubyunit.vim ├── rustc.vim ├── sass.vim ├── sbt.vim ├── sml.vim ├── swift.vim ├── tcl.vim ├── tidy.vim ├── typescript.vim ├── zig.vim ├── zig_build.vim ├── zig_build_exe.vim └── zig_test.vim ├── ctags ├── puppet.ctags ├── puppet_u.ctags ├── rust.ctags ├── scala.ctags └── typescript.ctags ├── doc └── polyglot.txt ├── extras ├── filetype.vim ├── flow.vim ├── jsdoc.vim ├── menu.vim └── ngdoc.vim ├── filetype.vim ├── ftdetect └── polyglot.vim ├── ftoff.vim ├── ftplugin ├── 8th.vim ├── a2ps.vim ├── aap.vim ├── abap.vim ├── abaqus.vim ├── ada.vim ├── alsaconf.vim ├── ansible.vim ├── ansible_hosts.vim ├── ant.vim ├── arch.vim ├── art.vim ├── aspvbs.vim ├── automake.vim ├── awk.vim ├── basic.vim ├── bdf.vim ├── bicep.vim ├── blade.vim ├── bst.vim ├── bzl.vim ├── caddyfile.vim ├── calendar.vim ├── cdrdaoconf.vim ├── cfg.vim ├── ch.vim ├── clojure.vim ├── cobol.vim ├── coffee.vim ├── conf.vim ├── config.vim ├── crm.vim ├── cryptol │ └── folding.vim ├── crystal.vim ├── cs.vim ├── csc.vim ├── css.vim ├── csv.vim ├── cucumber.vim ├── cvsrc.vim ├── dart.vim ├── debchangelog.vim ├── debcontrol.vim ├── denyhosts.vim ├── dhall.vim ├── dictconf.vim ├── dictdconf.vim ├── diff.vim ├── dircolors.vim ├── docker-compose.vim ├── dockerfile.vim ├── dosbatch.vim ├── dosini.vim ├── dtd.vim ├── dune.vim ├── ecrystal.vim ├── eelixir.vim ├── elinks.vim ├── elixir.vim ├── ember-script.vim ├── emblem.vim ├── epuppet.vim ├── erlang.vim ├── eruby.vim ├── eterm.vim ├── falcon.vim ├── fennel.vim ├── fetchmail.vim ├── fish.vim ├── fortran.vim ├── framescript.vim ├── freebasic.vim ├── fstab.vim ├── fvwm.vim ├── gdb.vim ├── gitcommit.vim ├── gitconfig.vim ├── gitignore.vim ├── gitrebase.vim ├── gitsendemail.vim ├── gleam.vim ├── gpg.vim ├── graphql.vim ├── groovy.vim ├── group.vim ├── grub.vim ├── haml.vim ├── hamster.vim ├── handlebars.vim ├── hcl.vim ├── help.vim ├── hgcommit.vim ├── hive.vim ├── hog.vim ├── hostconf.vim ├── hostsaccess.vim ├── html.vim ├── htmldjango.vim ├── idris.vim ├── idris2.vim ├── indent.vim ├── ion.vim ├── j.vim ├── jproperties.vim ├── jq.vim ├── json.vim ├── jsonnet.vim ├── jsp.vim ├── julia.vim ├── juliadoc.vim ├── kconfig.vim ├── kotlin.vim ├── kwt.vim ├── ld.vim ├── less.vim ├── lftp.vim ├── libao.vim ├── lilypond.vim ├── limits.vim ├── liquid.vim ├── lisp.vim ├── litcoffee.vim ├── llvm.vim ├── logcheck.vim ├── loginaccess.vim ├── logindefs.vim ├── logtalk.vim ├── lprolog.vim ├── ls.vim ├── m4.vim ├── mail.vim ├── mailaliases.vim ├── mailcap.vim ├── make.vim ├── mako.vim ├── manconf.vim ├── markdown.vim ├── meson.vim ├── mf.vim ├── mir.vim ├── mlir.vim ├── mma.vim ├── modconf.vim ├── modula2.vim ├── modula3.vim ├── moon.vim ├── mp.vim ├── mplayerconf.vim ├── mrxvtrc.vim ├── mustache.vim ├── muttrc.vim ├── nanorc.vim ├── neomuttrc.vim ├── netrc.vim ├── nftables.vim ├── nginx.vim ├── nix.vim ├── nroff.vim ├── nsis.vim ├── oasis.vim ├── objc.vim ├── ocaml.vim ├── ocamlbuild_tags.vim ├── occam.vim ├── octave.vim ├── omake.vim ├── opencl.vim ├── openscad.vim ├── org.vim ├── outline.vim ├── pamconf.vim ├── pascal.vim ├── passwd.vim ├── pdf.vim ├── perl.vim ├── pest.vim ├── pinfo.vim ├── plantuml.vim ├── pony.vim ├── postscr.vim ├── procmail.vim ├── prolog.vim ├── protocols.vim ├── ps1.vim ├── ps1xml.vim ├── pug.vim ├── puppet.vim ├── puppet_tagbar.vim ├── purescript.vim ├── pyrex.vim ├── qml.vim ├── quake.vim ├── racket.vim ├── raku.vim ├── raml.vim ├── razor.vim ├── readline.vim ├── requirements.vim ├── reva.vim ├── rmd.vim ├── rnc.vim ├── rnoweb.vim ├── rpl.vim ├── rrst.vim ├── rst.vim ├── ruby.vim ├── rust.vim ├── rust │ └── tagbar.vim ├── sass.vim ├── sbt.vim ├── scala.vim ├── scala.xpt.vim ├── scala │ └── tagbar.vim ├── scheme.vim ├── screen.vim ├── scss.vim ├── sensors.vim ├── services.vim ├── setserial.vim ├── sexplib.vim ├── sieve.vim ├── slim.vim ├── slpconf.vim ├── slpreg.vim ├── slpspi.vim ├── smt2.vim ├── solidity.vim ├── spec.vim ├── sql.vim ├── sshconfig.vim ├── stylus.vim ├── sudoers.vim ├── svelte.vim ├── svelte │ └── fold.vim ├── swayconfig.vim ├── swift.vim ├── swiftgyb.vim ├── sxhkdrc.vim ├── sysctl.vim ├── systemd.vim ├── systemverilog.vim ├── tablegen.vim ├── tcl.vim ├── terminfo.vim ├── terraform.vim ├── text.vim ├── textile.vim ├── tidy.vim ├── tmux.vim ├── toml.vim ├── treetop.vim ├── tt2html.vim ├── twig.vim ├── typescript.vim ├── typescriptreact.vim ├── udevconf.vim ├── udevperm.vim ├── unison.vim ├── updatedb.vim ├── vala.vim ├── vb.vim ├── verilog.vim ├── vhdl.vim ├── vlang.vim ├── vroom.vim ├── vue.vim ├── wast.vim ├── xdefaults.vim ├── xf86conf.vim ├── xhtml.vim ├── xinetd.vim ├── xmodmap.vim ├── xs.vim ├── xsd.vim ├── xslt.vim ├── yaml.vim ├── zig.vim └── zimbu.vim ├── heuristics.yaml ├── indent ├── Jenkinsfile.vim ├── aap.vim ├── ada.vim ├── ansible.vim ├── ant.vim ├── applescript.vim ├── arduino.vim ├── autohotkey.vim ├── automake.vim ├── awk.vim ├── basic.vim ├── bib.vim ├── bicep.vim ├── blade.vim ├── bst.vim ├── bzl.vim ├── cabal.vim ├── caddyfile.vim ├── cdl.vim ├── ch.vim ├── chaiscript.vim ├── clojure.vim ├── cmake.vim ├── cobol.vim ├── coffee.vim ├── config.vim ├── crystal.vim ├── cs.vim ├── css.vim ├── cucumber.vim ├── cuda.vim ├── cython.vim ├── d.vim ├── dart.vim ├── dictconf.vim ├── dictdconf.vim ├── dosbatch.vim ├── dtd.vim ├── dune.vim ├── dylan.vim ├── ecrystal.vim ├── eelixir.vim ├── elixir.vim ├── elm.vim ├── ember-script.vim ├── emblem.vim ├── erlang.vim ├── eruby.vim ├── eterm.vim ├── falcon.vim ├── fennel.vim ├── fish.vim ├── fortran.vim ├── framescript.vim ├── freebasic.vim ├── fsharp.vim ├── gitconfig.vim ├── gitolite.vim ├── glsl.vim ├── go.vim ├── gohtmltmpl.vim ├── graphql.vim ├── haml.vim ├── hamster.vim ├── handlebars.vim ├── haskell.vim ├── haxe.vim ├── hcl.vim ├── hog.vim ├── html.vim ├── htmldjango.vim ├── idris.vim ├── idris2.vim ├── j.vim ├── javascript.vim ├── json.vim ├── jsonc.vim ├── jsp.vim ├── jst.vim ├── julia.vim ├── kotlin.vim ├── ld.vim ├── ledger.vim ├── less.vim ├── lifelines.vim ├── lilypond.vim ├── liquid.vim ├── lisp.vim ├── litcoffee.vim ├── llvm.vim ├── logtalk.vim ├── ls.vim ├── lua.vim ├── mail.vim ├── make.vim ├── mako.vim ├── markdown.vim ├── mermaid.vim ├── meson.vim ├── mf.vim ├── mlir.vim ├── moon.vim ├── mp.vim ├── mustache.vim ├── nftables.vim ├── nginx.vim ├── nim.vim ├── nix.vim ├── nsis.vim ├── ocaml.vim ├── occam.vim ├── octave.vim ├── odin.vim ├── omake.vim ├── opencl.vim ├── pascal.vim ├── perl.vim ├── pgsql.vim ├── plantuml.vim ├── pony.vim ├── postscr.vim ├── pov.vim ├── prolog.vim ├── proto.vim ├── ps1.vim ├── pug.vim ├── puppet.vim ├── purescript.vim ├── pyrex.vim ├── python.vim ├── qml.vim ├── racket.vim ├── raku.vim ├── razor.vim ├── readline.vim ├── reason.vim ├── rmd.vim ├── rnoweb.vim ├── rpl.vim ├── rrst.vim ├── rst.vim ├── ruby.vim ├── rust.vim ├── sas.vim ├── sass.vim ├── scala.vim ├── scheme.vim ├── scss.vim ├── sdl.vim ├── slim.vim ├── slime.vim ├── sml.vim ├── solidity.vim ├── sql.vim ├── sshconfig.vim ├── stylus.vim ├── svelte-css.vim ├── svelte-xml.vim ├── svelte.vim ├── svg.vim ├── swift.vim ├── systemverilog.vim ├── tcl.vim ├── teraterm.vim ├── terraform.vim ├── tf.vim ├── tilde.vim ├── treetop.vim ├── twig.vim ├── typescript.vim ├── typescriptreact.vim ├── vala.vim ├── vb.vim ├── velocity.vim ├── verilog.vim ├── vhdl.vim ├── vlang.vim ├── vroom.vim ├── vue.vim ├── wast.vim ├── xf86conf.vim ├── xhtml.vim ├── xinetd.vim ├── xsd.vim ├── xslt.vim ├── yacc.vim ├── yaml.vim ├── zig.vim └── zimbu.vim ├── packages.yaml ├── plugin └── polyglot.vim ├── scripts ├── build ├── eregex.vim ├── import_vim └── test ├── syntax ├── 8th.vim ├── Jenkinsfile.vim ├── a2ps.vim ├── a65.vim ├── aap.vim ├── abap.vim ├── abaqus.vim ├── abc.vim ├── abel.vim ├── acedb.vim ├── ada.vim ├── ahdl.vim ├── aidl.vim ├── alsaconf.vim ├── aml.vim ├── ampl.vim ├── ansible.vim ├── ansible_hosts.vim ├── ant.vim ├── apache.vim ├── apachestyle.vim ├── apiblueprint.vim ├── applescript.vim ├── aptconf.vim ├── arch.vim ├── arduino.vim ├── art.vim ├── asciidoc.vim ├── asl.vim ├── asn.vim ├── aspperl.vim ├── aspvbs.vim ├── asterisk.vim ├── asteriskvm.vim ├── atlas.vim ├── autodoc.vim ├── autoit.vim ├── automake.vim ├── ave.vim ├── awk.vim ├── b.vim ├── basic.vim ├── basic │ ├── class.vim │ ├── cluster.vim │ ├── decorator.vim │ ├── doc.vim │ ├── function.vim │ ├── identifiers.vim │ ├── keyword.vim │ ├── literal.vim │ ├── members.vim │ ├── object.vim │ ├── patch.vim │ ├── reserved.vim │ ├── symbols.vim │ └── type.vim ├── bc.vim ├── bdf.vim ├── bib.vim ├── bicep.vim ├── bindzone.vim ├── blade.vim ├── blank.vim ├── brewfile.vim ├── bsdl.vim ├── bst.vim ├── bzl.vim ├── bzr.vim ├── c.vim ├── cabal-1.vim ├── cabal-2.vim ├── cabal.vim ├── caddyfile.vim ├── calendar.vim ├── carp.vim ├── catalog.vim ├── cdl.vim ├── cdrdaoconf.vim ├── cdrtoc.vim ├── cf.vim ├── cfg.vim ├── ch.vim ├── chaiscript.vim ├── chaskell.vim ├── chill.vim ├── chordpro.vim ├── cl.vim ├── clean.vim ├── clojure.vim ├── cmake.vim ├── cmod.vim ├── cmusrc.vim ├── cobol.vim ├── coco.vim ├── coffee.vim ├── common.vim ├── conaryrecipe.vim ├── conf.vim ├── config.vim ├── cpp.vim ├── cql.vim ├── crm.vim ├── crontab.vim ├── cryptol.vim ├── crystal.vim ├── cs.vim ├── csc.vim ├── csdl.vim ├── csp.vim ├── css.vim ├── csv.vim ├── cterm.vim ├── cucumber.vim ├── cuda.vim ├── cuesheet.vim ├── cupl.vim ├── cuplsim.vim ├── cvs.vim ├── cvsrc.vim ├── cynpp.vim ├── d.vim ├── dart.vim ├── datascript.vim ├── dcd.vim ├── dcov.vim ├── dd.vim ├── ddoc.vim ├── debchangelog.vim ├── debcontrol.vim ├── debcopyright.vim ├── debsources.vim ├── def.vim ├── denyhosts.vim ├── desc.vim ├── desktop.vim ├── dhall.vim ├── dictconf.vim ├── dictdconf.vim ├── diff.vim ├── dircolors.vim ├── django.vim ├── dnsmasq.vim ├── docker-compose.vim ├── dockerfile.vim ├── dosbatch.vim ├── dosini.vim ├── dot.vim ├── dracula.vim ├── dsdl.vim ├── dsl.vim ├── dtd.vim ├── dts.vim ├── dune.vim ├── dylan.vim ├── dylanintr.vim ├── dylanlid.vim ├── ecd.vim ├── ecrystal.vim ├── edif.vim ├── eelixir.vim ├── elf.vim ├── elinks.vim ├── elixir.vim ├── elm.vim ├── elmfilt.vim ├── ember-script.vim ├── emblem.vim ├── epuppet.vim ├── erlang.vim ├── eruby.vim ├── esmtprc.vim ├── esqlc.vim ├── esterel.vim ├── eterm.vim ├── exim.vim ├── expect.vim ├── exports.vim ├── falcon.vim ├── fan.vim ├── fbs.vim ├── fennel.vim ├── ferm.vim ├── fetchmail.vim ├── fgl.vim ├── fish.vim ├── flow.vim ├── focexec.vim ├── forth.vim ├── fortran.vim ├── framescript.vim ├── freebasic.vim ├── fsharp.vim ├── fstab.vim ├── fvwm.vim ├── gdb.vim ├── gdmo.vim ├── gedcom.vim ├── git.vim ├── gitcommit.vim ├── gitconfig.vim ├── gitignore.vim ├── gitolite.vim ├── gitrebase.vim ├── gitsendemail.vim ├── gkrellmrc.vim ├── gleam.vim ├── glsl.vim ├── gmpl.vim ├── gnash.vim ├── gnuplot.vim ├── go.vim ├── godebugoutput.vim ├── godebugstacktrace.vim ├── godebugvariables.vim ├── godefstack.vim ├── gohtmltmpl.vim ├── gomod.vim ├── gosum.vim ├── gotexttmpl.vim ├── gowork.vim ├── gp.vim ├── gpg.vim ├── grads.vim ├── graphql.vim ├── gretl.vim ├── groovy.vim ├── group.vim ├── grub.vim ├── gsp.vim ├── gtkrc.vim ├── haml.vim ├── hamster.vim ├── handlebars.vim ├── haproxy.vim ├── haskell.vim ├── haste.vim ├── hastepreproc.vim ├── haxe.vim ├── haxe_extended.vim ├── hb.vim ├── hcl.vim ├── helm.vim ├── help.vim ├── hercules.vim ├── hex.vim ├── hgcommit.vim ├── hive.vim ├── hjson.vim ├── hog.vim ├── hollywood.vim ├── hostconf.vim ├── hostsaccess.vim ├── hss.vim ├── html.vim ├── html │ ├── aria.vim │ ├── electron.vim │ └── rdfa.vim ├── htmldjango.vim ├── htmlm4.vim ├── hxml.vim ├── ibasic.vim ├── icalendar.vim ├── icemenu.vim ├── icon.vim ├── idris.vim ├── idris2.vim ├── indent.vim ├── inform.vim ├── initng.vim ├── inittab.vim ├── ion.vim ├── ipfilter.vim ├── iss.vim ├── ist.vim ├── j.vim ├── jal.vim ├── jam.vim ├── javacc.vim ├── javascript.vim ├── javascript │ └── html5.vim ├── jess.vim ├── jgraph.vim ├── jinja2.vim ├── jovial.vim ├── jproperties.vim ├── jq.vim ├── json.vim ├── json5.vim ├── jsonc.vim ├── jsonnet.vim ├── jsp.vim ├── jst.vim ├── julia.vim ├── juliadoc.vim ├── just.vim ├── kconfig.vim ├── kivy.vim ├── kix.vim ├── kotlin.vim ├── kscript.vim ├── kwt.vim ├── lace.vim ├── latte.vim ├── ld.vim ├── ldif.vim ├── ledger.vim ├── less.vim ├── lex.vim ├── lftp.vim ├── lhaskell.vim ├── libao.vim ├── lidris.vim ├── lidris2.vim ├── lifelines.vim ├── lilo.vim ├── lilypond-words.vim ├── lilypond.vim ├── limits.vim ├── liquid.vim ├── lisp.vim ├── litcoffee.vim ├── lite.vim ├── litestep.vim ├── llvm.vim ├── log.vim ├── loginaccess.vim ├── logindefs.vim ├── logtalk.vim ├── lotos.vim ├── lout.vim ├── lpc.vim ├── lprolog.vim ├── ls.vim ├── lsl.vim ├── lss.vim ├── lua.vim ├── lynx.vim ├── m4.vim ├── machine-ir.vim ├── mail.vim ├── mailaliases.vim ├── mailcap.vim ├── make.vim ├── mako.vim ├── mallard.vim ├── manconf.vim ├── maple.vim ├── markdown.vim ├── mason.vim ├── master.vim ├── mel.vim ├── merlin.vim ├── mermaid.vim ├── meson.vim ├── messages.vim ├── mf.vim ├── mgl.vim ├── mgp.vim ├── mib.vim ├── mint.vim ├── mir.vim ├── mix.vim ├── mlir.vim ├── mma.vim ├── mmp.vim ├── modconf.vim ├── modula2.vim ├── modula3.vim ├── monk.vim ├── moo.vim ├── moon.vim ├── mp.vim ├── mplayerconf.vim ├── mrxvtrc.vim ├── msidl.vim ├── msql.vim ├── mupad.vim ├── murphi.vim ├── mush.vim ├── mustache.vim ├── muttrc.vim ├── mysql.vim ├── n1ql.vim ├── named.vim ├── nanorc.vim ├── natural.vim ├── ncf.vim ├── neomuttrc.vim ├── netrc.vim ├── nftables.vim ├── nginx.vim ├── nim.vim ├── ninja.vim ├── nix.vim ├── nqc.vim ├── nroff.vim ├── nsis.vim ├── oasis.vim ├── obj.vim ├── ocaml.vim ├── ocamlbuild_tags.vim ├── occam.vim ├── ocpbuild.vim ├── ocpbuildroot.vim ├── octave.vim ├── odin.vim ├── omake.vim ├── omnimark.vim ├── opam.vim ├── opencl.vim ├── openroad.vim ├── openscad.vim ├── opl.vim ├── ora.vim ├── org.vim ├── outline.vim ├── pamconf.vim ├── pamenv.vim ├── papp.vim ├── pascal.vim ├── passwd.vim ├── pccts.vim ├── pdf.vim ├── perl.vim ├── pest.vim ├── pf.vim ├── pfmain.vim ├── pgsql.vim ├── php.vim ├── pike.vim ├── pilrc.vim ├── pine.vim ├── pinfo.vim ├── plantuml.vim ├── pli.vim ├── plm.vim ├── plp.vim ├── plsql.vim ├── po.vim ├── pod.vim ├── pony.vim ├── postscr.vim ├── pov.vim ├── povini.vim ├── ppd.vim ├── ppwiz.vim ├── privoxy.vim ├── procmail.vim ├── prolog.vim ├── promela.vim ├── proto.vim ├── protocols.vim ├── ps1.vim ├── ps1xml.vim ├── psf.vim ├── pug.vim ├── puppet.vim ├── purescript.vim ├── pyrex.vim ├── python.vim ├── qmake.vim ├── qml.vim ├── quake.vim ├── racket.vim ├── radiance.vim ├── ragel.vim ├── raku.vim ├── raml.vim ├── ratpoison.vim ├── razor.vim ├── rc.vim ├── rcs.vim ├── readline.vim ├── reason.vim ├── rego.vim ├── remind.vim ├── requirements.vim ├── resolv.vim ├── reva.vim ├── rexx.vim ├── rhelp.vim ├── rib.vim ├── rmd.vim ├── rnc.vim ├── rng.vim ├── rnoweb-1.vim ├── rnoweb-2.vim ├── rnoweb.vim ├── robots.vim ├── rpcgen.vim ├── rpl.vim ├── rrst.vim ├── rst.vim ├── rtf.vim ├── ruby.vim ├── rust.vim ├── samba.vim ├── sas.vim ├── sass.vim ├── sather.vim ├── sbt.vim ├── scala.vim ├── scheme.vim ├── scilab.vim ├── screen.vim ├── scss.vim ├── sd.vim ├── sdc.vim ├── sdl.vim ├── sed.vim ├── sensors.vim ├── services.vim ├── setserial.vim ├── sexplib.vim ├── sh.vim ├── sieve.vim ├── sil.vim ├── simula.vim ├── sinda.vim ├── sisu.vim ├── skill.vim ├── slang.vim ├── slice.vim ├── slim.vim ├── slime.vim ├── slpconf.vim ├── slpreg.vim ├── slpspi.vim ├── slrnrc.vim ├── slrnsc.vim ├── sm.vim ├── smarty.vim ├── smcl.vim ├── smhl.vim ├── smith.vim ├── sml.vim ├── smt2.vim ├── snobol4.vim ├── solidity.vim ├── spec.vim ├── spice.vim ├── spup.vim ├── spyce.vim ├── sql.vim ├── sqlj.vim ├── sqloracle.vim ├── sqr.vim ├── squid.vim ├── srec.vim ├── sshconfig.vim ├── sshdconfig.vim ├── st.vim ├── stata.vim ├── stp.vim ├── stylus.vim ├── sudoers.vim ├── svelte-html.vim ├── svelte.vim ├── svg.vim ├── svn.vim ├── swayconfig.vim ├── swift.vim ├── swiftgyb.vim ├── sxhkdrc.vim ├── sysctl.vim ├── systemd.vim ├── systemverilog.vim ├── tablegen.vim ├── tads.vim ├── tags.vim ├── tak.vim ├── tap.vim ├── taskdata.vim ├── taskedit.vim ├── tcl.vim ├── template.vim ├── teraterm.vim ├── terminfo.vim ├── terraform.vim ├── texinfo.vim ├── texmf.vim ├── textile.vim ├── tf.vim ├── thrift.vim ├── tidy.vim ├── tilde.vim ├── tli.vim ├── tmux.vim ├── toml.vim ├── tpp.vim ├── tptp.vim ├── trasys.vim ├── treetop.vim ├── trustees.vim ├── tsalt.vim ├── tsscl.vim ├── tssgm.vim ├── tssop.vim ├── tt2.vim ├── tt2html.vim ├── tt2js.vim ├── twig.vim ├── typescript.vim ├── typescriptreact.vim ├── uc.vim ├── udevconf.vim ├── udevperm.vim ├── uil.vim ├── unison.vim ├── updatedb.vim ├── upstart.vim ├── upstreamdat.vim ├── upstreaminstalllog.vim ├── upstreamlog.vim ├── usserverlog.vim ├── usw2kagtlog.vim ├── vala.vim ├── vb.vim ├── vbnet.vim ├── vcl.vim ├── velocity.vim ├── vera.vim ├── verilog.vim ├── verilogams.vim ├── vgrindefs.vim ├── vhdl.vim ├── vimgo.vim ├── viminfo.vim ├── vlang.vim ├── vmasm.vim ├── voscm.vim ├── vrml.vim ├── vroom.vim ├── vue.vim ├── wast.vim ├── webmacro.vim ├── wget.vim ├── winbatch.vim ├── wml.vim ├── wsh.vim ├── wsml.vim ├── wvdial.vim ├── xdc.vim ├── xdefaults.vim ├── xf86conf.vim ├── xhtml.vim ├── xinetd.vim ├── xmath.vim ├── xml.vim ├── xmodmap.vim ├── xpm.vim ├── xpm2.vim ├── xquery.vim ├── xs.vim ├── xsd.vim ├── xsl.vim ├── xslt.vim ├── yacc.vim ├── yaml.vim ├── yats.vim ├── yats │ ├── css.vim │ ├── dom-document.vim │ ├── dom-elem.vim │ ├── dom-event.vim │ ├── dom-form.vim │ ├── dom-node.vim │ ├── dom-storage.vim │ ├── ecma-402.vim │ ├── es6-array.vim │ ├── es6-date.vim │ ├── es6-function.vim │ ├── es6-json.vim │ ├── es6-map.vim │ ├── es6-math.vim │ ├── es6-number.vim │ ├── es6-object.vim │ ├── es6-promise.vim │ ├── es6-proxy.vim │ ├── es6-reflect.vim │ ├── es6-regexp.vim │ ├── es6-set.vim │ ├── es6-string.vim │ ├── es6-symbol.vim │ ├── event.vim │ ├── node.vim │ ├── test.vim │ ├── typescript.vim │ ├── web-blob.vim │ ├── web-console.vim │ ├── web-crypto.vim │ ├── web-encoding.vim │ ├── web-fetch.vim │ ├── web-geo.vim │ ├── web-history.vim │ ├── web-location.vim │ ├── web-navigator.vim │ ├── web-network.vim │ ├── web-payment.vim │ ├── web-service-worker.vim │ ├── web-window.vim │ ├── web-xhr.vim │ └── web.vim ├── z8a.vim ├── zephir.vim ├── zig.vim ├── zimbu.vim ├── zir.vim └── zsh.vim └── tests ├── extensions.vim ├── filetypes.vim ├── indent ├── 2.1 │ └── test.js └── 4.1 │ └── test.js └── native.vim /.github/ISSUE_TEMPLATE/add-language.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Add language 3 | about: Add support for new language 4 | title: '' 5 | labels: 'enhancement' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **What is the name of this language in Linguist?** 11 | 12 | 13 | 14 | **Link to GitHub repository of Vim plugin** 15 | 16 | 17 | 18 | **Is this plugin well maintained?** 19 | 20 | 21 | 22 | **Is this plugin lightweight? (no advanced functionality, just indent and syntax support)** 23 | 24 | 25 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug-report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Report vim-polyglot bug 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | 11 | 12 | **Does this bug happen when you install plugin without vim-polyglot?** 13 | 14 | **Describe the bug:** 15 | 16 | **To Reproduce:** 17 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- 1 | name: Vim Polyglot CI 2 | 3 | on: 4 | push: 5 | pull_request: 6 | schedule: 7 | - cron: '0 0 * * 0' # weekly 8 | 9 | jobs: 10 | test: 11 | runs-on: ubuntu-latest 12 | steps: 13 | - name: Install Vim 14 | run: | 15 | sudo add-apt-repository ppa:jonathonf/vim -y 16 | sudo apt-get update -q 17 | sudo apt-get install -y vim expect 18 | vim --version 19 | - uses: actions/checkout@v2 20 | - name: Run Tests 21 | run: make test 22 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /tmp 2 | !*ctags* 3 | tags 4 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: build test dev 2 | 3 | build: 4 | @ scripts/build 5 | 6 | test: 7 | @ scripts/test 8 | 9 | dev: 10 | @ find scripts autoload/polyglot ftdetect tests . -type f -maxdepth 1 | DEV=1 entr bash -c 'make' 11 | -------------------------------------------------------------------------------- /after/ftplugin/cabal.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'haskell', 'after/ftplugin/cabal.vim') 2 | finish 3 | endif 4 | 5 | setlocal comments=s1fl:{-,mb:-,ex:-},:-- 6 | setlocal iskeyword+=-,.,* 7 | setlocal commentstring=--\ %s 8 | -------------------------------------------------------------------------------- /after/ftplugin/coffee.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'cjsx', 'after/ftplugin/coffee.vim') 2 | finish 3 | endif 4 | 5 | if exists("loaded_matchit") 6 | let b:match_ignorecase = 0 7 | let b:match_words = '(:),\[:\],{:},<:>,' . 8 | \ '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>' 9 | endif 10 | -------------------------------------------------------------------------------- /after/ftplugin/haskell.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'haskell', 'after/ftplugin/haskell.vim') 2 | finish 3 | endif 4 | 5 | setlocal comments=s1fl:{-,mb:\ \ ,ex:-},:-- 6 | setlocal iskeyword+=' 7 | -------------------------------------------------------------------------------- /after/ftplugin/idris.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'idris', 'after/ftplugin/idris.vim') 2 | finish 3 | endif 4 | 5 | setlocal iskeyword+=' 6 | -------------------------------------------------------------------------------- /after/ftplugin/idris2.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'idris2', 'after/ftplugin/idris2.vim') 2 | finish 3 | endif 4 | 5 | setlocal iskeyword+=' 6 | -------------------------------------------------------------------------------- /after/ftplugin/javascript-1.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'javascript', 'after/ftplugin/javascript.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: JavaScript 7 | " Maintainer: vim-javascript community 8 | " URL: https://github.com/pangloss/vim-javascript 9 | 10 | setlocal iskeyword+=$ suffixesadd+=.js 11 | 12 | if exists('b:undo_ftplugin') 13 | let b:undo_ftplugin .= ' | setlocal iskeyword< suffixesadd<' 14 | else 15 | let b:undo_ftplugin = 'setlocal iskeyword< suffixesadd<' 16 | endif 17 | -------------------------------------------------------------------------------- /after/ftplugin/javascript-2.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'jsx', 'after/ftplugin/javascript-2.vim') 2 | finish 3 | endif 4 | 5 | if get(g:, 'vim_jsx_pretty_disable_js', 0) 6 | finish 7 | endif 8 | 9 | source :h/jsx.vim 10 | -------------------------------------------------------------------------------- /after/ftplugin/javascript.vim: -------------------------------------------------------------------------------- 1 | " Polyglot metafile 2 | source :h/javascript-1.vim 3 | source :h/javascript-2.vim 4 | -------------------------------------------------------------------------------- /after/ftplugin/javascriptreact.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'jsx', 'after/ftplugin/javascriptreact.vim') 2 | finish 3 | endif 4 | 5 | source :h/jsx.vim 6 | -------------------------------------------------------------------------------- /after/ftplugin/just.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'just', 'after/ftplugin/just.vim') 2 | finish 3 | endif 4 | 5 | " Vim ftplugin file 6 | " Language: Justfile 7 | " Maintainer: Noah Bogart 8 | " URL: https://github.com/NoahTheDuke/vim-just.git 9 | " Last Change: 2021 May 19 10 | 11 | setlocal iskeyword+=- 12 | -------------------------------------------------------------------------------- /after/ftplugin/puppet.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'puppet', 'after/ftplugin/puppet.vim') 2 | finish 3 | endif 4 | 5 | if !exists('g:puppet_align_hashes') 6 | let g:puppet_align_hashes = 1 7 | endif 8 | 9 | if g:puppet_align_hashes 10 | inoremap => =>:call puppet#align#AlignHashrockets()$a 11 | endif 12 | -------------------------------------------------------------------------------- /after/ftplugin/typescriptreact.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'jsx', 'after/ftplugin/typescriptreact.vim') 2 | finish 3 | endif 4 | 5 | source :h/tsx.vim 6 | -------------------------------------------------------------------------------- /after/indent/javascript-1.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'jsx', 'after/indent/javascript.vim') 2 | finish 3 | endif 4 | 5 | if get(g:, 'vim_jsx_pretty_disable_js', 0) 6 | finish 7 | endif 8 | 9 | source :h/jsx.vim 10 | -------------------------------------------------------------------------------- /after/indent/javascript.vim: -------------------------------------------------------------------------------- 1 | " Polyglot metafile 2 | source :h/javascript-1.vim 3 | source :h/javascript-2.vim 4 | -------------------------------------------------------------------------------- /after/indent/javascriptreact.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'jsx', 'after/indent/javascriptreact.vim') 2 | finish 3 | endif 4 | 5 | source :h/jsx.vim 6 | -------------------------------------------------------------------------------- /after/indent/jsx.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'jsx', 'after/indent/jsx.vim') 2 | finish 3 | endif 4 | 5 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 6 | " Vim indent file 7 | " 8 | " Language: javascript.jsx 9 | " Maintainer: MaxMellon 10 | " 11 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 12 | 13 | if exists('b:did_indent') 14 | let s:did_indent = b:did_indent 15 | unlet b:did_indent 16 | endif 17 | 18 | let s:keepcpo = &cpo 19 | set cpo&vim 20 | 21 | if exists('s:did_indent') 22 | let b:did_indent = s:did_indent 23 | endif 24 | 25 | setlocal indentexpr=GetJsxIndent() 26 | setlocal indentkeys=0.,0{,0},0),0],0?,0\*,0\,,!^F,:,<:>,o,O,e,<>>,=*/ 27 | 28 | function! GetJsxIndent() 29 | return jsx_pretty#indent#get(function('GetJavascriptIndent')) 30 | endfunction 31 | 32 | let &cpo = s:keepcpo 33 | unlet s:keepcpo 34 | -------------------------------------------------------------------------------- /after/indent/typescriptreact.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'jsx', 'after/indent/typescriptreact.vim') 2 | finish 3 | endif 4 | 5 | source :h/tsx.vim 6 | -------------------------------------------------------------------------------- /after/syntax/haskell.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'dhall', 'after/syntax/haskell.vim') 2 | finish 3 | endif 4 | 5 | " store and remove current syntax value 6 | let old_syntax = b:current_syntax 7 | unlet b:current_syntax 8 | 9 | syn include @dhall syntax/dhall.vim 10 | unlet b:current_syntax 11 | 12 | syn region dhallBlock matchgroup=quasiQuote start=/\[\$\?staticDhallExpression|/ end=/|\]/ contains=@dhall 13 | 14 | hi def link quasiQuote Underlined 15 | 16 | " restore current syntax value 17 | let b:current_syntax = old_syntax 18 | -------------------------------------------------------------------------------- /after/syntax/help.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'scala', 'after/syntax/help.vim') 2 | finish 3 | endif 4 | 5 | " Extends standard help syntax with highlighting of Scala code. 6 | " 7 | " Place code between !sc! and !/sc! delimiters. These will be hidden if Vim is 8 | " built with conceal support. 9 | 10 | unlet! b:current_syntax 11 | 12 | syntax include @ScalaCode syntax/scala.vim 13 | 14 | if has('conceal') 15 | syntax region rgnScala matchgroup=Ignore concealends start='!sc!' end='!/sc!' contains=@ScalaCode 16 | else 17 | syntax region rgnScala matchgroup=Ignore start='!sc!' end='!/sc!' contains=@ScalaCode 18 | endif 19 | -------------------------------------------------------------------------------- /after/syntax/html.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'html5', 'after/syntax/html.vim') 2 | finish 3 | endif 4 | 5 | " Vim syntax file 6 | " Language: HTML (version 5.1) 7 | " Last Change: 2017 Feb 15 8 | " License: Public domain 9 | " (but let me know if you like :) ) 10 | " 11 | " Maintainer: Kao, Wei-Ko(othree) ( othree AT gmail DOT com ) 12 | 13 | " Comment 14 | " https://github.com/w3c/html/issues/694 15 | syntax region htmlComment start=++ contains=@Spell 16 | syntax region htmlComment start=++ 17 | -------------------------------------------------------------------------------- /after/syntax/javascript.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'jsx', 'after/syntax/javascript.vim') 2 | finish 3 | endif 4 | 5 | if get(g:, 'vim_jsx_pretty_disable_js', 0) 6 | finish 7 | endif 8 | 9 | source :h/jsx.vim 10 | -------------------------------------------------------------------------------- /after/syntax/javascriptreact.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'jsx', 'after/syntax/javascriptreact.vim') 2 | finish 3 | endif 4 | 5 | source :h/jsx.vim 6 | -------------------------------------------------------------------------------- /after/syntax/javascriptreact/graphql.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'graphql', 'after/syntax/javascriptreact/graphql.vim') 2 | finish 3 | endif 4 | 5 | runtime! after/syntax/javascript/graphql.vim 6 | -------------------------------------------------------------------------------- /after/syntax/reason.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'reason', 'after/syntax/reason.vim') 2 | finish 3 | endif 4 | 5 | -------------------------------------------------------------------------------- /after/syntax/typescriptreact.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'jsx', 'after/syntax/typescriptreact.vim') 2 | finish 3 | endif 4 | 5 | source :h/tsx.vim 6 | -------------------------------------------------------------------------------- /after/syntax/typescriptreact/graphql.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'graphql', 'after/syntax/typescriptreact/graphql.vim') 2 | finish 3 | endif 4 | 5 | runtime! after/syntax/typescript/graphql.vim 6 | -------------------------------------------------------------------------------- /after/syntax/vue/graphql.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'graphql', 'after/syntax/vue/graphql.vim') 2 | finish 3 | endif 4 | 5 | runtime! after/syntax/javascript/graphql.vim 6 | -------------------------------------------------------------------------------- /autoload/coc/source/requirements.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'requirements', 'autoload/coc/source/requirements.vim') 2 | finish 3 | endif 4 | 5 | "" 6 | " https://github.com/neoclide/coc.nvim/wiki/Create-custom-source 7 | function! coc#source#requirements#init() abort 8 | return { 9 | \ 'shortcut': 'pip', 10 | \ 'priority': 9, 11 | \ 'filetypes': ['requirements'], 12 | \ } 13 | endfunction 14 | 15 | "" 16 | " https://github.com/neoclide/coc.nvim/wiki/Create-custom-source 17 | " 18 | " Completion pip option and PYPI package names. 19 | " Note: completion PYPI package names need install pip-cache from PYPI, 20 | " and run `pip-cache update` first to generate cache. 21 | function! coc#source#requirements#complete(opt, cb) abort 22 | call a:cb(g:requirements#items) 23 | endfunction 24 | " vim: et sw=4 ts=4 sts=4: 25 | -------------------------------------------------------------------------------- /autoload/db/adapter/ecto.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'elixir', 'autoload/db/adapter/ecto.vim') 2 | finish 3 | endif 4 | 5 | let s:path = expand(':h') 6 | let s:cmd = join(['mix', 'run', '--no-start', '--no-compile', shellescape(s:path.'/get_repos.exs')]) 7 | 8 | function! s:repo_list() abort 9 | return map(systemlist(s:cmd), 'split(v:val)') 10 | endfunction 11 | 12 | function! db#adapter#ecto#canonicalize(url) abort 13 | for l:item in s:repo_list() 14 | let l:name = get(l:item, 0) 15 | let l:url = get(l:item, 1) 16 | if !empty(l:name) && 'ecto:'.l:name ==# a:url 17 | return l:url 18 | endif 19 | endfor 20 | endfunction 21 | 22 | function! db#adapter#ecto#complete_opaque(url) abort 23 | return map(s:repo_list(), 'v:val[0]') 24 | endfunction 25 | -------------------------------------------------------------------------------- /autoload/hcl.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'terraform', 'autoload/hcl.vim') 2 | finish 3 | endif 4 | 5 | let s:cpo_save = &cpoptions 6 | set cpoptions&vim 7 | 8 | function! hcl#align() abort 9 | let p = '^.*=[^>]*$' 10 | if exists(':Tabularize') && getline('.') =~# '^.*=' && (getline(line('.')-1) =~# p || getline(line('.')+1) =~# p) 11 | let column = strlen(substitute(getline('.')[0:col('.')],'[^=]','','g')) 12 | let position = strlen(matchstr(getline('.')[0:col('.')],'.*=\s*\zs.*')) 13 | Tabularize/=.*/l1 14 | normal! 0 15 | call search(repeat('[^=]*=',column).'\s\{-\}'.repeat('.',position),'ce',line('.')) 16 | endif 17 | endfunction 18 | 19 | let &cpoptions = s:cpo_save 20 | unlet s:cpo_save 21 | -------------------------------------------------------------------------------- /autoload/python/utils.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'python-compiler', 'autoload/python/utils.vim') 2 | finish 3 | endif 4 | 5 | " Sometimes Python issues debugging messages 6 | " which don't belong to a call stack context 7 | " this function filters these messages 8 | function! python#utils#fix_qflist() " {{{ 9 | let l:traceback = [] 10 | let l:qflist = getqflist() 11 | 12 | for l:item in l:qflist 13 | if !empty(l:item.type) 14 | call add(l:traceback, l:item) 15 | endif 16 | endfor 17 | 18 | if !empty(l:traceback) 19 | call setqflist(l:traceback) 20 | endif 21 | endfunction " }}} 22 | -------------------------------------------------------------------------------- /autoload/requirements/utils.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'requirements', 'autoload/requirements/utils.vim') 2 | finish 3 | endif 4 | 5 | "" 6 | " @section Configuration, config 7 | 8 | function! s:Flag(name, default) abort 9 | let l:scope = get(split(a:name, ':'), 0, 'g:') 10 | let l:name = get(split(a:name, ':'), -1) 11 | let {l:scope}:{l:name} = get({l:scope}:, l:name, a:default) 12 | endfunction 13 | 14 | let g:requirements#utils#plugin = {'Flag': funcref('s:Flag')} 15 | " vim: et sw=4 ts=4 sts=4: 16 | -------------------------------------------------------------------------------- /autoload/rust/tags.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'rust', 'autoload/rust/tags.vim') 2 | finish 3 | endif 4 | 5 | " Tagbar support code, for the sake of not automatically overriding its 6 | " configuration in case Universal Ctags is detected. 7 | 8 | let s:ctags_is_uctags = 0 9 | let s:checked_ctags = 0 10 | 11 | function! rust#tags#IsUCtags() abort 12 | if s:checked_ctags == 0 13 | let l:ctags_bin = get(g:, 'tagbar_ctags_bin', 'ctags') 14 | if system(l:ctags_bin.' --version') =~? 'universal ctags' 15 | let s:ctags_is_uctags = 1 16 | endif 17 | let s:checked_ctags = 1 18 | endif 19 | return s:ctags_is_uctags 20 | endfunction 21 | 22 | " vim: set et sw=4 sts=4 ts=8: 23 | -------------------------------------------------------------------------------- /autoload/vital/_crystal.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'crystal', 'autoload/vital/_crystal.vim') 2 | finish 3 | endif 4 | 5 | let s:_plugin_name = expand(':t:r') 6 | 7 | function! vital#{s:_plugin_name}#new() abort 8 | return vital#{s:_plugin_name[1:]}#new() 9 | endfunction 10 | 11 | function! vital#{s:_plugin_name}#function(funcname) abort 12 | silent! return function(a:funcname) 13 | endfunction 14 | -------------------------------------------------------------------------------- /autoload/vital/crystal.vital: -------------------------------------------------------------------------------- 1 | crystal 2 | bee84ae23effb0510137ad177e98c94d8b3657a6 3 | 4 | Process 5 | Web.JSON 6 | ColorEcho 7 | -------------------------------------------------------------------------------- /autoload/yats.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'typescript', 'autoload/yats.vim') 2 | finish 3 | endif 4 | 5 | " Regex of syntax group names that are strings or documentation. 6 | let s:syng_multiline = 'comment\c' 7 | 8 | " Regex of syntax group names that are line comment. 9 | let s:syng_linecom = 'linecomment\c' 10 | 11 | " Check if the character at lnum:col is inside a multi-line comment. 12 | function yats#IsInMultilineComment(lnum, col) 13 | return !yats#IsLineComment(a:lnum, a:col) && synIDattr(synID(a:lnum, a:col, 1), 'name') =~ s:syng_multiline 14 | endfunction 15 | 16 | " Check if the character at lnum:col is a line comment. 17 | function yats#IsLineComment(lnum, col) 18 | return synIDattr(synID(a:lnum, a:col, 1), 'name') =~ s:syng_linecom 19 | endfunction 20 | 21 | -------------------------------------------------------------------------------- /compiler/bdf.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'bdf', 'compiler/bdf.vim') 2 | finish 3 | endif 4 | 5 | " Vim compiler file 6 | " Compiler: BDF to PCF Conversion 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2006-04-19 9 | 10 | if exists("current_compiler") 11 | finish 12 | endif 13 | let current_compiler = "bdf" 14 | 15 | let s:cpo_save = &cpo 16 | set cpo-=C 17 | 18 | setlocal makeprg=bdftopcf\ $* 19 | 20 | setlocal errorformat=%ABDF\ %trror\ on\ line\ %l:\ %m, 21 | \%-Z%p^, 22 | \%Cbdftopcf:\ bdf\ input\\,\ %f\\,\ corrupt, 23 | \%-G%.%# 24 | 25 | let &cpo = s:cpo_save 26 | unlet s:cpo_save 27 | -------------------------------------------------------------------------------- /compiler/cake.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'coffee-script', 'compiler/cake.vim') 2 | finish 3 | endif 4 | 5 | " Language: CoffeeScript 6 | " Maintainer: Mick Koch 7 | " URL: http://github.com/kchmck/vim-coffee-script 8 | " License: WTFPL 9 | 10 | if exists('current_compiler') 11 | finish 12 | endif 13 | 14 | let current_compiler = 'cake' 15 | call coffee#CoffeeSetUpVariables() 16 | 17 | exec 'CompilerSet makeprg=' . escape(g:coffee_cake . ' ' . 18 | \ g:coffee_cake_options . ' $*', ' ') 19 | call coffee#CoffeeSetUpErrorFormat() 20 | -------------------------------------------------------------------------------- /compiler/credo.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'elixir', 'compiler/credo.vim') 2 | finish 3 | endif 4 | 5 | if exists('current_compiler') 6 | finish 7 | endif 8 | let current_compiler = 'credo' 9 | 10 | if exists(":CompilerSet") != 2 11 | command -nargs=* CompilerSet setlocal 12 | endif 13 | 14 | CompilerSet errorformat=%f:%l:%c:\ %t:\ %m,%f:%l:\ %t:\ %m 15 | CompilerSet makeprg=mix\ credo\ suggest\ --format=flycheck 16 | -------------------------------------------------------------------------------- /compiler/cryptol.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'cryptol', 'compiler/cryptol.vim') 2 | finish 3 | endif 4 | 5 | " Vim compiler file 6 | " Compiler: Cryptol version 1.8.19-academic Compiler 7 | " Maintainer: Edward O'Callaghan 8 | " Latest Revision: 25-Apr-2013 9 | 10 | if exists("current_compiler") 11 | finish 12 | endif 13 | let current_compiler = "cryptol" 14 | 15 | if exists(":CompilerSet") != 2 16 | command = -nargs =* CompilerSet setlocal 17 | endif 18 | 19 | " TODO: Work out errorformat for the Cryptol compiler, see 20 | " :help errorformat 21 | CompilerSet errorformat& " use the default 'errorformat' 22 | 23 | " "%<" means the current file name without extension. 24 | CompilerSet makeprg=cryptol\ -o\ %<\ % 25 | -------------------------------------------------------------------------------- /compiler/cs.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'cs', 'compiler/cs.vim') 2 | finish 3 | endif 4 | 5 | " Vim compiler file 6 | " Compiler: Microsoft Visual Studio C# 7 | " Maintainer: Yichao Zhou (broken.zhou@gmail.com) 8 | " Previous Maintainer: Joseph H. Yao (hyao@sina.com) 9 | " Last Change: Jul 22, 2019 10 | 11 | if exists("current_compiler") 12 | finish 13 | endif 14 | let current_compiler = "cs" 15 | let s:keepcpo= &cpo 16 | set cpo&vim 17 | 18 | if exists(":CompilerSet") != 2 " older Vim always used :setlocal 19 | command -nargs=* CompilerSet setlocal 20 | endif 21 | 22 | CompilerSet errorformat& 23 | CompilerSet errorformat+=%f(%l\\,%v):\ %t%*[^:]:\ %m, 24 | \%trror%*[^:]:\ %m, 25 | \%tarning%*[^:]:\ %m 26 | 27 | CompilerSet makeprg=csc\ %:S 28 | 29 | let &cpo = s:keepcpo 30 | unlet s:keepcpo 31 | -------------------------------------------------------------------------------- /compiler/cucumber.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'cucumber', 'compiler/cucumber.vim') 2 | finish 3 | endif 4 | 5 | " Vim compiler file 6 | " Compiler: Cucumber 7 | " Maintainer: Tim Pope 8 | " Last Change: 2016 Aug 29 9 | 10 | if exists("current_compiler") 11 | finish 12 | endif 13 | let current_compiler = "cucumber" 14 | 15 | if exists(":CompilerSet") != 2 " older Vim always used :setlocal 16 | command -nargs=* CompilerSet setlocal 17 | endif 18 | 19 | let s:cpo_save = &cpo 20 | set cpo-=C 21 | 22 | CompilerSet makeprg=cucumber 23 | 24 | CompilerSet errorformat= 25 | \%W%m\ (Cucumber::Undefined), 26 | \%E%m\ (%\\S%#), 27 | \%Z%f:%l, 28 | \%Z%f:%l:%.%# 29 | 30 | let &cpo = s:cpo_save 31 | unlet s:cpo_save 32 | 33 | " vim:set sw=2 sts=2: 34 | -------------------------------------------------------------------------------- /compiler/dot.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'dot', 'compiler/dot.vim') 2 | finish 3 | endif 4 | 5 | " Vim compiler file 6 | " Compiler: ATT dot 7 | " Maintainer: Marcos Macedo 8 | " Last Change: 2004 May 16 9 | 10 | if exists("current_compiler") 11 | finish 12 | endif 13 | let current_compiler = "dot" 14 | 15 | if exists(":CompilerSet") != 2 " older Vim always used :setlocal 16 | command -nargs=* CompilerSet setlocal 17 | endif 18 | 19 | CompilerSet makeprg=dot\ -T$*\ \"%:p\"\ -o\ \"%:p:r.$*\" 20 | -------------------------------------------------------------------------------- /compiler/exunit.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'elixir', 'compiler/exunit.vim') 2 | finish 3 | endif 4 | 5 | if exists("current_compiler") 6 | finish 7 | endif 8 | let current_compiler = "exunit" 9 | 10 | if exists(":CompilerSet") != 2 " older Vim always used :setlocal 11 | command -nargs=* CompilerSet setlocal 12 | endif 13 | 14 | let s:cpo_save = &cpo 15 | set cpo-=C 16 | CompilerSet makeprg=mix\ test 17 | CompilerSet errorformat= 18 | \%E\ \ %n)\ %m, 19 | \%+G\ \ \ \ \ **\ %m, 20 | \%+G\ \ \ \ \ stacktrace:, 21 | \%C\ \ \ \ \ %f:%l, 22 | \%+G\ \ \ \ \ \ \ (%\\w%\\+)\ %f:%l:\ %m, 23 | \%+G\ \ \ \ \ \ \ %f:%l:\ %.%#, 24 | \**\ (%\\w%\\+)\ %f:%l:\ %m 25 | 26 | let &cpo = s:cpo_save 27 | unlet s:cpo_save 28 | 29 | " vim: nowrap sw=2 sts=2 ts=8: 30 | -------------------------------------------------------------------------------- /compiler/fish.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'fish', 'compiler/fish.vim') 2 | finish 3 | endif 4 | 5 | if exists('current_compiler') 6 | finish 7 | endif 8 | let current_compiler = 'fish' 9 | 10 | CompilerSet makeprg=fish\ --no-execute\ % 11 | execute 'CompilerSet errorformat='.escape(fish#errorformat(), ' ') 12 | -------------------------------------------------------------------------------- /compiler/gradle.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'gradle', 'compiler/gradle.vim') 2 | finish 3 | endif 4 | 5 | " Vim Compiler File 6 | " Compiler: gradle 7 | 8 | if exists("current_compiler") 9 | finish 10 | endif 11 | let current_compiler = "gradle" 12 | 13 | if exists(":CompilerSet") != 2 " older Vim always used :setlocal 14 | command -nargs=* CompilerSet setlocal 15 | endif 16 | 17 | CompilerSet makeprg=gradle 18 | 19 | CompilerSet errorformat= 20 | \%E[ant:scalac]\ %f:%l:\ error:\ %m, 21 | \%W[ant:scalac]\ %f:%l:\ warning:\ %m, 22 | \%E%.%#:compile%\\w%#Java%f:%l:\ error:\ %m,%-Z%p^,%-C%.%#, 23 | \%W%.%#:compile%\\w%#Java%f:%l:\ warning:\ %m,%-Z%p^,%-C%.%#, 24 | \%E%f:%l:\ error:\ %m,%-Z%p^,%-C%.%#, 25 | \%W%f:%l:\ warning:\ %m,%-Z%p^,%-C%.%#, 26 | \%E%f:\ %\\d%\\+:\ %m\ @\ line\ %l\\,\ column\ %c.,%-C%.%#,%Z%p^, 27 | \%E%>%f:\ %\\d%\\+:\ %m,%C\ @\ line\ %l\\,\ column\ %c.,%-C%.%#,%Z%p^, 28 | \%-G%.%# 29 | -------------------------------------------------------------------------------- /compiler/gradlew.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'gradle', 'compiler/gradlew.vim') 2 | finish 3 | endif 4 | 5 | " Vim Compiler File 6 | " Compiler: gradlew 7 | 8 | if exists("current_compiler") 9 | finish 10 | endif 11 | let current_compiler = "gradlew" 12 | 13 | if exists(":CompilerSet") != 2 " older Vim always used :setlocal 14 | command -nargs=* CompilerSet setlocal 15 | endif 16 | 17 | CompilerSet makeprg=./gradlew 18 | 19 | CompilerSet errorformat= 20 | \%E[ant:scalac]\ %f:%l:\ error:\ %m, 21 | \%W[ant:scalac]\ %f:%l:\ warning:\ %m, 22 | \%E%.%#:compile%\\w%#Java%f:%l:\ error:\ %m,%-Z%p^,%-C%.%#, 23 | \%W%.%#:compile%\\w%#Java%f:%l:\ warning:\ %m,%-Z%p^,%-C%.%#, 24 | \%E%f:%l:\ error:\ %m,%-Z%p^,%-C%.%#, 25 | \%W%f:%l:\ warning:\ %m,%-Z%p^,%-C%.%#, 26 | \%E%f:\ %\\d%\\+:\ %m\ @\ line\ %l\\,\ column\ %c.,%-C%.%#,%Z%p^, 27 | \%E%>%f:\ %\\d%\\+:\ %m,%C\ @\ line\ %l\\,\ column\ %c.,%-C%.%#,%Z%p^, 28 | \%-G%.%# 29 | -------------------------------------------------------------------------------- /compiler/haml.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'haml', 'compiler/haml.vim') 2 | finish 3 | endif 4 | 5 | " Vim compiler file 6 | " Compiler: Haml 7 | " Maintainer: Tim Pope 8 | " Last Change: 2016 Aug 29 9 | 10 | if exists("current_compiler") 11 | finish 12 | endif 13 | let current_compiler = "haml" 14 | 15 | if exists(":CompilerSet") != 2 " older Vim always used :setlocal 16 | command -nargs=* CompilerSet setlocal 17 | endif 18 | 19 | let s:cpo_save = &cpo 20 | set cpo-=C 21 | 22 | CompilerSet makeprg=haml 23 | 24 | CompilerSet errorformat= 25 | \Haml\ %trror\ on\ line\ %l:\ %m, 26 | \Syntax\ %trror\ on\ line\ %l:\ %m, 27 | \%-G%.%# 28 | 29 | let &cpo = s:cpo_save 30 | unlet s:cpo_save 31 | 32 | " vim:set sw=2 sts=2: 33 | -------------------------------------------------------------------------------- /compiler/mix.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'elixir', 'compiler/mix.vim') 2 | finish 3 | endif 4 | 5 | if exists('current_compiler') 6 | finish 7 | endif 8 | let current_compiler = 'mix' 9 | 10 | if exists(":CompilerSet") != 2 11 | command -nargs=* CompilerSet setlocal 12 | endif 13 | 14 | CompilerSet makeprg=mix\ compile 15 | CompilerSet errorformat= 16 | \%Wwarning:\ %m, 17 | \%C%f:%l,%Z, 18 | \%E==\ Compilation\ error\ in\ file\ %f\ ==, 19 | \%C**\ (%\\w%\\+)\ %f:%l:\ %m,%Z 20 | 21 | -------------------------------------------------------------------------------- /compiler/nim.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'nim', 'compiler/nim.vim') 2 | finish 3 | endif 4 | 5 | if exists('current_compiler') 6 | finish 7 | endif 8 | 9 | let current_compiler = 'nim' 10 | 11 | if exists(':CompilerSet') != 2 " older Vim always used :setlocal 12 | command -nargs=* CompilerSet setlocal 13 | endif 14 | 15 | let s:cpo_save = &cpo 16 | set cpo-=C 17 | 18 | CompilerSet makeprg=nim\ c\ --verbosity:0\ --listfullpaths\ $*\ %:p 19 | 20 | CompilerSet errorformat= 21 | \%-GHint:\ %m, 22 | \%E%f(%l\\,\ %c)\ Error:\ %m, 23 | \%W%f(%l\\,\ %c)\ Hint:\ %m 24 | 25 | let &cpo = s:cpo_save 26 | unlet s:cpo_save 27 | 28 | let g:syntastic_nim_checkers = ['nim'] 29 | 30 | -------------------------------------------------------------------------------- /compiler/nix-build.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'nix', 'compiler/nix-build.vim') 2 | finish 3 | endif 4 | 5 | if exists('current_compiler') 6 | finish 7 | endif 8 | let current_compiler = 'nix-build' 9 | 10 | if exists(":CompilerSet") != 2 11 | command -nargs=* CompilerSet setlocal 12 | endif 13 | 14 | CompilerSet errorformat=error:\ %m\ at\ %f:%l:%c,builder\ for\ \'%m\'\ failed\ with\ exit\ code\ %n,fixed-output\ derivation\ produced\ path\ \'%s\'\ with\ %m 15 | CompilerSet makeprg=nix-build 16 | -------------------------------------------------------------------------------- /compiler/puppet-lint.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'puppet', 'compiler/puppet-lint.vim') 2 | finish 3 | endif 4 | 5 | " Vim compiler file 6 | " Compiler: puppet-lint 7 | " Maintainer: Doug Kearns 8 | 9 | if exists('current_compiler') 10 | finish 11 | endif 12 | let current_compiler = 'puppet-lint' 13 | 14 | if exists(':CompilerSet') != 2 " older Vim always used :setlocal 15 | command -nargs=* CompilerSet setlocal 16 | endif 17 | 18 | let s:cpo_save = &cpo 19 | set cpo&vim 20 | 21 | CompilerSet makeprg=puppet-lint\ --with-filename 22 | CompilerSet errorformat=%f\ -\ %tRROR:\ %m\ on\ line\ %l, 23 | \%f\ -\ %tARNING:\ %m\ on\ line\ %l, 24 | \%-G%.%# 25 | 26 | let &cpo = s:cpo_save 27 | unlet s:cpo_save 28 | -------------------------------------------------------------------------------- /compiler/sass.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'sass', 'compiler/sass.vim') 2 | finish 3 | endif 4 | 5 | " Vim compiler file 6 | " Compiler: Sass 7 | " Maintainer: Tim Pope 8 | " Last Change: 2016 Aug 29 9 | 10 | if exists("current_compiler") 11 | finish 12 | endif 13 | let current_compiler = "sass" 14 | 15 | if exists(":CompilerSet") != 2 " older Vim always used :setlocal 16 | command -nargs=* CompilerSet setlocal 17 | endif 18 | 19 | let s:cpo_save = &cpo 20 | set cpo-=C 21 | 22 | CompilerSet makeprg=sass 23 | 24 | CompilerSet errorformat= 25 | \%f:%l:%m\ (Sass::Syntax%trror), 26 | \%ESyntax\ %trror:%m, 27 | \%C%\\s%\\+on\ line\ %l\ of\ %f, 28 | \%Z%.%#, 29 | \%-G%.%# 30 | 31 | let &cpo = s:cpo_save 32 | unlet s:cpo_save 33 | 34 | " vim:set sw=2 sts=2: 35 | -------------------------------------------------------------------------------- /compiler/sml.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'sml', 'compiler/sml.vim') 2 | finish 3 | endif 4 | 5 | " Vim compiler file 6 | " Compiler: SML/NJ Compiler 7 | " Maintainer: Doug Kearns 8 | " Last Change: 2020 Feb 10 9 | 10 | if exists("current_compiler") 11 | finish 12 | endif 13 | let current_compiler = "sml" 14 | 15 | if exists(":CompilerSet") != 2 " older Vim always used :setlocal 16 | command -nargs=* CompilerSet setlocal 17 | endif 18 | 19 | let s:cpo_save = &cpo 20 | set cpo&vim 21 | 22 | CompilerSet makeprg=sml 23 | CompilerSet errorformat=%f:%l.%c-%\\d%\\+.%\\d%\\+\ %trror:\ %m, 24 | \%f:%l.%c\ %trror:\ %m, 25 | \%trror:\ %m 26 | \%f:%l.%c-%\\d%\\+.%\\d%\\+\ %tarning:\ %m, 27 | \%f:%l.%c\ %tarning:\ %m, 28 | \%tarning:\ %m, 29 | \%-G%.%# 30 | 31 | let &cpo = s:cpo_save 32 | unlet s:cpo_save 33 | -------------------------------------------------------------------------------- /compiler/tcl.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'tcl', 'compiler/tcl.vim') 2 | finish 3 | endif 4 | 5 | " Vim compiler file 6 | " Compiler: tcl 7 | " Maintainer: Doug Kearns 8 | " Last Change: 2004 Nov 27 9 | 10 | if exists("current_compiler") 11 | finish 12 | endif 13 | let current_compiler = "tcl" 14 | 15 | if exists(":CompilerSet") != 2 " older Vim always used :setlocal 16 | command -nargs=* CompilerSet setlocal 17 | endif 18 | 19 | CompilerSet makeprg=tcl 20 | 21 | CompilerSet errorformat=%EError:\ %m,%+Z\ %\\{4}(file\ \"%f\"\ line\ %l),%-G%.%# 22 | -------------------------------------------------------------------------------- /compiler/tidy.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'tidy', 'compiler/tidy.vim') 2 | finish 3 | endif 4 | 5 | " Vim compiler file 6 | " Compiler: HTML Tidy 7 | " Maintainer: Doug Kearns 8 | " Last Change: 2020 Sep 4 9 | 10 | if exists("current_compiler") 11 | finish 12 | endif 13 | let current_compiler = "tidy" 14 | 15 | if exists(":CompilerSet") != 2 " older Vim always used :setlocal 16 | command -nargs=* CompilerSet setlocal 17 | endif 18 | 19 | let s:cpo_save = &cpo 20 | set cpo&vim 21 | 22 | CompilerSet makeprg=tidy\ -quiet\ -errors\ --gnu-emacs\ yes 23 | CompilerSet errorformat=%f:%l:%c:\ %trror:\ %m, 24 | \%f:%l:%c:\ %tarning:\ %m, 25 | \%f:%l:%c:\ %tnfo:\ %m, 26 | \%f:%l:%c:\ %m, 27 | \%-G%.%# 28 | 29 | let &cpo = s:cpo_save 30 | unlet s:cpo_save 31 | -------------------------------------------------------------------------------- /compiler/typescript.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'typescript', 'compiler/typescript.vim') 2 | finish 3 | endif 4 | 5 | if exists('current_compiler') 6 | finish 7 | endif 8 | 9 | let current_compiler='typescript' 10 | 11 | if !exists('g:typescript_compiler_binary') 12 | let g:typescript_compiler_binary = 'tsc' 13 | endif 14 | 15 | if !exists('g:typescript_compiler_options') 16 | if exists('g:syntastic_typescript_tsc_args') 17 | let g:typescript_compiler_options = g:syntastic_typescript_tsc_args 18 | else 19 | let g:typescript_compiler_options = '' 20 | endif 21 | endif 22 | 23 | let &l:makeprg = g:typescript_compiler_binary . ' ' . g:typescript_compiler_options . ' $* %' 24 | 25 | CompilerSet errorformat=%+A\ %#%f\ %#(%l\\\,%c):\ %m,%C%m 26 | -------------------------------------------------------------------------------- /compiler/zig.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'zig', 'compiler/zig.vim') 2 | finish 3 | endif 4 | 5 | " Vim compiler file 6 | " Compiler: Zig Compiler 7 | " For bugs, patches and license go to https://github.com/ziglang/zig.vim 8 | 9 | if exists("current_compiler") 10 | finish 11 | endif 12 | let current_compiler = "zig" 13 | 14 | let s:save_cpo = &cpo 15 | set cpo&vim 16 | 17 | if exists(":CompilerSet") != 2 18 | command -nargs=* CompilerSet setlocal 19 | endif 20 | 21 | " a subcommand must be provided for the this compiler (test, build-exe, etc) 22 | if has('patch-7.4.191') 23 | CompilerSet makeprg=zig\ \$*\ \%:S 24 | else 25 | CompilerSet makeprg=zig\ \$*\ \"%\" 26 | endif 27 | 28 | " TODO: improve errorformat as needed. 29 | 30 | let &cpo = s:save_cpo 31 | unlet s:save_cpo 32 | " vim: tabstop=8 shiftwidth=4 softtabstop=4 expandtab 33 | -------------------------------------------------------------------------------- /compiler/zig_build.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'zig', 'compiler/zig_build.vim') 2 | finish 3 | endif 4 | 5 | " Vim compiler file 6 | " Compiler: Zig Compiler (zig build) 7 | 8 | if exists('current_compiler') 9 | finish 10 | endif 11 | runtime compiler/zig.vim 12 | let current_compiler = 'zig_build' 13 | 14 | let s:save_cpo = &cpo 15 | set cpo&vim 16 | 17 | 18 | if exists(':CompilerSet') != 2 19 | command -nargs=* CompilerSet setlocal 20 | endif 21 | 22 | if exists('g:zig_build_makeprg_params') 23 | execute 'CompilerSet makeprg=zig\ build\ '.escape(g:zig_build_makeprg_params, ' \|"').'\ $*' 24 | else 25 | CompilerSet makeprg=zig\ build\ $* 26 | endif 27 | 28 | " TODO: anything to add to errorformat for zig build specifically? 29 | 30 | let &cpo = s:save_cpo 31 | unlet s:save_cpo 32 | " vim: tabstop=8 shiftwidth=4 softtabstop=4 expandtab 33 | -------------------------------------------------------------------------------- /compiler/zig_build_exe.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'zig', 'compiler/zig_build_exe.vim') 2 | finish 3 | endif 4 | 5 | " Vim compiler file 6 | " Compiler: Zig Compiler (zig build-exe) 7 | 8 | if exists('current_compiler') 9 | finish 10 | endif 11 | runtime compiler/zig.vim 12 | let current_compiler = 'zig_build_exe' 13 | 14 | let s:save_cpo = &cpo 15 | set cpo&vim 16 | 17 | 18 | if exists(':CompilerSet') != 2 19 | command -nargs=* CompilerSet setlocal 20 | endif 21 | 22 | if has('patch-7.4.191') 23 | CompilerSet makeprg=zig\ build-exe\ \%:S\ \$* 24 | else 25 | CompilerSet makeprg=zig\ build-exe\ \"%\"\ \$* 26 | endif 27 | 28 | let &cpo = s:save_cpo 29 | unlet s:save_cpo 30 | " vim: tabstop=8 shiftwidth=4 softtabstop=4 expandtab 31 | -------------------------------------------------------------------------------- /compiler/zig_test.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'zig', 'compiler/zig_test.vim') 2 | finish 3 | endif 4 | 5 | " Vim compiler file 6 | " Compiler: Zig Compiler (zig test) 7 | 8 | if exists('current_compiler') 9 | finish 10 | endif 11 | runtime compiler/zig.vim 12 | let current_compiler = 'zig_test' 13 | 14 | let s:save_cpo = &cpo 15 | set cpo&vim 16 | 17 | 18 | if exists(':CompilerSet') != 2 19 | command -nargs=* CompilerSet setlocal 20 | endif 21 | 22 | if has('patch-7.4.191') 23 | CompilerSet makeprg=zig\ test\ \%:S\ \$* 24 | else 25 | CompilerSet makeprg=zig\ test\ \"%\"\ \$* 26 | endif 27 | 28 | let &cpo = s:save_cpo 29 | unlet s:save_cpo 30 | " vim: tabstop=8 shiftwidth=4 softtabstop=4 expandtab 31 | -------------------------------------------------------------------------------- /extras/ngdoc.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'javascript', 'extras/ngdoc.vim') 2 | finish 3 | endif 4 | 5 | syntax match jsDocTags contained /@\(link\|method[oO]f\|ngdoc\|ng[iI]nject\|restrict\)/ nextgroup=jsDocParam skipwhite 6 | syntax match jsDocType contained "\%(#\|\$\|\w\|\"\|-\|\.\|:\|\/\)\+" nextgroup=jsDocParam skipwhite 7 | syntax match jsDocParam contained "\%(#\|\$\|\w\|\"\|-\|\.\|:\|{\|}\|\/\|\[\|]\|=\)\+" 8 | -------------------------------------------------------------------------------- /filetype.vim: -------------------------------------------------------------------------------- 1 | call polyglot#init#init() 2 | -------------------------------------------------------------------------------- /ftdetect/polyglot.vim: -------------------------------------------------------------------------------- 1 | call polyglot#init#init() 2 | -------------------------------------------------------------------------------- /ftoff.vim: -------------------------------------------------------------------------------- 1 | if exists("did_load_polyglot") 2 | unlet did_load_polyglot 3 | endif 4 | -------------------------------------------------------------------------------- /ftplugin/a2ps.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'a2ps', 'ftplugin/a2ps.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: a2ps(1) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< inc< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s include=^\\s*Include: 21 | setlocal formatoptions-=t formatoptions+=croql 22 | 23 | let &cpo = s:cpo_save 24 | unlet s:cpo_save 25 | -------------------------------------------------------------------------------- /ftplugin/alsaconf.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'alsaconf', 'ftplugin/alsaconf.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: alsaconf(8) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/ansible.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'ansible', 'ftplugin/ansible.vim') 2 | finish 3 | endif 4 | 5 | set isfname+=@-@ 6 | set path+=./../templates,./../files,templates,files 7 | -------------------------------------------------------------------------------- /ftplugin/ansible_hosts.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'ansible', 'ftplugin/ansible_hosts.vim') 2 | finish 3 | endif 4 | 5 | if exists("b:did_ftplugin") 6 | finish 7 | else 8 | let b:did_ftplugin = 1 9 | endif 10 | 11 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions-=c 12 | 13 | let b:undo_ftplugin = "setl comments< commentstring< formatoptions<" 14 | -------------------------------------------------------------------------------- /ftplugin/arch.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'arch', 'ftplugin/arch.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: GNU Arch inventory file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/art.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'art', 'ftplugin/art.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin 6 | " Language: ART-IM and ART*Enterprise 7 | " Maintainer: Dorai Sitaram 8 | " URL: http://www.ccs.neu.edu/~dorai/vimplugins/vimplugins.html 9 | " Last Change: Apr 2, 2003 10 | 11 | " Only do this when not done yet for this buffer 12 | if exists("b:did_ftplugin") 13 | finish 14 | endif 15 | 16 | run ftplugin/lisp.vim 17 | 18 | setl lw-=if 19 | setl lw+=def-art-fun,deffacts,defglobal,defrule,defschema,for,schema,while 20 | -------------------------------------------------------------------------------- /ftplugin/automake.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'automake', 'ftplugin/automake.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: Automake 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | 14 | let s:cpo_save = &cpo 15 | set cpo&vim 16 | 17 | runtime! ftplugin/make.vim ftplugin/make_*.vim ftplugin/make/*.vim 18 | 19 | let &cpo = s:cpo_save 20 | unlet s:cpo_save 21 | -------------------------------------------------------------------------------- /ftplugin/bdf.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'bdf', 'ftplugin/bdf.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: BDF font definition 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=b:COMMENT commentstring=COMMENT\ %s 21 | setlocal formatoptions-=t formatoptions+=croql 22 | 23 | let &cpo = s:cpo_save 24 | unlet s:cpo_save 25 | -------------------------------------------------------------------------------- /ftplugin/bicep.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'bicep', 'ftplugin/bicep.vim') 2 | finish 3 | endif 4 | 5 | " bicep.vim - basic bicep integration 6 | " Maintainer: Carl Smedstad 7 | 8 | if exists('b:did_ftplugin') || v:version < 700 || &compatible 9 | finish 10 | endif 11 | let b:did_ftplugin = 1 12 | 13 | let s:cpo_save = &cpoptions 14 | set cpoptions&vim 15 | 16 | " Set the commentstring 17 | setlocal commentstring=//%s 18 | let b:undo_ftplugin = 'setlocal commentstring<' 19 | 20 | let &cpoptions = s:cpo_save 21 | unlet s:cpo_save 22 | -------------------------------------------------------------------------------- /ftplugin/bst.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'bst', 'ftplugin/bst.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: bst 7 | " Author: Tim Pope 8 | " $Id: bst.vim,v 1.1 2007/05/05 17:37:57 vimboss Exp $ 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | setlocal commentstring=%\ %s 16 | setlocal comments=:% 17 | setlocal fo-=t fo+=croql 18 | 19 | let b:undo_ftplugin = "setlocal com< cms< fo<" 20 | -------------------------------------------------------------------------------- /ftplugin/caddyfile.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'caddyfile', 'ftplugin/caddyfile.vim') 2 | finish 3 | endif 4 | 5 | " Language: Caddyfile 6 | " Maintainer: 0az <0az@afzhou.com> 7 | " Original Author: Josh Glendenning 8 | 9 | if exists('b:did_ftplugin') 10 | finish 11 | endif 12 | let b:did_ftplugin = 1 13 | 14 | setlocal commentstring=#\ %s 15 | 16 | " Add NERDCommenter delimiters 17 | let s:delimiters = {'left': '#'} 18 | if exists('g:NERDDelimiterMap') 19 | if !has_key(g:NERDDelimiterMap, 'caddyfile') 20 | let g:NERDDelimiterMap.caddyfile = s:delimiters 21 | endif 22 | elseif exists('g:NERDCustomDelimiters') 23 | if !has_key(g:NERDCustomDelimiters, 'caddyfile') 24 | let g:NERDCustomDelimiters.caddyfile = s:delimiters 25 | endif 26 | else 27 | let g:NERDCustomDelimiters = {'caddyfile': s:delimiters} 28 | endif 29 | unlet s:delimiters 30 | -------------------------------------------------------------------------------- /ftplugin/calendar.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'calendar', 'ftplugin/calendar.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: calendar(1) input file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< inc< fo<" 19 | 20 | setlocal comments=s1:/*,mb:*,ex:*/ commentstring& include& 21 | setlocal formatoptions-=t formatoptions+=croql 22 | 23 | let &cpo = s:cpo_save 24 | unlet s:cpo_save 25 | -------------------------------------------------------------------------------- /ftplugin/cdrdaoconf.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'cdrdaoconf', 'ftplugin/cdrdaoconf.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Previous Maintainer: Nikolai Weibull 7 | " Latest Revision: 2007-12-04 8 | 9 | if exists("b:did_ftplugin") 10 | finish 11 | endif 12 | let b:did_ftplugin = 1 13 | 14 | let s:cpo_save = &cpo 15 | set cpo&vim 16 | 17 | let b:undo_ftplugin = "setl com< cms< fo<" 18 | 19 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 20 | 21 | let &cpo = s:cpo_save 22 | unlet s:cpo_save 23 | -------------------------------------------------------------------------------- /ftplugin/cfg.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'cfg', 'ftplugin/cfg.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: Configuration File 7 | " Maintainer: Christian Brabandt 8 | " Latest Revision: 2018-12-24 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl cms< fo<" 19 | 20 | setlocal commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/ch.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'ch', 'ftplugin/ch.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: Ch 7 | " Maintainer: SoftIntegration, Inc. 8 | " URL: http://www.softintegration.com/download/vim/ftplugin/ch.vim 9 | " Last change: 2004 May 16 10 | " Created based on cpp.vim 11 | " 12 | " Ch is a C/C++ interpreter with many high level extensions 13 | " 14 | 15 | " Only do this when not done yet for this buffer 16 | if exists("b:did_ftplugin") 17 | finish 18 | endif 19 | 20 | " Behaves just like C 21 | runtime! ftplugin/c.vim ftplugin/c_*.vim ftplugin/c/*.vim 22 | -------------------------------------------------------------------------------- /ftplugin/conf.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'conf', 'ftplugin/conf.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: generic configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/crm.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'crm', 'ftplugin/crm.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: CRM114 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/csc.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'csc', 'ftplugin/csc.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: csc 7 | " Maintainer: Dan Sharp 8 | " Last Changed: 20 Jan 2009 9 | " URL: http://dwsharp.users.sourceforge.net/vim/ftplugin 10 | 11 | if exists("b:did_ftplugin") | finish | endif 12 | let b:did_ftplugin = 1 13 | 14 | " Make sure the continuation lines below do not cause problems in 15 | " compatibility mode. 16 | let s:save_cpo = &cpo 17 | set cpo-=C 18 | 19 | if exists("loaded_matchit") 20 | let b:match_words= 21 | \ '\:\,' . 22 | \ '\:\:\,' . 23 | \ '\\|\:\' 24 | endif 25 | 26 | " Undo the stuff we changed. 27 | let b:undo_ftplugin = "unlet! b:match_words" 28 | 29 | " Restore the saved compatibility options. 30 | let &cpo = s:save_cpo 31 | unlet s:save_cpo 32 | -------------------------------------------------------------------------------- /ftplugin/css.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'css', 'ftplugin/css.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: CSS 7 | " Maintainer: Doug Kearns 8 | " Previous Maintainer: Nikolai Weibull 9 | " Last Change: 2020 Dec 21 10 | 11 | if exists("b:did_ftplugin") 12 | finish 13 | endif 14 | let b:did_ftplugin = 1 15 | 16 | let s:cpo_save = &cpo 17 | set cpo&vim 18 | 19 | let b:undo_ftplugin = "setl com< cms< inc< fo< ofu< isk<" 20 | 21 | setlocal comments=s1:/*,mb:*,ex:*/ commentstring& 22 | setlocal formatoptions-=t formatoptions+=croql 23 | setlocal omnifunc=csscomplete#CompleteCSS 24 | setlocal iskeyword+=- 25 | 26 | let &l:include = '^\s*@import\s\+\%(url(\)\=' 27 | 28 | let &cpo = s:cpo_save 29 | unlet s:cpo_save 30 | -------------------------------------------------------------------------------- /ftplugin/cvsrc.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'cvsrc', 'ftplugin/cvsrc.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: cvs(1) RC file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments= commentstring= formatoptions-=tcroql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/denyhosts.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'denyhosts', 'ftplugin/denyhosts.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Previous Maintainer: Nikolai Weibull 7 | " Latest Revision: 2007-12-04 8 | 9 | if exists("b:did_ftplugin") 10 | finish 11 | endif 12 | let b:did_ftplugin = 1 13 | 14 | let s:cpo_save = &cpo 15 | set cpo&vim 16 | 17 | let b:undo_ftplugin = "setl com< cms< fo<" 18 | 19 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 20 | 21 | let &cpo = s:cpo_save 22 | unlet s:cpo_save 23 | -------------------------------------------------------------------------------- /ftplugin/dictconf.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'dictconf', 'ftplugin/dictconf.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: dict(1) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/dictdconf.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'dictdconf', 'ftplugin/dictdconf.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: dictd(8) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/diff.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'diff', 'ftplugin/diff.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: Diff 7 | " Maintainer: Bram Moolenaar 8 | " Last Change: 2021 Nov 14 9 | 10 | " Only do this when not done yet for this buffer 11 | if exists("b:did_ftplugin") 12 | finish 13 | endif 14 | let b:did_ftplugin = 1 15 | 16 | let b:undo_ftplugin = "setl modeline< commentstring<" 17 | 18 | " Don't use modelines in a diff, they apply to the diffed file 19 | setlocal nomodeline 20 | 21 | " If there are comments they start with # 22 | let &l:commentstring = "# %s" 23 | 24 | if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter") 25 | let b:browsefilter = "Diff Files (*.diff)\t*.diff\nPatch Files (*.patch)\t*.h\nAll Files (*.*)\t*.*\n" 26 | let b:undo_ftplugin .= " | unlet! b:browsefilter" 27 | endif 28 | -------------------------------------------------------------------------------- /ftplugin/dircolors.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'dircolors', 'ftplugin/dircolors.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: dircolors(1) input file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/docker-compose.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'docker-compose', 'ftplugin/docker-compose.vim') 2 | finish 3 | endif 4 | 5 | " Define comment string 6 | setlocal commentstring=#\ %s 7 | 8 | " Enable automatic comment insertion 9 | setlocal formatoptions+=cro 10 | -------------------------------------------------------------------------------- /ftplugin/dockerfile.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'dockerfile', 'ftplugin/dockerfile.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin 6 | " Language: Dockerfile 7 | " Maintainer: Honza Pokorny 8 | " Last Change: 2014 Aug 29 9 | 10 | " Only do this when not done yet for this buffer 11 | if exists("b:did_ftplugin") 12 | finish 13 | endif 14 | 15 | " Don't load another plugin for this buffer 16 | let b:did_ftplugin = 1 17 | 18 | let b:undo_ftplugin = "setl commentstring<" 19 | 20 | setlocal commentstring=#\ %s 21 | -------------------------------------------------------------------------------- /ftplugin/dosini.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'dosini', 'ftplugin/dosini.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: Configuration File (ini file) for MS-DOS/MS Windows 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:; commentstring=;\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/dune.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'ocaml', 'ftplugin/dune.vim') 2 | finish 3 | endif 4 | 5 | " Language: Dune buildsystem 6 | " Maintainer: Markus Mottl 7 | " Anton Kochkov 8 | " URL: https://github.com/ocaml/vim-ocaml 9 | " Last Change: 10 | " 2018 Nov 3 - Added commentstring (Markus Mottl) 11 | " 2017 Sep 6 - Initial version (Etienne Millon) 12 | 13 | if exists("b:did_ftplugin") 14 | finish 15 | endif 16 | let b:did_ftplugin=1 17 | 18 | setl lisp 19 | 20 | " Comment string 21 | setl commentstring=;\ %s 22 | setl comments=n:; 23 | 24 | setl iskeyword+=#,?,.,/ 25 | 26 | let b:undo_ftplugin = "setlocal lisp< cms< com< isk<" 27 | -------------------------------------------------------------------------------- /ftplugin/elinks.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'elinks', 'ftplugin/elinks.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: elinks(1) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/ember-script.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'emberscript', 'ftplugin/ember-script.vim') 2 | finish 3 | endif 4 | 5 | " Language: ember-script 6 | " Maintainer: Yulij Andreevich Lesov > 7 | " URL: http://github.com/yalesov/vim-ember-script 8 | " Version: 1.0.4 9 | " Last Change: 2016 Jul 6 10 | " License: ISC 11 | 12 | setlocal tabstop=2 13 | setlocal softtabstop=2 14 | setlocal shiftwidth=2 15 | setlocal smarttab 16 | setlocal expandtab 17 | setlocal smartindent 18 | 19 | if v:version < 703 20 | setlocal formatoptions-=t formatoptions+=croql 21 | else 22 | setlocal formatoptions-=t formatoptions+=croqlj 23 | endif 24 | setlocal comments=:# 25 | setlocal commentstring=#\ %s 26 | -------------------------------------------------------------------------------- /ftplugin/emblem.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'emblem', 'ftplugin/emblem.vim') 2 | finish 3 | endif 4 | 5 | " Language: emblem 6 | " Maintainer: Yulij Andreevich Lesov 7 | " URL: http://github.com/yalesov/vim-emblem 8 | " Version: 2.0.1 9 | " Last Change: 2016 Jul 6 10 | " License: ISC 11 | 12 | setlocal tabstop=2 13 | setlocal softtabstop=2 14 | setlocal shiftwidth=2 15 | setlocal smarttab 16 | setlocal expandtab 17 | setlocal smartindent 18 | 19 | setlocal formatoptions=q 20 | setlocal comments=:/ 21 | setlocal commentstring=/\ %s 22 | -------------------------------------------------------------------------------- /ftplugin/eterm.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'eterm', 'ftplugin/eterm.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: eterm(1) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< inc< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s include=^\\s*include 21 | setlocal formatoptions-=t formatoptions+=croql 22 | 23 | let &cpo = s:cpo_save 24 | unlet s:cpo_save 25 | -------------------------------------------------------------------------------- /ftplugin/fennel.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'fennel', 'ftplugin/fennel.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: FENNEL 7 | " Maintainer: Calvin Rose 8 | 9 | if exists("b:did_ftplugin") 10 | finish 11 | endif 12 | let b:did_ftplugin = 1 13 | 14 | let s:cpo_save = &cpo 15 | set cpo&vim 16 | 17 | "setlocal iskeyword+=!,_,%,?,-,*,!,+,/,=,<,>,.,:,$,^ 18 | setlocal iskeyword=!,$,%,#,*,+,-,.,/,:,<,=,>,?,_,a-z,A-Z,48-57,128-247,124,126,38,94 19 | 20 | " There will be false positives, but this is better than missing the whole set 21 | " of user-defined def* definitions. 22 | setlocal define=\\v[(/]def(ault)@!\\S* 23 | 24 | setlocal suffixesadd=.fnl 25 | 26 | " Remove 't' from 'formatoptions' to avoid auto-wrapping code. 27 | setlocal formatoptions-=t 28 | 29 | setlocal comments=n:; 30 | setlocal commentstring=;\ %s 31 | 32 | let &cpo = s:cpo_save 33 | -------------------------------------------------------------------------------- /ftplugin/fetchmail.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'fetchmail', 'ftplugin/fetchmail.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: fetchmail(1) RC File 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/fstab.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'fstab', 'ftplugin/fstab.vim') 2 | finish 3 | endif 4 | 5 | " Vim ftplugin file 6 | " Language: fstab file 7 | " Maintainer: Radu Dineiu 8 | " URL: https://raw.github.com/rid9/vim-fstab/master/ftplugin/fstab.vim 9 | " Last Change: 2021 Jan 02 10 | " Version: 1.0 11 | " 12 | " Credits: 13 | " Subhaditya Nath 14 | 15 | if exists("b:did_ftplugin") 16 | finish 17 | endif 18 | let b:did_ftplugin = 1 19 | 20 | setlocal commentstring=#%s 21 | let b:undo_ftplugin = "setlocal commentstring<" 22 | 23 | " vim: ts=8 ft=vim 24 | -------------------------------------------------------------------------------- /ftplugin/fvwm.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'fvwm', 'ftplugin/fvwm.vim') 2 | finish 3 | endif 4 | 5 | " Created : Tue 09 May 2006 02:07:31 PM CDT 6 | " Modified : Tue 09 May 2006 02:07:31 PM CDT 7 | " Author : Gautam Iyer 8 | " Description : ftplugin for fvwm config files 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let b:undo_ftplugin = "setl com< cms< fo<" 16 | 17 | setlocal comments=:# commentstring=#\ %s 18 | setlocal formatoptions-=t formatoptions+=croql 19 | -------------------------------------------------------------------------------- /ftplugin/gdb.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'gdb', 'ftplugin/gdb.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: gdb 7 | " Maintainer: Michaël Peeters 8 | " Last Changed: 26 Oct 2017 9 | 10 | if exists("b:did_ftplugin") | finish | endif 11 | let b:did_ftplugin = 1 12 | 13 | setlocal commentstring=#%s 14 | 15 | " Undo the stuff we changed. 16 | let b:undo_ftplugin = "setlocal cms<" 17 | -------------------------------------------------------------------------------- /ftplugin/gitconfig.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'git', 'ftplugin/gitconfig.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin 6 | " Language: git config file 7 | " Maintainer: Tim Pope 8 | " Last Change: 2009 Dec 24 9 | 10 | " Only do this when not done yet for this buffer 11 | if (exists("b:did_ftplugin")) 12 | finish 13 | endif 14 | let b:did_ftplugin = 1 15 | 16 | setlocal formatoptions-=t formatoptions+=croql 17 | setlocal comments=:#,:; commentstring=;\ %s 18 | 19 | let b:undo_ftplugin = "setl fo< com< cms<" 20 | -------------------------------------------------------------------------------- /ftplugin/gitignore.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'gitignore', 'ftplugin/gitignore.vim') 2 | finish 3 | endif 4 | 5 | scriptencoding utf-8 6 | 7 | " Copyright (c) 2017-2020 Filip Szymański. All rights reserved. 8 | " Use of this source code is governed by an MIT license that can be 9 | " found in the LICENSE file. 10 | 11 | if exists('b:did_ftplugin') 12 | finish 13 | endif 14 | let b:did_ftplugin = 1 15 | 16 | setlocal commentstring=#\ %s 17 | 18 | let b:undo_ftplugin = 'setlocal commentstring<' 19 | 20 | " vim: ts=2 et sw=2 21 | -------------------------------------------------------------------------------- /ftplugin/gitsendemail.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'git', 'ftplugin/gitsendemail.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin 6 | " Language: git send-email message 7 | " Maintainer: Tim Pope 8 | " Last Change: 2009 Dec 24 9 | 10 | runtime! ftplugin/mail.vim 11 | -------------------------------------------------------------------------------- /ftplugin/gleam.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'gleam', 'ftplugin/gleam.vim') 2 | finish 3 | endif 4 | 5 | 6 | if exists("b:did_ftplugin") 7 | finish 8 | endif 9 | let b:did_ftplugin = 1 10 | 11 | compiler gleam 12 | 13 | setlocal commentstring=//%s 14 | setlocal formatoptions-=t formatoptions+=croqnl 15 | 16 | setlocal comments=s0:/*!,ex:*/,s1:/*,mb:*,ex:*/,:////,:///,:// 17 | 18 | " j was only added in 7.3.541, so stop complaints about its nonexistence 19 | silent! setlocal formatoptions+=j 20 | 21 | " smartindent will be overridden by indentexpr if filetype indent is on, but 22 | " otherwise it's better than nothing. 23 | setlocal smartindent nocindent 24 | 25 | setlocal tabstop=2 shiftwidth=2 softtabstop=2 expandtab 26 | setlocal textwidth=79 27 | 28 | setlocal suffixesadd=.gleam 29 | 30 | augroup gleam.vim 31 | autocmd! 32 | augroup END 33 | -------------------------------------------------------------------------------- /ftplugin/gpg.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'gpg', 'ftplugin/gpg.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: gpg(1) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/groovy.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'groovy', 'ftplugin/groovy.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: groovy 7 | " Maintainer: Justin M. Keyes 8 | " Last Change: 2016 May 22 9 | 10 | if exists('b:did_ftplugin') 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo-=C 17 | 18 | let b:undo_ftplugin = 'setlocal commentstring<' 19 | 20 | setlocal commentstring=//%s 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/group.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'group', 'ftplugin/group.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: group(5) user group file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments= commentstring= formatoptions-=tcroq formatoptions+=l 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/grub.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'grub', 'ftplugin/grub.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: grub(8) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/hgcommit.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'hgcommit', 'ftplugin/hgcommit.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: hg (Mercurial) commit file 7 | " Maintainer: Ken Takata 8 | " Last Change: 2016 Jan 6 9 | " Filenames: hg-editor-*.txt 10 | " License: VIM License 11 | " URL: https://github.com/k-takata/hg-vim 12 | 13 | if exists("b:did_ftplugin") 14 | finish 15 | endif 16 | let b:did_ftplugin = 1 17 | 18 | setlocal nomodeline 19 | 20 | let b:undo_ftplugin = 'setl modeline<' 21 | -------------------------------------------------------------------------------- /ftplugin/hive.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'hive', 'ftplugin/hive.vim') 2 | finish 3 | endif 4 | 5 | setlocal comments=:-- 6 | setlocal commentstring=--\ %s 7 | -------------------------------------------------------------------------------- /ftplugin/hostconf.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'hostconf', 'ftplugin/hostconf.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Previous Maintainer: Nikolai Weibull 7 | " Latest Revision: 2007-12-04 8 | 9 | if exists("b:did_ftplugin") 10 | finish 11 | endif 12 | let b:did_ftplugin = 1 13 | 14 | let s:cpo_save = &cpo 15 | set cpo&vim 16 | 17 | let b:undo_ftplugin = "setl com< cms< fo<" 18 | 19 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 20 | 21 | let &cpo = s:cpo_save 22 | unlet s:cpo_save 23 | -------------------------------------------------------------------------------- /ftplugin/hostsaccess.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'hostsaccess', 'ftplugin/hostsaccess.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: hosts_access(5) control file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/html.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'html5', 'ftplugin/html.vim') 2 | finish 3 | endif 4 | 5 | " Maintainer: othree 6 | " URL: http://github.com/othree/html5.vim 7 | " Last Change: 2014-05-02 8 | " License: MIT 9 | " Changes: Add - to keyword 10 | 11 | " setlocal iskeyword+=- 12 | 13 | setlocal commentstring= 14 | -------------------------------------------------------------------------------- /ftplugin/htmldjango.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'htmldjango', 'ftplugin/htmldjango.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: Django HTML template 7 | " Maintainer: Dave Hodder 8 | " Last Change: 2007 Jan 25 9 | 10 | " Only use this filetype plugin when no other was loaded. 11 | if exists("b:did_ftplugin") 12 | finish 13 | endif 14 | 15 | " Use HTML and Django template ftplugins. 16 | runtime! ftplugin/html.vim 17 | runtime! ftplugin/django.vim 18 | -------------------------------------------------------------------------------- /ftplugin/indent.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'indent', 'ftplugin/indent.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: indent(1) configuration file 7 | " Maintainer: Doug Kearns 8 | " Previous Maintainer: Nikolai Weibull 9 | " Latest Revision: 2008-07-09 10 | 11 | if exists("b:did_ftplugin") 12 | finish 13 | endif 14 | let b:did_ftplugin = 1 15 | 16 | let s:cpo_save = &cpo 17 | set cpo&vim 18 | 19 | let b:undo_ftplugin = "setl com< cms< fo<" 20 | 21 | setlocal comments=s1:/*,mb:*,ex:*/ commentstring& 22 | setlocal formatoptions-=t formatoptions+=croql 23 | 24 | let &cpo = s:cpo_save 25 | unlet s:cpo_save 26 | -------------------------------------------------------------------------------- /ftplugin/ion.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'ion', 'ftplugin/ion.vim') 2 | finish 3 | endif 4 | 5 | 6 | if exists("b:did_ftplugin") | finish | endif 7 | let b:did_ftplugin = 1 8 | 9 | setlocal commentstring=#%s 10 | -------------------------------------------------------------------------------- /ftplugin/jproperties.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'jproperties', 'ftplugin/jproperties.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin 6 | " Language: Java properties file 7 | " Maintainer: None 8 | " Last Change: 2019 Dec 01 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | setlocal formatoptions-=t 16 | setlocal comments=:#,:! 17 | setlocal commentstring=#\ %s 18 | 19 | let b:undo_ftplugin = "setl cms< com< fo<" 20 | -------------------------------------------------------------------------------- /ftplugin/jq.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'jq', 'ftplugin/jq.vim') 2 | finish 3 | endif 4 | 5 | setlocal commentstring=#%s 6 | -------------------------------------------------------------------------------- /ftplugin/jsonnet.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'jsonnet', 'ftplugin/jsonnet.vim') 2 | finish 3 | endif 4 | 5 | 6 | 7 | 8 | " -- fmt 9 | command! -nargs=0 JsonnetFmt call jsonnet#Format() 10 | 11 | setlocal commentstring=//\ %s 12 | 13 | 14 | -------------------------------------------------------------------------------- /ftplugin/kconfig.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'kconfig', 'ftplugin/kconfig.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Vim syntax file 7 | " Maintainer: Christian Brabandt 8 | " Previous Maintainer: Nikolai Weibull 9 | " Latest Revision: 2015-05-29 10 | " License: Vim (see :h license) 11 | " Repository: https://github.com/chrisbra/vim-kconfig 12 | 13 | if exists("b:did_ftplugin") 14 | finish 15 | endif 16 | let b:did_ftplugin = 1 17 | 18 | let s:cpo_save = &cpo 19 | set cpo&vim 20 | 21 | let b:undo_ftplugin = "setl com< cms< fo<" 22 | 23 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 24 | 25 | " For matchit.vim 26 | if exists("loaded_matchit") 27 | let b:match_words = '^\:\,^\:\,^\:\' 28 | endif 29 | 30 | let &cpo = s:cpo_save 31 | unlet s:cpo_save 32 | -------------------------------------------------------------------------------- /ftplugin/kotlin.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'kotlin', 'ftplugin/kotlin.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: Kotlin 7 | " Maintainer: Alexander Udalov 8 | " URL: https://github.com/udalov/kotlin-vim 9 | " Last Change: 7 November 2021 10 | 11 | if exists('b:did_ftplugin') | finish | endif 12 | let b:did_ftplugin = 1 13 | 14 | let s:save_cpo = &cpo 15 | set cpo&vim 16 | 17 | setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:// 18 | setlocal commentstring=//\ %s 19 | 20 | setlocal formatoptions-=t formatoptions+=croqnl 21 | silent! setlocal formatoptions+=j 22 | 23 | setlocal includeexpr=substitute(v:fname,'\\.','/','g') 24 | setlocal suffixesadd=.kt 25 | 26 | let b:undo_ftplugin = "setlocal comments< commentstring< ". 27 | \ "formatoptions< includeexpr< suffixesadd<" 28 | 29 | let &cpo = s:save_cpo 30 | unlet s:save_cpo 31 | -------------------------------------------------------------------------------- /ftplugin/ld.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'ld', 'ftplugin/ld.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: ld(1) script 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< inc< fo<" 19 | 20 | setlocal comments=s1:/*,mb:*,ex:*/ commentstring=/*%s*/ include=^\\s*INCLUDE 21 | setlocal formatoptions-=t formatoptions+=croql 22 | 23 | let &cpo = s:cpo_save 24 | unlet s:cpo_save 25 | -------------------------------------------------------------------------------- /ftplugin/less.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'less', 'ftplugin/less.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin 6 | " Language: less 7 | " Maintainer: Alessandro Vioni 8 | " URL: https://github.com/genoma/vim-less 9 | " Last Change: 2014 November 24 10 | 11 | " Only do this when not done yet for this buffer 12 | if exists("b:did_ftplugin") 13 | finish 14 | endif 15 | let b:did_ftplugin = 1 16 | 17 | let b:undo_ftplugin = "setl cms< def< inc< inex< ofu< sua<" 18 | 19 | setlocal formatoptions-=t formatoptions+=croql 20 | 21 | setlocal comments=:// commentstring=//\ %s 22 | 23 | setlocal omnifunc=csscomplete#CompleteCSS 24 | setlocal suffixesadd=.less 25 | -------------------------------------------------------------------------------- /ftplugin/lftp.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'lftp', 'ftplugin/lftp.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: lftp(1) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/libao.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'libao', 'ftplugin/libao.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: libao.conf(5) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/limits.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'limits', 'ftplugin/limits.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: limits(5) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/lisp.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'lisp', 'ftplugin/lisp.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin 6 | " Language: Lisp 7 | " Maintainer: Sergey Khorev 8 | " URL: http://sites.google.com/site/khorser/opensource/vim 9 | " Original author: Dorai Sitaram 10 | " Original URL: http://www.ccs.neu.edu/~dorai/vimplugins/vimplugins.html 11 | " Last Change: Mar 10, 2021 12 | 13 | " Only do this when not done yet for this buffer 14 | if exists("b:did_ftplugin") 15 | finish 16 | endif 17 | 18 | " Don't load another plugin for this buffer 19 | let b:did_ftplugin = 1 20 | 21 | setl comments=:;;;;,:;;;,:;;,:;,sr:#\|,mb:\|,ex:\|# 22 | setl define=^\\s*(def\\k* 23 | setl formatoptions-=t 24 | setl iskeyword+=+,-,*,/,%,<,=,>,:,$,?,!,@-@,94 25 | setl lisp 26 | setl commentstring=;%s 27 | 28 | let b:undo_ftplugin = "setlocal comments< define< formatoptions< iskeyword< lisp< commentstring<" 29 | -------------------------------------------------------------------------------- /ftplugin/litcoffee.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'coffee-script', 'ftplugin/litcoffee.vim') 2 | finish 3 | endif 4 | 5 | runtime ftplugin/coffee.vim 6 | -------------------------------------------------------------------------------- /ftplugin/llvm.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'llvm', 'ftplugin/llvm.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: LLVM Assembly 7 | " Maintainer: The LLVM team, http://llvm.org/ 8 | 9 | if exists("b:did_ftplugin") 10 | finish 11 | endif 12 | let b:did_ftplugin = 1 13 | 14 | setlocal softtabstop=2 shiftwidth=2 15 | setlocal expandtab 16 | setlocal comments+=:; 17 | -------------------------------------------------------------------------------- /ftplugin/logcheck.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'logcheck', 'ftplugin/logcheck.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: Logcheck 7 | " Maintainer: Debian Vim Maintainers 8 | " Last Change: 2018 Dec 27 9 | " License: Vim License 10 | " URL: https://salsa.debian.org/vim-team/vim-debian/blob/master/ftplugin/logcheck.vim 11 | 12 | if exists('b:did_ftplugin') 13 | finish 14 | endif 15 | let b:did_ftplugin = 1 16 | 17 | let b:undo_ftplugin = 'setl fo<' 18 | 19 | " Do not hard-wrap non-comment lines since each line is a self-contained 20 | " regular expression 21 | setlocal formatoptions-=t 22 | -------------------------------------------------------------------------------- /ftplugin/loginaccess.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'loginaccess', 'ftplugin/loginaccess.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: login.access(5) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/logindefs.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'logindefs', 'ftplugin/logindefs.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: login.defs(5) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/logtalk.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'logtalk', 'ftplugin/logtalk.vim') 2 | finish 3 | endif 4 | 5 | " Logtalk filetype plugin file 6 | " Language: Logtalk 7 | " Maintainer: Paulo Moura 8 | " Latest Revision: 2018-08-03 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let b:undo_ftplugin = "setl ts< sw< fdm< fdc< ai< dict<" 16 | 17 | setlocal ts=4 18 | setlocal sw=4 19 | setlocal fdm=syntax 20 | setlocal fdn=10 21 | setlocal fdc=2 22 | setlocal autoindent 23 | setlocal dict=$VIMRUNTIME/ftplugin/logtalk.dict 24 | -------------------------------------------------------------------------------- /ftplugin/m4.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'm4', 'ftplugin/m4.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: m4 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:#,:dnl commentstring=dnl\ %s 21 | setlocal formatoptions-=t formatoptions+=croql 22 | 23 | let &cpo = s:cpo_save 24 | unlet s:cpo_save 25 | -------------------------------------------------------------------------------- /ftplugin/mailaliases.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'mailaliases', 'ftplugin/mailaliases.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Previous Maintainer: Nikolai Weibull 7 | " Latest Revision: 2008-07-09 8 | 9 | if exists("b:did_ftplugin") 10 | finish 11 | endif 12 | let b:did_ftplugin = 1 13 | 14 | let s:cpo_save = &cpo 15 | set cpo&vim 16 | 17 | let b:undo_ftplugin = "setl com< cms< fo<" 18 | 19 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 20 | 21 | let &cpo = s:cpo_save 22 | unlet s:cpo_save 23 | -------------------------------------------------------------------------------- /ftplugin/mailcap.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'mailcap', 'ftplugin/mailcap.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: Mailcap configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/mako.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'mako', 'ftplugin/mako.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: Mako 7 | " Maintainer: Randy Stauner 8 | " Last Change: 2019-09-06 9 | " Version: 0.2 10 | 11 | if exists("b:did_ftplugin") | finish | endif 12 | let b:did_ftplugin = 1 13 | 14 | setlocal comments=:## 15 | setlocal commentstring=##%s 16 | 17 | if exists("loaded_matchit") 18 | let b:match_ignorecase = 1 19 | let b:match_words = "<:>," . 20 | \ "<\@<=[ou]l\>[^>]*\%(>\|$\):<\@<=li\>:<\@<=/[ou]l>," . 21 | \ "<\@<=dl\>[^>]*\%(>\|$\):<\@<=d[td]\>:<\@<=/dl>," . 22 | \ "<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>" 23 | endif 24 | -------------------------------------------------------------------------------- /ftplugin/manconf.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'manconf', 'ftplugin/manconf.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: man.conf(5) - man configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/mir.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'llvm', 'ftplugin/mir.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: LLVM Machine IR 7 | " Maintainer: The LLVM team, http://llvm.org/ 8 | 9 | if exists("b:did_ftplugin") 10 | finish 11 | endif 12 | let b:did_ftplugin = 1 13 | 14 | setlocal softtabstop=2 shiftwidth=2 15 | setlocal expandtab 16 | setlocal comments+=:; 17 | 18 | -------------------------------------------------------------------------------- /ftplugin/mlir.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'llvm', 'ftplugin/mlir.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: MLIR Assembly 7 | " Maintainer: The MLIR team 8 | 9 | if exists("b:did_ftplugin") 10 | finish 11 | endif 12 | let b:did_ftplugin = 1 13 | 14 | setlocal softtabstop=2 shiftwidth=2 15 | setlocal expandtab 16 | setlocal comments+=:// 17 | -------------------------------------------------------------------------------- /ftplugin/modconf.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'modconf', 'ftplugin/modconf.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: modules.conf(5) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< inc< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s include=^\\s*include 21 | setlocal formatoptions-=t formatoptions+=croql 22 | 23 | let &cpo = s:cpo_save 24 | unlet s:cpo_save 25 | -------------------------------------------------------------------------------- /ftplugin/moon.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'moonscript', 'ftplugin/moon.vim') 2 | finish 3 | endif 4 | 5 | " Language: MoonScript 6 | " Maintainer: leafo 7 | " Based On: CoffeeScript by Mick Koch 8 | " URL: http://github.com/leafo/moonscript-vim 9 | " License: WTFPL 10 | 11 | if exists("b:did_ftplugin") 12 | finish 13 | endif 14 | let b:did_ftplugin = 1 15 | 16 | setlocal formatoptions-=t 17 | setlocal comments=:-- 18 | setlocal commentstring=--\ %s 19 | 20 | let b:undo_ftplugin = "setlocal commentstring< comments< formatoptions<" 21 | -------------------------------------------------------------------------------- /ftplugin/mplayerconf.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'mplayerconf', 'ftplugin/mplayerconf.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: mplayer(1) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< inc< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s include=^\\s*include 21 | setlocal formatoptions-=t formatoptions+=croql 22 | 23 | let &cpo = s:cpo_save 24 | unlet s:cpo_save 25 | -------------------------------------------------------------------------------- /ftplugin/mustache.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'handlebars', 'ftplugin/mustache.vim') 2 | finish 3 | endif 4 | 5 | runtime! ftplugin/handlebars*.vim ftplugin/handlebars/*.vim 6 | -------------------------------------------------------------------------------- /ftplugin/muttrc.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'muttrc', 'ftplugin/muttrc.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: mutt RC File 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2006-04-19 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< inc< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s 21 | setlocal formatoptions-=t formatoptions+=croql 22 | 23 | let &l:include = '^\s*source\>' 24 | 25 | let &cpo = s:cpo_save 26 | unlet s:cpo_save 27 | -------------------------------------------------------------------------------- /ftplugin/nanorc.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'nanorc', 'ftplugin/nanorc.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: nanorc(5) - GNU nano configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/neomuttrc.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'neomuttrc', 'ftplugin/neomuttrc.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: NeoMutt RC File 7 | " Previous Maintainer: Guillaume Brogi 8 | " Latest Revision: 2017-09-17 9 | " Original version copied from ftplugin/muttrc.vim 10 | 11 | if exists("b:did_ftplugin") 12 | finish 13 | endif 14 | let b:did_ftplugin = 1 15 | 16 | let s:cpo_save = &cpo 17 | set cpo&vim 18 | 19 | let b:undo_ftplugin = "setl com< cms< inc< fo<" 20 | 21 | setlocal comments=:# commentstring=#\ %s 22 | setlocal formatoptions-=t formatoptions+=croql 23 | 24 | let &l:include = '^\s*source\>' 25 | 26 | let &cpo = s:cpo_save 27 | unlet s:cpo_save 28 | -------------------------------------------------------------------------------- /ftplugin/netrc.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'netrc', 'ftplugin/netrc.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: netrc(5) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments= commentstring= formatoptions-=tcroq formatoptions+=l 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/nftables.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'nftables', 'ftplugin/nftables.vim') 2 | finish 3 | endif 4 | 5 | if exists('b:did_ftplugin') 6 | finish 7 | endif 8 | let b:did_ftplugin = 1 9 | 10 | let s:save_cpo = &cpoptions 11 | set cpoptions&vim 12 | 13 | setlocal smartindent nocindent 14 | setlocal commentstring=#%s 15 | setlocal formatoptions-=t formatoptions+=croqnlj 16 | 17 | setlocal comments=b:# 18 | 19 | setlocal tabstop=4 shiftwidth=4 softtabstop=4 expandtab 20 | setlocal textwidth=99 21 | 22 | let b:undo_ftplugin = ' 23 | \ setlocal formatoptions< comments< commentstring< 24 | \|setlocal tabstop< shiftwidth< softtabstop< expandtab< textwidth< 25 | \' 26 | 27 | let &cpoptions = s:save_cpo 28 | unlet s:save_cpo 29 | -------------------------------------------------------------------------------- /ftplugin/nginx.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'nginx', 'ftplugin/nginx.vim') 2 | finish 3 | endif 4 | 5 | setlocal comments=:# 6 | setlocal commentstring=#\ %s 7 | setlocal formatoptions+=croql formatoptions-=t 8 | 9 | let b:undo_ftplugin = "setl fo< cms< com<" 10 | -------------------------------------------------------------------------------- /ftplugin/nix.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'nix', 'ftplugin/nix.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin 6 | " Language: Nix 7 | " Maintainer: Daiderd Jordan 8 | " URL: https://github.com/LnL7/vim-nix 9 | 10 | if (exists("b:did_ftplugin")) 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | setlocal 16 | \ comments=:# 17 | \ commentstring=#\ %s 18 | \ iskeyword+=- 19 | 20 | if get(g:, 'nix_recommended_style', 1) 21 | setlocal 22 | \ shiftwidth=2 23 | \ softtabstop=2 24 | \ expandtab 25 | endif 26 | -------------------------------------------------------------------------------- /ftplugin/nroff.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'nroff', 'ftplugin/nroff.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin 6 | " Language: roff(7) 7 | " Maintainer: Aman Verma 8 | " Homepage: https://github.com/a-vrma/vim-nroff-ftplugin 9 | " Previous Maintainer: Chris Spiegel 10 | " Last Change: 2020 Nov 21 11 | 12 | if exists("b:did_ftplugin") 13 | finish 14 | endif 15 | let b:did_ftplugin = 1 16 | 17 | setlocal commentstring=.\\\"%s 18 | setlocal comments=:.\\\" 19 | setlocal sections+=Sh 20 | 21 | let b:undo_ftplugin = 'setlocal commentstring< comments< sections<' 22 | -------------------------------------------------------------------------------- /ftplugin/oasis.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'ocaml', 'ftplugin/oasis.vim') 2 | finish 3 | endif 4 | 5 | if exists("b:did_ftplugin") 6 | finish 7 | endif 8 | let b:did_ftplugin=1 9 | 10 | setlocal comments=:# 11 | setlocal commentstring=#\ %s 12 | 13 | let b:undo_ftplugin = "com< cms<" 14 | -------------------------------------------------------------------------------- /ftplugin/objc.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'objc', 'ftplugin/objc.vim') 2 | finish 3 | endif 4 | 5 | " Use C++ style comment strings with commentary.vim 6 | setl commentstring=//%s 7 | 8 | " Search for include files inside frameworks (used for gf etc.) 9 | setl includeexpr=substitute(v:fname,'\\([^/]\\+\\)/\\(.\\+\\)','/System/Library/Frameworks/\\1.framework/Headers/\\2','') 10 | 11 | -------------------------------------------------------------------------------- /ftplugin/ocamlbuild_tags.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'ocaml', 'ftplugin/ocamlbuild_tags.vim') 2 | finish 3 | endif 4 | 5 | if exists("b:did_ftplugin") 6 | finish 7 | endif 8 | let b:did_ftplugin=1 9 | 10 | setlocal comments=:# 11 | setlocal commentstring=#\ %s 12 | 13 | let b:undo_ftplugin = "com< cms<" 14 | -------------------------------------------------------------------------------- /ftplugin/octave.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'octave', 'ftplugin/octave.vim') 2 | finish 3 | endif 4 | 5 | setlocal commentstring=%\ %s 6 | -------------------------------------------------------------------------------- /ftplugin/omake.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'ocaml', 'ftplugin/omake.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: OMake 7 | 8 | " Only do this when not done yet for this buffer 9 | if exists("b:did_ftplugin") 10 | finish 11 | endif 12 | let b:did_ftplugin = 1 13 | 14 | " Set 'formatoptions' to break comment lines but not other lines, 15 | " and insert the comment leader when hitting or using "o". 16 | setlocal fo-=t fo+=croql 17 | 18 | " Set 'comments' to format dashed lists in comments 19 | setlocal com=sO:#\ -,mO:#\ \ ,b:# 20 | 21 | " Set 'commentstring' to put the marker after a #. 22 | setlocal commentstring=#\ %s 23 | 24 | " always use spaces and not tabs 25 | setlocal expandtab 26 | 27 | " Including files. 28 | let &l:include = '^\s*include' 29 | 30 | let b:undo_ftplugin = "fo< com< cms< et< inc<" 31 | -------------------------------------------------------------------------------- /ftplugin/opencl.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'opencl', 'ftplugin/opencl.vim') 2 | finish 3 | endif 4 | 5 | if exists("b:did_ftplugin") | finish | endif 6 | 7 | if version > 600 8 | runtime! ftplugin/c.vim 9 | endif 10 | 11 | " Smaller tab stops. 12 | setlocal tabstop=4 13 | setlocal shiftwidth=4 14 | 15 | " Smart tabbing/indenting 16 | setlocal smarttab 17 | setlocal smartindent 18 | 19 | let b:did_ftplugin = 1 20 | -------------------------------------------------------------------------------- /ftplugin/openscad.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'openscad', 'ftplugin/openscad.vim') 2 | finish 3 | endif 4 | 5 | " Blatantly stolen from vim74\ftplugin\c.vim 6 | 7 | " Set 'formatoptions' to break comment lines but not other lines, 8 | " and insert the comment leader when hitting or using "o". 9 | setlocal fo-=t fo+=croql 10 | 11 | " Set 'comments' to format dashed lists in comments. 12 | setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:// 13 | 14 | " Win32 can filter files in the browse dialog 15 | if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter") 16 | let b:browsefilter = "OpenSCAD Source Files (*.scad)\t*.scad\n" . 17 | \ "All Files (*.*)\t*.*\n" 18 | endif 19 | -------------------------------------------------------------------------------- /ftplugin/org.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'org', 'ftplugin/org.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin for GNU Emacs' Org mode 6 | " 7 | " Maintainer: Alex Vear 8 | " License: Vim (see `:help license`) 9 | " Location: ftplugin/org.vim 10 | " Website: https://github.com/axvr/org.vim 11 | " Last Change: 2020-02-15 12 | " 13 | " Reference Specification: Org mode manual 14 | " GNU Info: `$ info Org` 15 | " Web: 16 | 17 | setlocal commentstring=#%s 18 | setlocal comments=fb:*,fb:-,fb:+,b:#,b:\: 19 | setlocal formatoptions+=ncqlt 20 | let &l:formatlistpat = '^\s*\(\d\+[.)]\|[+-]\)\s\+' 21 | 22 | setlocal foldexpr=org#fold_expr() 23 | setlocal foldmethod=expr 24 | 25 | if org#option('org_clean_folds', 0) 26 | setlocal foldtext=org#fold_text() 27 | setlocal fillchars-=fold:- 28 | endif 29 | -------------------------------------------------------------------------------- /ftplugin/outline.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'org', 'ftplugin/outline.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin for GNU Emacs' Outline mode 6 | " 7 | " Maintainer: Alex Vear 8 | " License: Vim (see `:help license`) 9 | " Location: ftplugin/outline.vim 10 | " Website: https://github.com/axvr/org.vim 11 | " Last Change: 2020-01-04 12 | " 13 | " Reference Specification: GNU Emacs Manual, section 'Outline Mode' 14 | " GNU Info: `$ info Emacs Outline Mode` 15 | " Web: 16 | 17 | setlocal foldexpr=org#fold_expr() 18 | setlocal foldmethod=expr 19 | 20 | if org#option('org_clean_folds', 0) 21 | setlocal foldtext=org#fold_text() 22 | setlocal fillchars-=fold:- 23 | endif 24 | -------------------------------------------------------------------------------- /ftplugin/pamconf.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'pamconf', 'ftplugin/pamconf.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: pam(8) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/passwd.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'passwd', 'ftplugin/passwd.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: passwd(5) password file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments= commentstring= formatoptions-=tcroq formatoptions+=l 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/pest.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'pest', 'ftplugin/pest.vim') 2 | finish 3 | endif 4 | 5 | -------------------------------------------------------------------------------- /ftplugin/pinfo.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'pinfo', 'ftplugin/pinfo.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: pinfo(1) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/procmail.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'procmail', 'ftplugin/procmail.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: procmail(1) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< inc< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &l:include = '^\s*INCLUDERC\>' 23 | 24 | let &cpo = s:cpo_save 25 | unlet s:cpo_save 26 | -------------------------------------------------------------------------------- /ftplugin/prolog.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'prolog', 'ftplugin/prolog.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: Prolog 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=s1:/*,mb:*,ex:*/,:% commentstring=%\ %s 21 | setlocal formatoptions-=t formatoptions+=croql 22 | 23 | let &cpo = s:cpo_save 24 | unlet s:cpo_save 25 | -------------------------------------------------------------------------------- /ftplugin/protocols.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'protocols', 'ftplugin/protocols.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: protocols(5) - Internet protocols definition file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/quake.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'quake', 'ftplugin/quake.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: Quake[1-3] configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:// commentstring=//\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/raml.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'raml', 'ftplugin/raml.vim') 2 | finish 3 | endif 4 | 5 | set ts=2 sts=2 sw=2 et 6 | -------------------------------------------------------------------------------- /ftplugin/razor.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'razor', 'ftplugin/razor.vim') 2 | finish 3 | endif 4 | 5 | if exists("b:did_ftplugin") 6 | finish 7 | endif 8 | let b:did_ftplugin = 1 9 | 10 | " vim:set sw=2: 11 | -------------------------------------------------------------------------------- /ftplugin/readline.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'readline', 'ftplugin/readline.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: readline(3) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/reva.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'reva', 'ftplugin/reva.vim') 2 | finish 3 | endif 4 | 5 | " Vim ftplugin file 6 | " Language: Reva Forth 7 | " Version: 7.1 8 | " Last Change: 2008/01/11 9 | " Maintainer: Ron Aaron 10 | " URL: http://ronware.org/reva/ 11 | " Filetypes: *.rf *.frt 12 | " NOTE: Forth allows any non-whitespace in a name, so you need to do: 13 | " setlocal iskeyword=!,@,33-35,%,$,38-64,A-Z,91-96,a-z,123-126,128-255 14 | " 15 | " This goes with the syntax/reva.vim file. 16 | 17 | " Only do this when not done yet for this buffer 18 | if exists("b:did_ftplugin") 19 | finish 20 | endif 21 | 22 | " Don't load another plugin for this buffer 23 | let b:did_ftplugin = 1 24 | 25 | setlocal sts=4 sw=4 26 | setlocal com=s1:/*,mb:*,ex:*/,:\|,:\\ 27 | setlocal fo=tcrqol 28 | setlocal matchpairs+=\::; 29 | setlocal iskeyword=!,@,33-35,%,$,38-64,A-Z,91-96,a-z,123-126,128-255 30 | -------------------------------------------------------------------------------- /ftplugin/rnc.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'rnc', 'ftplugin/rnc.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: Relax NG compact syntax 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/rpl.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'rpl', 'ftplugin/rpl.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: RPL/2 7 | " Maintainer: Joël BERTRAND 8 | " Last Change: 2012 Mar 07 9 | " Version: 0.1 10 | 11 | " Only do this when not done yet for this buffer 12 | if exists("b:did_ftplugin") 13 | finish 14 | endif 15 | 16 | " Don't load another plugin for this buffer 17 | let b:did_ftplugin = 1 18 | 19 | " Set 'formatoptions' to break comment lines but not other lines, 20 | " and insert the comment leader when hitting or using "o". 21 | setlocal fo-=t fo+=croql 22 | 23 | " Set 'comments' to format dashed lists in comments. 24 | setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:// 25 | 26 | let b:undo_ftplugin = "setlocal fo< comments<" 27 | -------------------------------------------------------------------------------- /ftplugin/sbt.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'sbt', 'ftplugin/sbt.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: sbt 7 | " Maintainer: Steven Dobay 8 | " License: Same as Vim 9 | " Last Change: 2017.04.30 10 | " ---------------------------------------------------------------------------- 11 | 12 | if exists('b:did_ftplugin') || &cp 13 | finish 14 | endif 15 | 16 | let b:did_ftplugin = 1 17 | 18 | runtime! ftplugin/scala.vim 19 | 20 | -------------------------------------------------------------------------------- /ftplugin/scala.xpt.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'scala', 'ftplugin/scala.xpt.vim') 2 | finish 3 | endif 4 | 5 | 6 | XPTemplate priority=lang 7 | 8 | XPTvar $BRif ' ' 9 | XPTvar $BRel \n 10 | XPTvar $BRloop ' ' 11 | XPTvar $BRfun ' ' 12 | 13 | XPTinclude 14 | \ _common/personal 15 | \ java/java 16 | 17 | XPT cake hint=Cake\ Pattern 18 | XSET trait|def=Some 19 | XSET derived|def=Real 20 | trait `trait^Component { 21 | trait `trait^ { 22 | `body^ 23 | } 24 | 25 | val `trait^SV('(.)', '\l\1', '')^^: `trait^ 26 | } 27 | 28 | trait `derived^`trait^Component extends `trait^Component { 29 | 30 | override lazy val `trait^SV('(.)', '\l\1', '')^^ = new `trait^ { 31 | `body2^ 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /ftplugin/screen.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'screen', 'ftplugin/screen.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: screen(1) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/scss.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'scss', 'ftplugin/scss.vim') 2 | finish 3 | endif 4 | 5 | if exists('b:did_indent') && b:did_indent 6 | " be kind. allow users to override this. Does it work? 7 | finish 8 | endif 9 | 10 | setlocal indentexpr=scss_indent#GetIndent(v:lnum) 11 | 12 | " Automatically insert the current comment leader after hitting 13 | " in Insert mode respectively after hitting 'o' or 'O' in Normal mode 14 | setlocal formatoptions+=ro 15 | 16 | " SCSS comments are either /* */ or // 17 | setlocal comments=s1:/*,mb:*,ex:*/,:// 18 | -------------------------------------------------------------------------------- /ftplugin/sensors.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'sensors', 'ftplugin/sensors.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: sensors.conf(5) - libsensors configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/services.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'services', 'ftplugin/services.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: services(5) - Internet network services list 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/setserial.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'setserial', 'ftplugin/setserial.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: setserial(8) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/sexplib.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'ocaml', 'ftplugin/sexplib.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: Sexplib 7 | " Maintainer: Markus Mottl 8 | " URL: https://github.com/ocaml/vim-ocaml 9 | " Last Change: 10 | " 2017 Apr 12 - First version (MM) 11 | 12 | if exists("b:did_ftplugin") 13 | finish 14 | endif 15 | let b:did_ftplugin=1 16 | 17 | " Comment string 18 | setl commentstring=;\ %s 19 | setl comments=n:; 20 | 21 | let b:undo_ftplugin = "setl cms< com<" 22 | -------------------------------------------------------------------------------- /ftplugin/sieve.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'sieve', 'ftplugin/sieve.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: Sieve filtering language input file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=s1:/*,mb:*,ex:*/,:# commentstring=#\ %s 21 | setlocal formatoptions-=t formatoptions+=croql 22 | 23 | let &cpo = s:cpo_save 24 | unlet s:cpo_save 25 | -------------------------------------------------------------------------------- /ftplugin/slim.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'slim', 'ftplugin/slim.vim') 2 | finish 3 | endif 4 | 5 | if exists("b:did_ftplugin") 6 | finish 7 | endif 8 | 9 | " Define some defaults in case the included ftplugins don't set them. 10 | let s:undo_ftplugin = "" 11 | 12 | " Override our defaults if these were set by an included ftplugin. 13 | if exists("b:undo_ftplugin") 14 | let s:undo_ftplugin = b:undo_ftplugin 15 | unlet b:undo_ftplugin 16 | endif 17 | 18 | runtime! ftplugin/ruby.vim ftplugin/ruby_*.vim ftplugin/ruby/*.vim 19 | let b:did_ftplugin = 1 20 | 21 | " Combine the new set of values with those previously included. 22 | if exists("b:undo_ftplugin") 23 | let s:undo_ftplugin = b:undo_ftplugin . " | " . s:undo_ftplugin 24 | endif 25 | 26 | let b:undo_ftplugin = "setl isk<" . " | " . s:undo_ftplugin 27 | 28 | setlocal iskeyword+=- 29 | setlocal commentstring=/%s 30 | -------------------------------------------------------------------------------- /ftplugin/slpconf.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'slpconf', 'ftplugin/slpconf.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: RFC 2614 - An API for Service Location configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:#,:; commentstring=#\ %s 21 | setlocal formatoptions-=t formatoptions+=croql 22 | 23 | let &cpo = s:cpo_save 24 | unlet s:cpo_save 25 | -------------------------------------------------------------------------------- /ftplugin/slpreg.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'slpreg', 'ftplugin/slpreg.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: RFC 2614 - An API for Service Location registration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:#,:; commentstring=#\ %s 21 | setlocal formatoptions-=t formatoptions+=croql 22 | 23 | let &cpo = s:cpo_save 24 | unlet s:cpo_save 25 | -------------------------------------------------------------------------------- /ftplugin/slpspi.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'slpspi', 'ftplugin/slpspi.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: RFC 2614 - An API for Service Location SPI file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:#,:; commentstring=#\ %s 21 | setlocal formatoptions-=t formatoptions+=croql 22 | 23 | let &cpo = s:cpo_save 24 | unlet s:cpo_save 25 | -------------------------------------------------------------------------------- /ftplugin/smt2.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'smt2', 'ftplugin/smt2.vim') 2 | finish 3 | endif 4 | 5 | setlocal iskeyword+=-,:,#,',$ 6 | setlocal commentstring=;%s 7 | 8 | " Mappings for solver functionality 9 | nnoremap r :call smt2#solver#Run() 10 | nnoremap R :call smt2#solver#RunAndShowResult() 11 | nnoremap v :call smt2#solver#PrintVersion() 12 | 13 | " Mappings for formatting functionality 14 | nnoremap f :call smt2#formatter#FormatCurrentParagraph() 15 | nnoremap F :call smt2#formatter#FormatAllParagraphs() 16 | -------------------------------------------------------------------------------- /ftplugin/solidity.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'solidity', 'ftplugin/solidity.vim') 2 | finish 3 | endif 4 | 5 | setlocal commentstring=//\ %s 6 | -------------------------------------------------------------------------------- /ftplugin/sshconfig.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'sshconfig', 'ftplugin/sshconfig.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: OpenSSH client configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/sudoers.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'sudoers', 'ftplugin/sudoers.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: sudoers(5) configuration files 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/svelte.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'svelte', 'ftplugin/svelte.vim') 2 | finish 3 | endif 4 | 5 | if exists("b:did_ftplugin") | finish | endif 6 | let b:did_ftplugin = 1 7 | 8 | if !has('nvim') 9 | setlocal matchpairs+=<:> 10 | endif 11 | 12 | if exists("loaded_matchit") 13 | let b:match_ignorecase = 1 14 | let b:match_words = '<:>,' . 15 | \ '<\@<=[ou]l\>[^>]*\%(>\|$\):<\@<=li\>:<\@<=/[ou]l>,' . 16 | \ '<\@<=dl\>[^>]*\%(>\|$\):<\@<=d[td]\>:<\@<=/dl>,' . 17 | \ '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>,' . 18 | \ '{#\(if\|each\)[^}]*}:{\:else[^}]*}:{\/\(if\|each\)},' . 19 | \ '{#await[^}]*}:{\:then[^}]*}:{\/await},' 20 | endif 21 | 22 | " Indent correctly with template string for vim-javascript/builtin 23 | " indentexpr 24 | let b:syng_str = '^\%(.*template\)\@!.*string\|special' 25 | let b:syng_strcom = '^\%(.*template\)\@!.*string\|comment\|regex\|special\|doc' 26 | -------------------------------------------------------------------------------- /ftplugin/swayconfig.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'sway', 'ftplugin/swayconfig.vim') 2 | finish 3 | endif 4 | 5 | setlocal commentstring=#\ %s 6 | -------------------------------------------------------------------------------- /ftplugin/swift.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'swift', 'ftplugin/swift.vim') 2 | finish 3 | endif 4 | 5 | setlocal commentstring=//\ %s 6 | " @-@ adds the literal @ to iskeyword for @IBAction and similar 7 | setlocal iskeyword+=@-@,# 8 | setlocal completefunc=syntaxcomplete#Complete 9 | -------------------------------------------------------------------------------- /ftplugin/swiftgyb.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'swiftgyb', 'ftplugin/swiftgyb.vim') 2 | finish 3 | endif 4 | 5 | " This source file is part of the Swift.org open source project 6 | " 7 | " Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors 8 | " Licensed under Apache License v2.0 with Runtime Library Exception 9 | " 10 | " See https://swift.org/LICENSE.txt for license information 11 | " See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 12 | " 13 | " Vim maintainer: Emir SARI 14 | 15 | runtime! ftplugin/swift.vim 16 | -------------------------------------------------------------------------------- /ftplugin/sxhkdrc.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'sxhkd', 'ftplugin/sxhkdrc.vim') 2 | finish 3 | endif 4 | 5 | if exists("b:did_ftplugin") 6 | finish 7 | endif 8 | 9 | setlocal cms=#%s 10 | 11 | if exists('b:undo_ftplugin') 12 | let b:undo_ftplugin .= "|setlocal commentstring<" 13 | else 14 | let b:undo_ftplugin = "setlocal commentstring<" 15 | endif 16 | -------------------------------------------------------------------------------- /ftplugin/sysctl.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'sysctl', 'ftplugin/sysctl.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: sysctl.conf(5) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:;,:# commentstring=#\ %s 21 | setlocal formatoptions-=t formatoptions+=croql 22 | 23 | let &cpo = s:cpo_save 24 | unlet s:cpo_save 25 | -------------------------------------------------------------------------------- /ftplugin/systemd.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'systemd', 'ftplugin/systemd.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: systemd unit files 7 | " Previous Maintainer: Will Woods 8 | " Latest Revision: Sep 25, 2019 9 | 10 | " These are, as it turns out, exactly the same settings as ftplugin/conf.vim 11 | 12 | if exists("b:did_ftplugin") 13 | finish 14 | endif 15 | let b:did_ftplugin = 1 16 | 17 | let s:cpo_save = &cpo 18 | set cpo&vim 19 | 20 | let b:undo_ftplugin = "setl com< cms< fo<" 21 | 22 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 23 | 24 | let &cpo = s:cpo_save 25 | unlet s:cpo_save 26 | 27 | -------------------------------------------------------------------------------- /ftplugin/tablegen.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'llvm', 'ftplugin/tablegen.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: LLVM TableGen 7 | " Maintainer: The LLVM team, http://llvm.org/ 8 | 9 | if exists("b:did_ftplugin") 10 | finish 11 | endif 12 | let b:did_ftplugin = 1 13 | 14 | setlocal matchpairs+=<:> 15 | setlocal softtabstop=2 shiftwidth=2 16 | setlocal expandtab 17 | -------------------------------------------------------------------------------- /ftplugin/terminfo.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'terminfo', 'ftplugin/terminfo.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: terminfo(5) definition 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/text.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'text', 'ftplugin/text.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin 6 | " Language: Text 7 | " Maintainer: David Barnett 8 | " Last Change: 2019 Jan 10 9 | 10 | if exists('b:did_ftplugin') 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let b:undo_ftplugin = 'setlocal comments< commentstring<' 16 | 17 | " We intentionally don't set formatoptions-=t since text should wrap as text. 18 | 19 | " Pseudo comment leaders to indent bulleted lists with '-' and '*'. And allow 20 | " for Mail quoted text with '>'. 21 | setlocal comments=fb:-,fb:*,n:> 22 | setlocal commentstring= 23 | -------------------------------------------------------------------------------- /ftplugin/tmux.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'tmux', 'ftplugin/tmux.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: tmux(1) configuration file 7 | " URL: https://github.com/ericpruitt/tmux.vim/ 8 | " Maintainer: Eric Pruitt 9 | " Last Changed: 2017 Mar 10 10 | 11 | if exists("b:did_ftplugin") 12 | finish 13 | endif 14 | let b:did_ftplugin = 1 15 | 16 | let b:undo_ftplugin = "setlocal comments< commentstring<" 17 | 18 | setlocal comments=:# 19 | setlocal commentstring=#\ %s 20 | -------------------------------------------------------------------------------- /ftplugin/toml.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'toml', 'ftplugin/toml.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin 6 | " Language: TOML 7 | " Homepage: https://github.com/cespare/vim-toml 8 | " Maintainer: Aman Verma 9 | " Author: Kevin Ballard 10 | " Last Change: Sep 21, 2021 11 | 12 | if exists('b:did_ftplugin') 13 | finish 14 | endif 15 | let b:did_ftplugin = 1 16 | 17 | let s:save_cpo = &cpo 18 | set cpo&vim 19 | let b:undo_ftplugin = 'setlocal commentstring< comments<' 20 | 21 | setlocal commentstring=#\ %s 22 | setlocal comments=:# 23 | 24 | let &cpo = s:save_cpo 25 | unlet s:save_cpo 26 | 27 | " vim: et sw=2 sts=2 28 | -------------------------------------------------------------------------------- /ftplugin/treetop.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'treetop', 'ftplugin/treetop.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: Treetop 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2011-03-14 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | setlocal comments=b:# commentstring=#\ %s formatoptions-=tcroq formatoptions+=l 19 | 20 | let b:undo_ftplugin = "setl com< cms< fo<" 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/tt2html.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'perl', 'ftplugin/tt2html.vim') 2 | finish 3 | endif 4 | 5 | " Language: TT2 embedded with HTML 6 | " Maintainer: vim-perl 7 | " Homepage: http://github.com/vim-perl/vim-perl 8 | " Bugs/requests: http://github.com/vim-perl/vim-perl/issues 9 | " Last Change: {{LAST_CHANGE}} 10 | 11 | " Only do this when not done yet for this buffer 12 | if exists("b:did_ftplugin") 13 | finish 14 | endif 15 | 16 | " Just use the HTML plugin for now. 17 | runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim 18 | -------------------------------------------------------------------------------- /ftplugin/typescriptreact.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'typescript', 'ftplugin/typescriptreact.vim') 2 | finish 3 | endif 4 | 5 | " modified from mxw/vim-jsx from html.vim 6 | if exists("loaded_matchit") && !exists('b:tsx_match_words') 7 | let b:match_ignorecase = 0 8 | let b:tsx_match_words = '(:),\[:\],{:},<:>,' . 9 | \ '<\@<=\([^/][^ \t>]*\)[^>]*\%(/\@\|$\):<\@<=/\1>' 10 | let b:match_words = exists('b:match_words') 11 | \ ? b:match_words . ',' . b:tsx_match_words 12 | \ : b:tsx_match_words 13 | endif 14 | 15 | " Comment formatting 16 | setlocal comments=s1:/*,mb:*,ex:*/,:// 17 | setlocal formatoptions-=t formatoptions+=croql 18 | 19 | set suffixesadd+=.tsx 20 | -------------------------------------------------------------------------------- /ftplugin/udevconf.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'udevconf', 'ftplugin/udevconf.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: udev(8) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/udevperm.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'udevperm', 'ftplugin/udevperm.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: udev(8) permissions file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/unison.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'unison', 'ftplugin/unison.vim') 2 | finish 3 | endif 4 | 5 | " Only do this when not done yet for this buffer 6 | if exists("b:did_ftplugin") 7 | finish 8 | endif 9 | let b:did_ftplugin = 1 10 | 11 | call unison#SetBufferDefaults() 12 | -------------------------------------------------------------------------------- /ftplugin/updatedb.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'updatedb', 'ftplugin/updatedb.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: updatedb.conf(5) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/vue.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'vue', 'ftplugin/vue.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin 6 | " Language: Vue.js 7 | " Maintainer: Eduardo San Martin Morote 8 | " Author: Adriaan Zonnenberg 9 | 10 | if exists('b:did_ftplugin') 11 | finish 12 | endif 13 | 14 | runtime! ftplugin/html.vim 15 | 16 | setlocal suffixesadd+=.vue 17 | 18 | if !exists('g:no_plugin_maps') && !exists('g:no_vue_maps') 19 | nnoremap [[ :call search('^<\(template\script\style\)', 'bW') 20 | nnoremap ]] :call search('^<\(template\script\style\)', 'W') 21 | nnoremap [] :call search('^script\style\)', 'bW') 22 | nnoremap ][ :call search('^script\style\)', 'W') 23 | endif 24 | -------------------------------------------------------------------------------- /ftplugin/wast.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'wast', 'ftplugin/wast.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: WebAssembly 7 | " Maintainer: rhysd 8 | " Last Change: Jul 29, 2018 9 | " For bugs, patches and license go to https://github.com/rhysd/vim-wasm 10 | 11 | if exists("b:did_ftplugin") 12 | finish 13 | endif 14 | let b:did_ftplugin = 1 15 | 16 | setlocal comments=s:(;,e:;),:;; 17 | setlocal commentstring=(;%s;) 18 | setlocal formatoptions-=t 19 | setlocal iskeyword+=$,.,/ 20 | 21 | let b:undo_ftplugin = "setlocal comments< commentstring< formatoptions< iskeyword<" 22 | -------------------------------------------------------------------------------- /ftplugin/xdefaults.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'xdefaults', 'ftplugin/xdefaults.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: X resources files like ~/.Xdefaults (xrdb) 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< inc< fo<" 19 | 20 | setlocal comments=s1:/*,mb:*,ex:*/,:! commentstring& inc& 21 | setlocal formatoptions-=t formatoptions+=croql 22 | 23 | let &cpo = s:cpo_save 24 | unlet s:cpo_save 25 | -------------------------------------------------------------------------------- /ftplugin/xf86conf.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'xf86conf', 'ftplugin/xf86conf.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: XFree86 Configuration File 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/xinetd.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'xinetd', 'ftplugin/xinetd.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: xinetd.conf(5) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< inc< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s include=^\\s*include 21 | setlocal formatoptions-=t formatoptions+=croql 22 | 23 | let &cpo = s:cpo_save 24 | unlet s:cpo_save 25 | -------------------------------------------------------------------------------- /ftplugin/xmodmap.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'xmodmap', 'ftplugin/xmodmap.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: xmodmap(1) definition file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2008-07-09 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< fo<" 19 | 20 | setlocal comments=:! commentstring=!\ %s formatoptions-=t formatoptions+=croql 21 | 22 | let &cpo = s:cpo_save 23 | unlet s:cpo_save 24 | -------------------------------------------------------------------------------- /ftplugin/xs.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'perl', 'ftplugin/xs.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: XS (Perl extension interface language) 7 | " Maintainer: vim-perl 8 | " Homepage: http://github.com/vim-perl/vim-perl 9 | " Bugs/requests: http://github.com/vim-perl/vim-perl/issues 10 | " Last Change: {{LAST_CHANGE}} 11 | 12 | " Only do this when not done yet for this buffer 13 | if exists("b:did_ftplugin") 14 | finish 15 | endif 16 | 17 | " Just use the C plugin for now. 18 | runtime! ftplugin/c.vim ftplugin/c_*.vim ftplugin/c/*.vim 19 | -------------------------------------------------------------------------------- /ftplugin/xslt.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'xslt', 'ftplugin/xslt.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: xslt 7 | " Maintainer: Dan Sharp 8 | " Last Changed: 20 Jan 2009 9 | " URL: http://dwsharp.users.sourceforge.net/vim/ftplugin 10 | 11 | if exists("b:did_ftplugin") | finish | endif 12 | 13 | runtime! ftplugin/xml.vim ftplugin/xml_*.vim ftplugin/xml/*.vim 14 | 15 | let b:did_ftplugin = 1 16 | 17 | " Change the :browse e filter to primarily show xsd-related files. 18 | if has("gui_win32") && exists("b:browsefilter") 19 | let b:browsefilter="XSLT Files (*.xsl,*.xslt)\t*.xsl;*.xslt\n" . b:browsefilter 20 | endif 21 | -------------------------------------------------------------------------------- /ftplugin/yaml.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'yaml', 'ftplugin/yaml.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype plugin file 6 | " Language: YAML (YAML Ain't Markup Language) 7 | " Previous Maintainer: Nikolai Weibull (inactive) 8 | " Last Change: 2020 Mar 02 9 | 10 | if exists("b:did_ftplugin") 11 | finish 12 | endif 13 | let b:did_ftplugin = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo&vim 17 | 18 | let b:undo_ftplugin = "setl com< cms< et< fo<" 19 | 20 | setlocal comments=:# commentstring=#\ %s expandtab 21 | setlocal formatoptions-=t formatoptions+=croql 22 | 23 | if !exists("g:yaml_recommended_style") || g:yaml_recommended_style != 0 24 | let b:undo_ftplugin .= " sw< sts<" 25 | setlocal shiftwidth=2 softtabstop=2 26 | endif 27 | 28 | let &cpo = s:cpo_save 29 | unlet s:cpo_save 30 | -------------------------------------------------------------------------------- /indent/Jenkinsfile.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'jenkins', 'indent/Jenkinsfile.vim') 2 | finish 3 | endif 4 | 5 | runtime indent/groovy.vim 6 | -------------------------------------------------------------------------------- /indent/aap.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'aap', 'indent/aap.vim') 2 | finish 3 | endif 4 | 5 | " Vim indent file 6 | " Language: Aap recipe 7 | " Maintainer: Bram Moolenaar 8 | " Last Change: 2005 Jun 24 9 | 10 | " Only load this indent file when no other was loaded. 11 | if exists("b:did_indent") 12 | finish 13 | endif 14 | 15 | " Works mostly like Python. 16 | runtime! indent/python.vim 17 | -------------------------------------------------------------------------------- /indent/ant.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'ant', 'indent/ant.vim') 2 | finish 3 | endif 4 | 5 | " Vim indent file 6 | " Language: ANT files 7 | " Maintainer: David Fishburn 8 | " Last Change: Thu May 15 2003 10:02:54 PM 9 | 10 | " Only load this indent file when no other was loaded. 11 | if exists("b:did_indent") 12 | finish 13 | endif 14 | 15 | " Use XML formatting rules 16 | runtime! indent/xml.vim 17 | -------------------------------------------------------------------------------- /indent/arduino.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'arduino', 'indent/arduino.vim') 2 | finish 3 | endif 4 | 5 | " Vim indent file 6 | " Language: Arduino 7 | " Maintainer: Kevin Sjöberg 8 | " Last Change: 2014 Feb 28 9 | 10 | " Only load this indent file when no other was loaded. 11 | if exists("b:did_indent") 12 | finish 13 | endif 14 | let b:did_indent = 1 15 | 16 | " C++ indenting is built-in, thus this is very simple 17 | setlocal cindent 18 | 19 | let b:undo_indent = "setl cin<" 20 | -------------------------------------------------------------------------------- /indent/automake.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'automake', 'indent/automake.vim') 2 | finish 3 | endif 4 | 5 | " Vim indent file 6 | " Language: automake 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2006-04-19 9 | 10 | if exists("b:did_indent") 11 | finish 12 | endif 13 | 14 | " same as makefile indenting for now. 15 | runtime! indent/make.vim 16 | -------------------------------------------------------------------------------- /indent/basic.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'basic', 'indent/basic.vim') 2 | finish 3 | endif 4 | 5 | " Vim indent file 6 | " Language: BASIC (QuickBASIC 4.5) 7 | " Maintainer: Doug Kearns 8 | " Last Change: 2022 Jan 24 9 | 10 | " Only load this indent file when no other was loaded. 11 | if exists("b:did_indent") 12 | finish 13 | endif 14 | 15 | runtime! indent/vb.vim 16 | -------------------------------------------------------------------------------- /indent/bib.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'bib', 'indent/bib.vim') 2 | finish 3 | endif 4 | 5 | " Vim indent file 6 | " Language: BibTeX 7 | " Maintainer: Dorai Sitaram 8 | " URL: http://www.ccs.neu.edu/~dorai/vimplugins/vimplugins.html 9 | " Last Change: 2005 Mar 28 10 | 11 | " Only do this when not done yet for this buffer 12 | if exists("b:did_indent") 13 | finish 14 | endif 15 | let b:did_indent = 1 16 | 17 | setlocal cindent 18 | 19 | let b:undo_indent = "setl cin<" 20 | -------------------------------------------------------------------------------- /indent/cabal.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'haskell', 'indent/cabal.vim') 2 | finish 3 | endif 4 | 5 | " indentation for cabal 6 | " 7 | " author: raichoo (raichoo@googlemail.com) 8 | " 9 | if exists('b:did_indent') 10 | finish 11 | endif 12 | 13 | let b:did_indent = 1 14 | 15 | if !exists('g:cabal_indent_section') 16 | "executable name 17 | ">>main-is: Main.hs 18 | ">>hs-source-dirs: src 19 | let g:cabal_indent_section = 2 20 | elseif exists('g:cabal_indent_section') && g:cabal_indent_section > 4 21 | let g:cabal_indent_section = 4 22 | endif 23 | 24 | setlocal indentexpr=GetCabalIndent() 25 | setlocal indentkeys=!^F,o,O, 26 | 27 | function! GetCabalIndent() 28 | let l:prevline = getline(v:lnum - 1) 29 | 30 | if l:prevline =~ '\C^\(executable\|library\|flag\|source-repository\|test-suite\|benchmark\)' 31 | return g:cabal_indent_section 32 | else 33 | return match(l:prevline, '\S') 34 | endif 35 | endfunction 36 | -------------------------------------------------------------------------------- /indent/ch.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'ch', 'indent/ch.vim') 2 | finish 3 | endif 4 | 5 | " Vim indent file 6 | " Language: Ch 7 | " Maintainer: SoftIntegration, Inc. 8 | " URL: http://www.softintegration.com/download/vim/indent/ch.vim 9 | " Last change: 2006 Apr 30 10 | " Created based on cpp.vim 11 | " 12 | " Ch is a C/C++ interpreter with many high level extensions 13 | 14 | 15 | " Only load this indent file when no other was loaded. 16 | if exists("b:did_indent") 17 | finish 18 | endif 19 | let b:did_indent = 1 20 | 21 | " Ch indenting is built-in, thus this is very simple 22 | setlocal cindent 23 | -------------------------------------------------------------------------------- /indent/cuda.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'cuda', 'indent/cuda.vim') 2 | finish 3 | endif 4 | 5 | " Vim indent file 6 | " Language: CUDA 7 | " Maintainer: Bram Moolenaar 8 | " Last Change: 2008 Nov 29 9 | 10 | " Only load this indent file when no other was loaded. 11 | if exists("b:did_indent") 12 | finish 13 | endif 14 | let b:did_indent = 1 15 | 16 | " It's just like C indenting 17 | setlocal cindent 18 | 19 | let b:undo_indent = "setl cin<" 20 | -------------------------------------------------------------------------------- /indent/dictconf.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'dictconf', 'indent/dictconf.vim') 2 | finish 3 | endif 4 | 5 | " Vim indent file 6 | " Language: dict(1) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2006-12-20 9 | 10 | if exists("b:did_indent") 11 | finish 12 | endif 13 | let b:did_indent = 1 14 | 15 | setlocal indentkeys=0{,0},!^F,o,O cinwords= autoindent smartindent 16 | setlocal nosmartindent 17 | inoremap # X# 18 | -------------------------------------------------------------------------------- /indent/dictdconf.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'dictdconf', 'indent/dictdconf.vim') 2 | finish 3 | endif 4 | 5 | " Vim indent file 6 | " Language: dictd(8) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2006-12-20 9 | 10 | if exists("b:did_indent") 11 | finish 12 | endif 13 | let b:did_indent = 1 14 | 15 | setlocal indentkeys=0{,0},!^F,o,O cinwords= autoindent smartindent 16 | setlocal nosmartindent 17 | inoremap # X# 18 | -------------------------------------------------------------------------------- /indent/dune.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'ocaml', 'indent/dune.vim') 2 | finish 3 | endif 4 | 5 | " Vim indent file 6 | " Language: dune 7 | " Maintainers: Markus Mottl 8 | " URL: https://github.com/ocaml/vim-ocaml 9 | " Last Change: 2020 Dec 31 10 | 11 | if exists("b:did_indent") 12 | finish 13 | endif 14 | let b:did_indent = 1 15 | 16 | " dune format-dune-file uses 1 space to indent 17 | setlocal softtabstop=1 shiftwidth=1 expandtab 18 | 19 | let b:undo_indent = "setl et< sts< sw<" 20 | -------------------------------------------------------------------------------- /indent/elixir.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'elixir', 'indent/elixir.vim') 2 | finish 3 | endif 4 | 5 | if exists("b:did_indent") 6 | finish 7 | end 8 | let b:did_indent = 1 9 | 10 | setlocal indentexpr=elixir#indent(v:lnum) 11 | 12 | setlocal indentkeys+==after,=catch,=do,=else,=end,=rescue, 13 | setlocal indentkeys+=*,=->,=\|>,=<>,0},0],0),> 14 | 15 | " TODO: @jbodah 2017-02-27: all operators should cause reindent when typed 16 | 17 | function! elixir#indent(lnum) 18 | return elixir#indent#indent(a:lnum) 19 | endfunction 20 | -------------------------------------------------------------------------------- /indent/ember-script.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'emberscript', 'indent/ember-script.vim') 2 | finish 3 | endif 4 | 5 | " Language: ember-script 6 | " Maintainer: Yulij Andreevich Lesov > 7 | " URL: http://github.com/yalesov/vim-ember-script 8 | " Version: 1.0.4 9 | " Last Change: 2016 Jul 6 10 | " License: ISC 11 | 12 | if exists('b:did_indent') 13 | finish 14 | endif 15 | 16 | runtime! indent/coffee.vim 17 | unlet! b:did_indent 18 | let b:did_indent = 1 19 | -------------------------------------------------------------------------------- /indent/emblem.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'emblem', 'indent/emblem.vim') 2 | finish 3 | endif 4 | 5 | " Language: emblem 6 | " Maintainer: Yulij Andreevich Lesov 7 | " URL: http://github.com/yalesov/vim-emblem 8 | " Version: 2.0.1 9 | " Last Change: 2016 Jul 6 10 | " License: ISC 11 | -------------------------------------------------------------------------------- /indent/fish.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'fish', 'indent/fish.vim') 2 | finish 3 | endif 4 | 5 | setlocal indentexpr=fish#Indent() 6 | setlocal indentkeys=!^F,o,O 7 | setlocal indentkeys+==end,=else,=case 8 | -------------------------------------------------------------------------------- /indent/freebasic.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'freebasic', 'indent/freebasic.vim') 2 | finish 3 | endif 4 | 5 | " Vim indent file 6 | " Language: FreeBASIC 7 | " Maintainer: Doug Kearns 8 | " Last Change: 2022 Jan 24 9 | 10 | " Only load this indent file when no other was loaded. 11 | if exists("b:did_indent") 12 | finish 13 | endif 14 | 15 | runtime! indent/vb.vim 16 | -------------------------------------------------------------------------------- /indent/glsl.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'glsl', 'indent/glsl.vim') 2 | finish 3 | endif 4 | 5 | " Language: OpenGL Shading Language 6 | " Maintainer: Sergii Tykhomyrov 7 | 8 | if exists("b:did_indent") 9 | finish 10 | endif 11 | 12 | setlocal autoindent cindent 13 | setlocal formatoptions+=roq 14 | setlocal cinoptions& 15 | 16 | " vim:set sts=2 sw=2 : 17 | -------------------------------------------------------------------------------- /indent/haxe.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'haxe', 'indent/haxe.vim') 2 | finish 3 | endif 4 | 5 | " Language: Haxe 6 | " Maintainer: None! Wanna improve this? 7 | " Last Change: 2007 Jan 22 8 | 9 | " Only load this indent file when no other was loaded. 10 | if exists("b:did_indent") 11 | finish 12 | endif 13 | let b:did_indent = 1 14 | 15 | " C indenting is not too bad. 16 | setlocal cindent 17 | setlocal cinoptions+=j1,J1 18 | setlocal indentkeys=0{,0},0),0],!^F,o,O,e 19 | let b:undo_indent = "setl cin<" 20 | -------------------------------------------------------------------------------- /indent/htmldjango.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'htmldjango', 'indent/htmldjango.vim') 2 | finish 3 | endif 4 | 5 | " Vim indent file 6 | " Language: Django HTML template 7 | " Maintainer: Dave Hodder 8 | " Last Change: 2007 Jan 25 9 | 10 | " Only load this indent file when no other was loaded. 11 | if exists("b:did_indent") 12 | finish 13 | endif 14 | 15 | " Use HTML formatting rules. 16 | runtime! indent/html.vim 17 | -------------------------------------------------------------------------------- /indent/jsonc.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'jsonc', 'indent/jsonc.vim') 2 | finish 3 | endif 4 | 5 | runtime! indent/json.vim 6 | -------------------------------------------------------------------------------- /indent/jsp.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'jsp', 'indent/jsp.vim') 2 | finish 3 | endif 4 | 5 | " Vim filetype indent file 6 | " Language: JSP files 7 | " Maintainer: David Fishburn 8 | " Version: 1.0 9 | " Last Change: Wed Nov 08 2006 11:08:05 AM 10 | 11 | " Only load this indent file when no other was loaded. 12 | if exists("b:did_indent") 13 | finish 14 | endif 15 | 16 | " If there has been no specific JSP indent script created, 17 | " use the default html indent script which will handle 18 | " html, javascript and most of the JSP constructs. 19 | runtime! indent/html.vim 20 | 21 | 22 | -------------------------------------------------------------------------------- /indent/less.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'less', 'indent/less.vim') 2 | finish 3 | endif 4 | 5 | " Vim indent file 6 | " Language: less 7 | " Maintainer: Alessandro Vioni 8 | " URL: https://github.com/genoma/vim-less 9 | " Last Change: 2014 November 24 10 | 11 | if exists("b:did_indent") 12 | finish 13 | endif 14 | 15 | runtime! indent/css.vim 16 | 17 | " vim:set sw=2: 18 | -------------------------------------------------------------------------------- /indent/lifelines.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'lifelines', 'indent/lifelines.vim') 2 | finish 3 | endif 4 | 5 | " Vim indent file 6 | " Language: LifeLines 7 | " Maintainer: Patrick Texier 8 | " Location: 9 | " Last Change: 2010 May 7 10 | 11 | " Only load this indent file when no other was loaded. 12 | if exists("b:did_indent") 13 | finish 14 | endif 15 | let b:did_indent = 1 16 | 17 | " LifeLines uses cindent without ; line terminator, C functions 18 | " declarations, C keywords, C++ formatting 19 | setlocal cindent 20 | setlocal cinwords="" 21 | setlocal cinoptions+=+0 22 | setlocal cinoptions+=p0 23 | setlocal cinoptions+=i0 24 | setlocal cinoptions+=t0 25 | setlocal cinoptions+=*500 26 | 27 | let b:undo_indent = "setl cin< cino< cinw<" 28 | " vim: ts=8 sw=4 29 | -------------------------------------------------------------------------------- /indent/lisp.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'lisp', 'indent/lisp.vim') 2 | finish 3 | endif 4 | 5 | " Vim indent file 6 | " Language: Lisp 7 | " Maintainer: Sergey Khorev 8 | " URL: http://sites.google.com/site/khorser/opensource/vim 9 | " Last Change: 2012 Jan 10 10 | 11 | " Only load this indent file when no other was loaded. 12 | if exists("b:did_indent") 13 | finish 14 | endif 15 | let b:did_indent = 1 16 | 17 | setlocal ai nosi 18 | 19 | let b:undo_indent = "setl ai< si<" 20 | -------------------------------------------------------------------------------- /indent/litcoffee.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'coffee-script', 'indent/litcoffee.vim') 2 | finish 3 | endif 4 | 5 | if exists('b:did_indent') 6 | finish 7 | endif 8 | 9 | runtime! indent/coffee.vim 10 | 11 | let b:did_indent = 1 12 | 13 | setlocal indentexpr=GetLitCoffeeIndent() 14 | 15 | if exists('*GetLitCoffeeIndent') 16 | finish 17 | endif 18 | 19 | function GetLitCoffeeIndent() 20 | if searchpair('^ \|\t', '', '$', 'bWnm') > 0 21 | return GetCoffeeIndent(v:lnum) 22 | else 23 | return -1 24 | endif 25 | endfunc 26 | 27 | -------------------------------------------------------------------------------- /indent/mail.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'mail', 'indent/mail.vim') 2 | finish 3 | endif 4 | 5 | " Vim indent file 6 | " Language: Mail 7 | " Maintainer: Bram Moolenaar 8 | " Last Change: 2021 Sep 26 9 | 10 | if exists("b:did_indent") 11 | finish 12 | endif 13 | let b:did_indent = 1 14 | 15 | " What works best is auto-indenting, disable other indenting. 16 | " For formatting see the ftplugin. 17 | setlocal autoindent nosmartindent nocindent indentexpr= 18 | 19 | let b:undo_indent = "setl ai< cin< inde< si<" 20 | -------------------------------------------------------------------------------- /indent/mf.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'mf', 'indent/mf.vim') 2 | finish 3 | endif 4 | 5 | " METAFONT indent file 6 | " Language: METAFONT 7 | " Maintainer: Nicola Vitacolonna 8 | " Last Change: 2016 Oct 1 9 | 10 | runtime! indent/mp.vim 11 | -------------------------------------------------------------------------------- /indent/mustache.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'handlebars', 'indent/mustache.vim') 2 | finish 3 | endif 4 | 5 | runtime! indent/handlebars.vim 6 | -------------------------------------------------------------------------------- /indent/nftables.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'nftables', 'indent/nftables.vim') 2 | finish 3 | endif 4 | 5 | " Only load this indent file when no other was loaded. 6 | if exists('b:did_indent') 7 | finish 8 | endif 9 | let b:did_indent = 1 10 | 11 | setlocal cindent 12 | setlocal cinoptions=L0,(0,Ws,J1,j1,+N 13 | setlocal cinkeys=0{,0},!^F,o,O,0[,0] 14 | " Don't think cinwords will actually do anything at all... never mind 15 | setlocal cinwords=table,chain 16 | 17 | " Some preliminary settings 18 | setlocal nolisp " Make sure lisp indenting doesn't supersede us 19 | setlocal autoindent " indentexpr isn't much help otherwise 20 | " Also do indentkeys, otherwise # gets shoved to column 0 :-/ 21 | setlocal indentkeys=0{,0},!^F,o,O,0[,0] 22 | -------------------------------------------------------------------------------- /indent/nginx.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'nginx', 'indent/nginx.vim') 2 | finish 3 | endif 4 | 5 | if exists("b:did_indent") 6 | finish 7 | endif 8 | let b:did_indent = 1 9 | 10 | setlocal indentexpr= 11 | 12 | " cindent actually works for nginx' simple file structure 13 | setlocal cindent 14 | " Just make sure that the comments are not reset as defs would be. 15 | setlocal cinkeys-=0# 16 | 17 | let b:undo_indent = "setl cin< cink< inde<" 18 | -------------------------------------------------------------------------------- /indent/odin.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'odin', 'indent/odin.vim') 2 | finish 3 | endif 4 | 5 | if exists("b:did_indent") 6 | finish 7 | endif 8 | let b:did_indent = 1 9 | 10 | setlocal nosmartindent 11 | setlocal nolisp 12 | setlocal autoindent 13 | 14 | setlocal indentexpr=GetOdinIndent(v:lnum) 15 | 16 | if exists("*GetOdinIndent") 17 | finish 18 | endif 19 | 20 | function! GetOdinIndent(lnum) 21 | let prev = prevnonblank(a:lnum-1) 22 | 23 | if prev == 0 24 | return 0 25 | endif 26 | 27 | let prevline = getline(prev) 28 | let line = getline(a:lnum) 29 | 30 | let ind = indent(prev) 31 | 32 | if prevline =~ '[({]\s*$' 33 | let ind += &sw 34 | endif 35 | 36 | if line =~ '^\s*[)}]' 37 | let ind -= &sw 38 | endif 39 | 40 | return ind 41 | endfunction 42 | -------------------------------------------------------------------------------- /indent/opencl.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'opencl', 'indent/opencl.vim') 2 | finish 3 | endif 4 | 5 | " Only load this indent file when no other was loaded. 6 | if exists("b:did_indent") 7 | finish 8 | endif 9 | 10 | if version > 600 11 | runtime! indent/c.vim 12 | endif 13 | 14 | let b:did_indent = 1 15 | -------------------------------------------------------------------------------- /indent/proto.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'protobuf', 'indent/proto.vim') 2 | finish 3 | endif 4 | 5 | " Vim indent file 6 | " Language: Protobuf 7 | " Maintainer: Johannes Zellner 8 | " Last Change: Fri, 15 Mar 2002 07:53:54 CET 9 | 10 | " Only load this indent file when no other was loaded. 11 | if exists("b:did_indent") 12 | finish 13 | endif 14 | let b:did_indent = 1 15 | 16 | " Protobuf is like indenting C 17 | setlocal cindent 18 | setlocal expandtab 19 | setlocal shiftwidth=2 20 | 21 | let b:undo_indent = "setl cin<" 22 | -------------------------------------------------------------------------------- /indent/ps1.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'powershell', 'indent/ps1.vim') 2 | finish 3 | endif 4 | 5 | " Vim indent file 6 | " Language: Windows PowerShell 7 | " Maintainer: Peter Provost 8 | " Version: 2.10 9 | " Project Repository: https://github.com/PProvost/vim-ps1 10 | " Vim Script Page: http://www.vim.org/scripts/script.php?script_id=1327" 11 | 12 | " Only load this indent file when no other was loaded. 13 | if exists("b:did_indent") 14 | finish 15 | endif 16 | let b:did_indent = 1 17 | 18 | " smartindent is good enough for powershell 19 | setlocal smartindent 20 | " disable the indent removal for # marks 21 | inoremap # X# 22 | 23 | let b:undo_indent = "setl si<" 24 | 25 | -------------------------------------------------------------------------------- /indent/pyrex.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'pyrex', 'indent/pyrex.vim') 2 | finish 3 | endif 4 | 5 | " Vim indent file 6 | " Language: Pyrex 7 | " Maintainer: Marco Barisione 8 | " URL: http://marcobari.altervista.org/pyrex_vim.html 9 | " Last Change: 2005 Jun 24 10 | 11 | " Only load this indent file when no other was loaded. 12 | if exists("b:did_indent") 13 | finish 14 | endif 15 | 16 | " Use Python formatting rules 17 | runtime! indent/python.vim 18 | -------------------------------------------------------------------------------- /indent/racket.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'racket', 'indent/racket.vim') 2 | finish 3 | endif 4 | 5 | " Language: Racket 6 | " Maintainer: Will Langstroth 7 | " URL: http://github.com/wlangstroth/vim-racket 8 | 9 | if exists("b:did_indent") 10 | finish 11 | endif 12 | let b:did_indent = 1 13 | 14 | setlocal ai nosi 15 | 16 | let b:undo_indent = "setl ai< si<" 17 | -------------------------------------------------------------------------------- /indent/razor.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'razor', 'indent/razor.vim') 2 | finish 3 | endif 4 | 5 | " Vim indent file 6 | " Language: Razor 7 | " Maintainer: Adam Clark 8 | " Last Change: 2013 Jan 24 9 | 10 | if exists("b:did_indent") 11 | finish 12 | endif 13 | runtime! indent/html.vim 14 | runtime! indent/javscript.vim 15 | -------------------------------------------------------------------------------- /indent/scheme.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'scheme', 'indent/scheme.vim') 2 | finish 3 | endif 4 | 5 | " Vim indent file 6 | " Language: Scheme 7 | " Last Change: 2018 Jan 31 8 | " Maintainer: Evan Hanson 9 | " Previous Maintainer: Sergey Khorev 10 | " URL: https://foldling.org/vim/indent/scheme.vim 11 | 12 | " Only load this indent file when no other was loaded. 13 | if exists("b:did_indent") 14 | finish 15 | endif 16 | 17 | " Use the Lisp indenting 18 | runtime! indent/lisp.vim 19 | -------------------------------------------------------------------------------- /indent/terraform.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'terraform', 'indent/terraform.vim') 2 | finish 3 | endif 4 | 5 | " Only load this file if no other indent file was loaded 6 | if exists('b:did_indent') 7 | finish 8 | endif 9 | runtime! indent/hcl.vim 10 | -------------------------------------------------------------------------------- /indent/velocity.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'velocity', 'indent/velocity.vim') 2 | finish 3 | endif 4 | 5 | if exists("b:did_indent") 6 | finish 7 | endif 8 | 9 | runtime! indent/html.vim 10 | -------------------------------------------------------------------------------- /indent/vroom.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'vroom', 'indent/vroom.vim') 2 | finish 3 | endif 4 | 5 | " Vim indent file 6 | " Language: Vroom (vim testing and executable documentation) 7 | " Maintainer: David Barnett (https://github.com/google/vim-ft-vroom) 8 | " Last Change: 2014 Jul 23 9 | 10 | if exists('b:did_indent') 11 | finish 12 | endif 13 | let b:did_indent = 1 14 | 15 | let s:cpo_save = &cpo 16 | set cpo-=C 17 | 18 | 19 | let b:undo_indent = 'setlocal autoindent<' 20 | 21 | setlocal autoindent 22 | 23 | 24 | let &cpo = s:cpo_save 25 | unlet s:cpo_save 26 | -------------------------------------------------------------------------------- /indent/wast.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'wast', 'indent/wast.vim') 2 | finish 3 | endif 4 | 5 | " Vim indent file 6 | " Language: WebAssembly 7 | " Maintainer: rhysd 8 | " Last Change: Jul 29, 2018 9 | " For bugs, patches and license go to https://github.com/rhysd/vim-wasm 10 | 11 | if exists("b:did_indent") 12 | finish 13 | endif 14 | let b:did_indent = 1 15 | 16 | " WebAssembly text format is S-expression. We can reuse LISP indentation 17 | " logic. 18 | setlocal indentexpr=lispindent('.') 19 | setlocal noautoindent nosmartindent 20 | 21 | let b:undo_indent = "setl lisp< indentexpr<" 22 | -------------------------------------------------------------------------------- /indent/xhtml.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'xhtml', 'indent/xhtml.vim') 2 | finish 3 | endif 4 | 5 | " Vim indent file 6 | " Language: XHTML 7 | " Maintainer: Bram Moolenaar (for now) 8 | " Last Change: 2005 Jun 24 9 | 10 | " Only load this indent file when no other was loaded. 11 | if exists("b:did_indent") 12 | finish 13 | endif 14 | 15 | " Handled like HTML for now. 16 | runtime! indent/html.vim 17 | -------------------------------------------------------------------------------- /indent/xsd.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'xsd', 'indent/xsd.vim') 2 | finish 3 | endif 4 | 5 | " Vim indent file 6 | " Language: .xsd files (XML Schema) 7 | " Maintainer: Nobody 8 | " Last Change: 2005 Jun 09 9 | 10 | " Only load this indent file when no other was loaded. 11 | if exists("b:did_indent") 12 | finish 13 | endif 14 | 15 | " Use XML formatting rules 16 | runtime! indent/xml.vim 17 | 18 | -------------------------------------------------------------------------------- /indent/xslt.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'xslt', 'indent/xslt.vim') 2 | finish 3 | endif 4 | 5 | " Vim indent file 6 | " Language: XSLT .xslt files 7 | " Maintainer: David Fishburn 8 | " Last Change: Wed May 14 2003 8:48:41 PM 9 | 10 | " Only load this indent file when no other was loaded. 11 | if exists("b:did_indent") 12 | finish 13 | endif 14 | 15 | " Use XML formatting rules 16 | runtime! indent/xml.vim 17 | 18 | -------------------------------------------------------------------------------- /syntax/aidl.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'aidl', 'syntax/aidl.vim') 2 | finish 3 | endif 4 | 5 | " Vim syntax file 6 | " Language: aidl (Android Interface Definition Language) 7 | " https://developer.android.com/guide/components/aidl 8 | " Maintainer: Dominique Pelle 9 | " LastChange: 2020/12/03 10 | 11 | " Quit when a syntax file was already loaded. 12 | if exists("b:current_syntax") 13 | finish 14 | endif 15 | 16 | source :p:h/java.vim 17 | 18 | syn keyword aidlParamDir in out inout 19 | syn keyword aidlKeyword const oneway parcelable 20 | 21 | " Needed for the 'in', 'out', 'inout' keywords to be highlighted. 22 | syn cluster javaTop add=aidlParamDir 23 | 24 | hi def link aidlParamDir StorageClass 25 | hi def link aidlKeyword Keyword 26 | 27 | let b:current_syntax = "aidl" 28 | -------------------------------------------------------------------------------- /syntax/basic/decorator.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'typescript', 'syntax/basic/decorator.vim') 2 | finish 3 | endif 4 | 5 | syntax match typescriptDecorator /@\([_$a-zA-Z][_$a-zA-Z0-9]*\.\)*[_$a-zA-Z][_$a-zA-Z0-9]*\>/ 6 | \ nextgroup=typescriptFuncCallArg,typescriptTypeArguments 7 | \ contains=@_semantic,typescriptDotNotation 8 | -------------------------------------------------------------------------------- /syntax/basic/patch.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'typescript', 'syntax/basic/patch.vim') 2 | finish 3 | endif 4 | 5 | " patch for generated code 6 | syntax keyword typescriptGlobal Promise 7 | \ nextgroup=typescriptGlobalPromiseDot,typescriptFuncCallArg,typescriptTypeArguments oneline 8 | syntax keyword typescriptGlobal Map WeakMap 9 | \ nextgroup=typescriptGlobalPromiseDot,typescriptFuncCallArg,typescriptTypeArguments oneline 10 | -------------------------------------------------------------------------------- /syntax/brewfile.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'brewfile', 'syntax/brewfile.vim') 2 | finish 3 | endif 4 | 5 | " Vim syntax file 6 | " Language: Brewfile 7 | " Maintainer: Baptiste Fontaine 8 | " URL: https://github.com/bfontaine/Brewfile.vim 9 | " Last Change: 2015 Jun 18 10 | 11 | if exists("b:current_syntax") 12 | finish 13 | endif 14 | 15 | " Load ruby syntax 16 | source $VIMRUNTIME/syntax/ruby.vim 17 | unlet b:current_syntax 18 | 19 | syn keyword brewfileDirective brew cask tap mas cask_args 20 | 21 | hi def link brewfileDirective Keyword 22 | 23 | let b:current_syntax = "brewfile" 24 | -------------------------------------------------------------------------------- /syntax/bsdl.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'bsdl', 'syntax/bsdl.vim') 2 | finish 3 | endif 4 | 5 | " Vim syntax file 6 | " Language: Boundary Scan Description Language (BSDL) 7 | " Maintainer: Daniel Kho 8 | " Last Changed: 2020 Mar 19 by Daniel Kho 9 | 10 | " quit when a syntax file was already loaded 11 | if exists("b:current_syntax") 12 | finish 13 | endif 14 | 15 | " Read in VHDL syntax files 16 | runtime! syntax/vhdl.vim 17 | unlet b:current_syntax 18 | 19 | let b:current_syntax = "bsdl" 20 | 21 | " vim: ts=8 22 | -------------------------------------------------------------------------------- /syntax/bzl.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'bzl', 'syntax/bzl.vim') 2 | finish 3 | endif 4 | 5 | " Vim syntax file 6 | " Language: Bazel (http://bazel.io) 7 | " Maintainer: David Barnett (https://github.com/google/vim-ft-bzl) 8 | " Last Change: 2015 Aug 11 9 | 10 | if exists('b:current_syntax') 11 | finish 12 | endif 13 | 14 | 15 | runtime! syntax/python.vim 16 | 17 | let b:current_syntax = 'bzl' 18 | 19 | syn region bzlRule start='^\w\+($' end='^)\n*' transparent fold 20 | syn region bzlList start='\[' end='\]' transparent fold 21 | -------------------------------------------------------------------------------- /syntax/cabal.vim: -------------------------------------------------------------------------------- 1 | " Polyglot metafile 2 | source :h/cabal-1.vim 3 | source :h/cabal-2.vim 4 | -------------------------------------------------------------------------------- /syntax/chaskell.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'chaskell', 'syntax/chaskell.vim') 2 | finish 3 | endif 4 | 5 | " Vim syntax file 6 | " Language: Haskell supporting c2hs binding hooks 7 | " Maintainer: Armin Sander 8 | " Last Change: 2001 November 1 9 | " 10 | " 2001 November 1: Changed commands for sourcing haskell.vim 11 | 12 | " Enable binding hooks 13 | let b:hs_chs=1 14 | 15 | " Include standard Haskell highlighting 16 | runtime! syntax/haskell.vim 17 | 18 | " vim: ts=8 19 | -------------------------------------------------------------------------------- /syntax/dd.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'dlang', 'syntax/dd.vim') 2 | finish 3 | endif 4 | 5 | runtime! /syntax/ddoc.vim 6 | -------------------------------------------------------------------------------- /syntax/dylanlid.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'dylanlid', 'syntax/dylanlid.vim') 2 | finish 3 | endif 4 | 5 | " Vim syntax file 6 | " Language: Dylan Library Interface Files 7 | " Authors: Justus Pendleton 8 | " Brent Fulgham 9 | " Last Change: Fri Sep 29 13:50:20 PDT 2000 10 | " 11 | 12 | " quit when a syntax file was already loaded 13 | if exists("b:current_syntax") 14 | finish 15 | endif 16 | 17 | syn case ignore 18 | 19 | syn region dylanlidInfo matchgroup=Statement start="^" end=":" oneline 20 | syn region dylanlidEntry matchgroup=Statement start=":%" end="$" oneline 21 | 22 | syn sync lines=50 23 | 24 | " Define the default highlighting. 25 | " Only when an item doesn't have highlighting yet 26 | 27 | hi def link dylanlidInfo Type 28 | hi def link dylanlidEntry String 29 | 30 | 31 | let b:current_syntax = "dylanlid" 32 | 33 | " vim:ts=8 34 | -------------------------------------------------------------------------------- /syntax/flow.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'javascript', 'syntax/flow.vim') 2 | finish 3 | endif 4 | 5 | runtime syntax/javascript.vim 6 | runtime extras/flow.vim 7 | -------------------------------------------------------------------------------- /syntax/gitsendemail.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'git', 'syntax/gitsendemail.vim') 2 | finish 3 | endif 4 | 5 | " Vim syntax file 6 | " Language: git send-email message 7 | " Maintainer: Tim Pope 8 | " Filenames: .gitsendemail.* 9 | " Last Change: 2016 Aug 29 10 | 11 | if exists("b:current_syntax") 12 | finish 13 | endif 14 | 15 | runtime! syntax/mail.vim 16 | unlet! b:current_syntax 17 | syn include @gitsendemailDiff syntax/diff.vim 18 | syn region gitsendemailDiff start=/\%(^diff --\%(git\|cc\|combined\) \)\@=/ end=/^-- %/ fold contains=@gitsendemailDiff 19 | 20 | syn case match 21 | 22 | syn match gitsendemailComment "\%^From.*#.*" 23 | syn match gitsendemailComment "^GIT:.*" 24 | 25 | hi def link gitsendemailComment Comment 26 | 27 | let b:current_syntax = "gitsendemail" 28 | -------------------------------------------------------------------------------- /syntax/godebugoutput.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'go', 'syntax/godebugoutput.vim') 2 | finish 3 | endif 4 | 5 | if exists("b:current_syntax") 6 | finish 7 | endif 8 | 9 | syn match godebugOutputErr '^ERR:.*' 10 | syn match godebugOutputOut '^OUT:.*' 11 | 12 | let b:current_syntax = "godebugoutput" 13 | 14 | hi def link godebugOutputErr Comment 15 | hi def link godebugOutputOut Normal 16 | 17 | " vim: sw=2 ts=2 et 18 | -------------------------------------------------------------------------------- /syntax/godebugstacktrace.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'go', 'syntax/godebugstacktrace.vim') 2 | finish 3 | endif 4 | 5 | if exists("b:current_syntax") 6 | finish 7 | endif 8 | 9 | syn match godebugStacktrace '^\S\+' 10 | 11 | let b:current_syntax = "godebugoutput" 12 | 13 | hi def link godebugStacktrace SpecialKey 14 | 15 | " vim: sw=2 ts=2 et 16 | -------------------------------------------------------------------------------- /syntax/godebugvariables.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'go', 'syntax/godebugvariables.vim') 2 | finish 3 | endif 4 | 5 | if exists("b:current_syntax") 6 | finish 7 | endif 8 | 9 | syn match godebugTitle '^#.*' 10 | syn match godebugVariables '^\s*\S\+\ze:' 11 | 12 | syn keyword goType chan map bool string error 13 | syn keyword goSignedInts int int8 int16 int32 int64 rune 14 | syn keyword goUnsignedInts byte uint uint8 uint16 uint32 uint64 uintptr 15 | syn keyword goFloats float32 float64 16 | syn keyword goComplexes complex64 complex128 17 | 18 | syn keyword goBoolean true false 19 | 20 | let b:current_syntax = "godebugvariables" 21 | 22 | hi def link godebugTitle Underlined 23 | hi def link godebugVariables Statement 24 | hi def link goType Type 25 | hi def link goBoolean Boolean 26 | 27 | " vim: sw=2 ts=2 et 28 | -------------------------------------------------------------------------------- /syntax/gohtmltmpl.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'go', 'syntax/gohtmltmpl.vim') 2 | finish 3 | endif 4 | 5 | if exists("b:current_syntax") 6 | finish 7 | endif 8 | 9 | if !exists("g:main_syntax") 10 | let g:main_syntax = 'html' 11 | endif 12 | 13 | runtime! syntax/gotexttmpl.vim 14 | runtime! syntax/html.vim 15 | unlet b:current_syntax 16 | 17 | syn cluster htmlPreproc add=gotplAction,goTplComment 18 | 19 | let b:current_syntax = "gohtmltmpl" 20 | 21 | " vim: sw=2 ts=2 et 22 | -------------------------------------------------------------------------------- /syntax/hostsaccess.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'hostsaccess', 'syntax/hostsaccess.vim') 2 | finish 3 | endif 4 | 5 | " Vim syntax file 6 | " Language: hosts.deny, hosts.allow configuration files 7 | " Maintainer: Thilo Six 8 | " Last Change: 2011 May 01 9 | " Derived From: conf.vim 10 | " Credits: Bram Moolenaar 11 | " 12 | " This file is there to get at least a minimal highlighting. 13 | " A later version may be improved. 14 | 15 | 16 | " Quit when a (custom) syntax file was already loaded 17 | if exists("b:current_syntax") 18 | finish 19 | endif 20 | 21 | " For a starter we just use conf.vim for highlighting 22 | runtime! syntax/conf.vim 23 | unlet b:current_syntax 24 | 25 | 26 | let b:current_syntax = "hostsaccess" 27 | " vim: ts=8 sw=2 28 | -------------------------------------------------------------------------------- /syntax/html/electron.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'html5', 'syntax/html/electron.vim') 2 | finish 3 | endif 4 | 5 | " Vim syntax file 6 | " Language: Electron 7 | " Maintainer: othree 8 | " URL: https://github.com/othree/html5.vim 9 | " Last Change: 2017-03-15 10 | " License: MIT 11 | 12 | " https://electron.atom.io/docs/api/webview-tag/ 13 | syn keyword htmlTagName contained webview 14 | 15 | syn keyword htmlArg contained autosize nodeintegration plugins preload httpreferrer 16 | syn keyword htmlArg contained useragent disablewebsecurity partition allowpopups 17 | syn keyword htmlArg contained webpreferences blinkfeatures disableblinkfeatures 18 | syn keyword htmlArg contained guestinstance disableguestresize 19 | 20 | -------------------------------------------------------------------------------- /syntax/html/rdfa.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'html5', 'syntax/html/rdfa.vim') 2 | finish 3 | endif 4 | 5 | " Vim syntax file 6 | " Language: RDFa 7 | " Maintainer: othree 8 | " URL: http://github.com/othree/html5-syntax.vim 9 | " Last Change: 2012-06-08 10 | " License: MIT 11 | " Changes: update to Rec 07 June 2012 12 | 13 | " RDFa 14 | " http://www.w3.org/TR/rdfa-syntax/#s_syntax 15 | syn keyword htmlArg contained about content datatype href inlist prefix property rel resource rev src typeof vocab 16 | -------------------------------------------------------------------------------- /syntax/htmlm4.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'htmlm4', 'syntax/htmlm4.vim') 2 | finish 3 | endif 4 | 5 | " Vim syntax file 6 | " Language: HTML and M4 7 | " Maintainer: Claudio Fleiner 8 | " URL: http://www.fleiner.com/vim/syntax/htmlm4.vim 9 | " Last Change: 2001 Apr 30 10 | 11 | " quit when a syntax file was already loaded 12 | if exists("b:current_syntax") 13 | finish 14 | endif 15 | 16 | " we define it here so that included files can test for it 17 | if !exists("main_syntax") 18 | let main_syntax='htmlm4' 19 | endif 20 | 21 | runtime! syntax/html.vim 22 | unlet b:current_syntax 23 | syn case match 24 | 25 | runtime! syntax/m4.vim 26 | 27 | unlet b:current_syntax 28 | syn cluster htmlPreproc add=@m4Top 29 | syn cluster m4StringContents add=htmlTag,htmlEndTag 30 | 31 | let b:current_syntax = "htmlm4" 32 | 33 | if main_syntax == 'htmlm4' 34 | unlet main_syntax 35 | endif 36 | -------------------------------------------------------------------------------- /syntax/libao.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'libao', 'syntax/libao.vim') 2 | finish 3 | endif 4 | 5 | " Vim syntax file 6 | " Language: libao.conf(5) configuration file 7 | " Previous Maintainer: Nikolai Weibull 8 | " Latest Revision: 2006-04-19 9 | 10 | if exists("b:current_syntax") 11 | finish 12 | endif 13 | 14 | let s:cpo_save = &cpo 15 | set cpo&vim 16 | 17 | syn keyword libaoTodo contained TODO FIXME XXX NOTE 18 | 19 | syn region libaoComment display oneline start='^\s*#' end='$' 20 | \ contains=libaoTodo,@Spell 21 | 22 | syn keyword libaoKeyword default_driver 23 | 24 | hi def link libaoTodo Todo 25 | hi def link libaoComment Comment 26 | hi def link libaoKeyword Keyword 27 | 28 | let b:current_syntax = "libao" 29 | 30 | let &cpo = s:cpo_save 31 | unlet s:cpo_save 32 | -------------------------------------------------------------------------------- /syntax/lidris.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'idris', 'syntax/lidris.vim') 2 | finish 3 | endif 4 | 5 | " Vim syntax file 6 | " Language: Literate Idris 7 | " Maintainer: Idris Hackers (https://github.com/idris-hackers/idris-vim) 8 | " Last Change: 2014 Mar 4 9 | " Version: 0.1 10 | " 11 | " This is just a minimal adaption of the Literate Haskell syntax file. 12 | 13 | 14 | " Read Idris highlighting. 15 | if version < 600 16 | syntax include @idrisTop :p:h/idris.vim 17 | else 18 | syntax include @idrisTop syntax/idris.vim 19 | endif 20 | 21 | " Recognize blocks of Bird tracks, highlight as Idris. 22 | syntax region lidrisBirdTrackBlock start="^>" end="\%(^[^>]\)\@=" contains=@idrisTop,lidrisBirdTrack 23 | syntax match lidrisBirdTrack "^>" contained 24 | hi def link lidrisBirdTrack Comment 25 | 26 | let b:current_syntax = "lidris" 27 | -------------------------------------------------------------------------------- /syntax/lidris2.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'idris2', 'syntax/lidris2.vim') 2 | finish 3 | endif 4 | 5 | " Vim syntax file 6 | " Language: Literate Idris 2 7 | " Maintainer: Idris Hackers (https://github.com/edwinb/idris2-vim) 8 | " Last Change: 2020 May 19 9 | " Version: 0.1 10 | " 11 | " This is just a minimal adaption of the Literate Haskell syntax file. 12 | 13 | 14 | " Read Idris highlighting. 15 | if version < 600 16 | syntax include @idrisTop :p:h/idris2.vim 17 | else 18 | syntax include @idrisTop syntax/idris2.vim 19 | endif 20 | 21 | " Recognize blocks of Bird tracks, highlight as Idris. 22 | syntax region lidrisBirdTrackBlock start="^>" end="\%(^[^>]\)\@=" contains=@idrisTop,lidrisBirdTrack 23 | syntax match lidrisBirdTrack "^>" contained 24 | hi def link lidrisBirdTrack Comment 25 | 26 | let b:current_syntax = "lidris2" 27 | -------------------------------------------------------------------------------- /syntax/merlin.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'reason', 'syntax/merlin.vim') 2 | finish 3 | endif 4 | 5 | " Vim syntax file for editing merlin project files 6 | if exists("b:current_syntax") 7 | finish 8 | endif 9 | 10 | syn keyword merlinKeyword S B SUFFIX PKG REC EXT PRJ FLG CMI CMT 11 | syn match merlinComment "\v#.*$" 12 | 13 | hi link merlinKeyword Keyword 14 | hi link merlinComment Comment 15 | 16 | let b:current_syntax = "merlin" 17 | 18 | -------------------------------------------------------------------------------- /syntax/mustache.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'handlebars', 'syntax/mustache.vim') 2 | finish 3 | endif 4 | 5 | runtime! syntax/handlebars.vim 6 | -------------------------------------------------------------------------------- /syntax/rnoweb.vim: -------------------------------------------------------------------------------- 1 | " Polyglot metafile 2 | source :h/rnoweb-1.vim 3 | source :h/rnoweb-2.vim 4 | -------------------------------------------------------------------------------- /syntax/smhl.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'typescript', 'syntax/smhl.vim') 2 | finish 3 | endif 4 | 5 | syntax cluster _semantic contains=_semantic1,_semantic2,_semantic3,_semantic4,_semantic5,_semantic6,_semantic7,_semantic8,_semantic9,_semantic10,_semantic11,_semantic12,_semantic13,_semantic14,_semantic15,_semantic16,_semantic17,_semantic18,_semantic19,_semantic20,_semantic21,_semantic22,_semantic23,_semantic24,_semantic25 6 | 7 | -------------------------------------------------------------------------------- /syntax/template.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'template', 'syntax/template.vim') 2 | finish 3 | endif 4 | 5 | " Vim syntax file 6 | " Language: Generic template 7 | " Maintainer: Bram Moolenaar 8 | " Last Change: 2019 May 06 9 | 10 | " Quit when a (custom) syntax file was already loaded 11 | if exists("b:current_syntax") 12 | finish 13 | endif 14 | 15 | " Known template types are very similar to HTML, E.g. golang and "Xfire User 16 | " Interface Template" 17 | " If you know how to recognize a more specific type for *.tmpl suggest a 18 | " change to runtime/scripts.vim. 19 | runtime! syntax/html.vim 20 | -------------------------------------------------------------------------------- /syntax/terraform.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'terraform', 'syntax/terraform.vim') 2 | finish 3 | endif 4 | 5 | if exists('b:current_syntax') 6 | finish 7 | endif 8 | runtime! syntax/hcl.vim 9 | unlet b:current_syntax 10 | 11 | syn keyword terraType string bool number object tuple list map set any 12 | 13 | hi def link terraType Type 14 | 15 | let b:current_syntax = 'terraform' 16 | -------------------------------------------------------------------------------- /syntax/tt2html.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'perl', 'syntax/tt2html.vim') 2 | finish 3 | endif 4 | 5 | " Language: TT2 embedded with HTML 6 | " Maintainer: vim-perl 7 | " Author: Moriki, Atsushi <4woods+vim@gmail.com> 8 | " Homepage: http://github.com/vim-perl/vim-perl 9 | " Bugs/requests: http://github.com/vim-perl/vim-perl/issues 10 | " Last Change: {{LAST_CHANGE}} 11 | 12 | if exists("b:current_syntax") 13 | finish 14 | endif 15 | 16 | runtime! syntax/html.vim 17 | unlet b:current_syntax 18 | 19 | runtime! syntax/tt2.vim 20 | unlet b:current_syntax 21 | 22 | syn cluster htmlPreProc add=@tt2_top_cluster 23 | 24 | let b:current_syntax = "tt2html" 25 | -------------------------------------------------------------------------------- /syntax/tt2js.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'perl', 'syntax/tt2js.vim') 2 | finish 3 | endif 4 | 5 | " Language: TT2 embedded with Javascript 6 | " Maintainer: Andy Lester 7 | " Author: Yates, Peter 8 | " Homepage: http://github.com/vim-perl/vim-perl 9 | " Bugs/requests: http://github.com/vim-perl/vim-perl/issues 10 | " Last Change: {{LAST_CHANGE}} 11 | 12 | if exists("b:current_syntax") 13 | finish 14 | endif 15 | 16 | runtime! syntax/javascript.vim 17 | unlet b:current_syntax 18 | 19 | runtime! syntax/tt2.vim 20 | unlet b:current_syntax 21 | 22 | syn cluster javascriptPreProc add=@tt2_top_cluster 23 | 24 | let b:current_syntax = "tt2js" 25 | -------------------------------------------------------------------------------- /syntax/vimgo.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'go', 'syntax/vimgo.vim') 2 | finish 3 | endif 4 | 5 | if exists("b:current_syntax") 6 | finish 7 | endif 8 | 9 | let b:current_syntax = "vimgo" 10 | 11 | syn match goInterface /^\S*/ 12 | syn region goTitle start="\%1l" end=":" 13 | 14 | hi def link goInterface Type 15 | hi def link goTitle Label 16 | 17 | " vim: sw=2 ts=2 et 18 | -------------------------------------------------------------------------------- /syntax/xhtml.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'xhtml', 'syntax/xhtml.vim') 2 | finish 3 | endif 4 | 5 | " Vim syntax file 6 | " Language: XHTML 7 | " Maintainer: noone 8 | " Last Change: 2003 Feb 04 9 | 10 | " Load the HTML syntax for now. 11 | runtime! syntax/html.vim 12 | 13 | let b:current_syntax = "xhtml" 14 | 15 | " vim: ts=8 16 | -------------------------------------------------------------------------------- /syntax/yats/dom-form.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'typescript', 'syntax/yats/dom-form.vim') 2 | finish 3 | endif 4 | 5 | syntax keyword typescriptDOMFormProp contained acceptCharset action elements encoding 6 | syntax keyword typescriptDOMFormProp contained enctype length method name target 7 | syntax cluster props add=typescriptDOMFormProp 8 | if exists("did_typescript_hilink") | HiLink typescriptDOMFormProp Keyword 9 | endif 10 | syntax keyword typescriptDOMFormMethod contained reportValidity reset submit nextgroup=typescriptFuncCallArg 11 | syntax cluster props add=typescriptDOMFormMethod 12 | if exists("did_typescript_hilink") | HiLink typescriptDOMFormMethod Keyword 13 | endif 14 | -------------------------------------------------------------------------------- /syntax/yats/dom-storage.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'typescript', 'syntax/yats/dom-storage.vim') 2 | finish 3 | endif 4 | 5 | syntax keyword typescriptDOMStorage contained sessionStorage localStorage 6 | if exists("did_typescript_hilink") | HiLink typescriptDOMStorage Keyword 7 | endif 8 | syntax keyword typescriptDOMStorageProp contained length 9 | syntax cluster props add=typescriptDOMStorageProp 10 | if exists("did_typescript_hilink") | HiLink typescriptDOMStorageProp Keyword 11 | endif 12 | syntax keyword typescriptDOMStorageMethod contained getItem key setItem removeItem nextgroup=typescriptFuncCallArg 13 | syntax keyword typescriptDOMStorageMethod contained clear nextgroup=typescriptFuncCallArg 14 | syntax cluster props add=typescriptDOMStorageMethod 15 | if exists("did_typescript_hilink") | HiLink typescriptDOMStorageMethod Keyword 16 | endif 17 | -------------------------------------------------------------------------------- /syntax/yats/ecma-402.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'typescript', 'syntax/yats/ecma-402.vim') 2 | finish 3 | endif 4 | 5 | syntax keyword typescriptGlobal containedin=typescriptIdentifierName Intl 6 | syntax keyword typescriptIntlMethod contained Collator DateTimeFormat NumberFormat nextgroup=typescriptFuncCallArg 7 | syntax keyword typescriptIntlMethod contained PluralRules nextgroup=typescriptFuncCallArg 8 | syntax cluster props add=typescriptIntlMethod 9 | if exists("did_typescript_hilink") | HiLink typescriptIntlMethod Keyword 10 | endif 11 | -------------------------------------------------------------------------------- /syntax/yats/es6-function.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'typescript', 'syntax/yats/es6-function.vim') 2 | finish 3 | endif 4 | 5 | syntax keyword typescriptGlobal containedin=typescriptIdentifierName Function 6 | syntax keyword typescriptFunctionMethod contained apply bind call nextgroup=typescriptFuncCallArg 7 | syntax cluster props add=typescriptFunctionMethod 8 | if exists("did_typescript_hilink") | HiLink typescriptFunctionMethod Keyword 9 | endif 10 | -------------------------------------------------------------------------------- /syntax/yats/es6-json.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'typescript', 'syntax/yats/es6-json.vim') 2 | finish 3 | endif 4 | 5 | syntax keyword typescriptGlobal containedin=typescriptIdentifierName JSON nextgroup=typescriptGlobalJSONDot,typescriptFuncCallArg 6 | syntax match typescriptGlobalJSONDot /\./ contained nextgroup=typescriptJSONStaticMethod,typescriptProp 7 | syntax keyword typescriptJSONStaticMethod contained parse stringify nextgroup=typescriptFuncCallArg 8 | if exists("did_typescript_hilink") | HiLink typescriptJSONStaticMethod Keyword 9 | endif 10 | -------------------------------------------------------------------------------- /syntax/yats/es6-map.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'typescript', 'syntax/yats/es6-map.vim') 2 | finish 3 | endif 4 | 5 | syntax keyword typescriptGlobal containedin=typescriptIdentifierName Map WeakMap 6 | syntax keyword typescriptES6MapProp contained size 7 | syntax cluster props add=typescriptES6MapProp 8 | if exists("did_typescript_hilink") | HiLink typescriptES6MapProp Keyword 9 | endif 10 | syntax keyword typescriptES6MapMethod contained clear delete entries forEach get has nextgroup=typescriptFuncCallArg 11 | syntax keyword typescriptES6MapMethod contained keys set values nextgroup=typescriptFuncCallArg 12 | syntax cluster props add=typescriptES6MapMethod 13 | if exists("did_typescript_hilink") | HiLink typescriptES6MapMethod Keyword 14 | endif 15 | -------------------------------------------------------------------------------- /syntax/yats/es6-promise.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'typescript', 'syntax/yats/es6-promise.vim') 2 | finish 3 | endif 4 | 5 | syntax keyword typescriptGlobal containedin=typescriptIdentifierName Promise nextgroup=typescriptGlobalPromiseDot,typescriptFuncCallArg 6 | syntax match typescriptGlobalPromiseDot /\./ contained nextgroup=typescriptPromiseStaticMethod,typescriptProp 7 | syntax keyword typescriptPromiseStaticMethod contained all allSettled any race reject resolve nextgroup=typescriptFuncCallArg 8 | if exists("did_typescript_hilink") | HiLink typescriptPromiseStaticMethod Keyword 9 | endif 10 | syntax keyword typescriptPromiseMethod contained then catch finally nextgroup=typescriptFuncCallArg 11 | syntax cluster props add=typescriptPromiseMethod 12 | if exists("did_typescript_hilink") | HiLink typescriptPromiseMethod Keyword 13 | endif 14 | -------------------------------------------------------------------------------- /syntax/yats/es6-proxy.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'typescript', 'syntax/yats/es6-proxy.vim') 2 | finish 3 | endif 4 | 5 | syntax keyword typescriptGlobal containedin=typescriptIdentifierName Proxy 6 | syntax keyword typescriptProxyAPI contained getOwnPropertyDescriptor getOwnPropertyNames 7 | syntax keyword typescriptProxyAPI contained defineProperty deleteProperty freeze seal 8 | syntax keyword typescriptProxyAPI contained preventExtensions has hasOwn get set enumerate 9 | syntax keyword typescriptProxyAPI contained iterate ownKeys apply construct 10 | if exists("did_typescript_hilink") | HiLink typescriptProxyAPI Keyword 11 | endif 12 | -------------------------------------------------------------------------------- /syntax/yats/es6-reflect.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'typescript', 'syntax/yats/es6-reflect.vim') 2 | finish 3 | endif 4 | 5 | syntax keyword typescriptGlobal containedin=typescriptIdentifierName Reflect 6 | syntax keyword typescriptReflectMethod contained apply construct defineProperty deleteProperty nextgroup=typescriptFuncCallArg 7 | syntax keyword typescriptReflectMethod contained enumerate get getOwnPropertyDescriptor nextgroup=typescriptFuncCallArg 8 | syntax keyword typescriptReflectMethod contained getPrototypeOf has isExtensible ownKeys nextgroup=typescriptFuncCallArg 9 | syntax keyword typescriptReflectMethod contained preventExtensions set setPrototypeOf nextgroup=typescriptFuncCallArg 10 | syntax cluster props add=typescriptReflectMethod 11 | if exists("did_typescript_hilink") | HiLink typescriptReflectMethod Keyword 12 | endif 13 | -------------------------------------------------------------------------------- /syntax/yats/es6-set.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'typescript', 'syntax/yats/es6-set.vim') 2 | finish 3 | endif 4 | 5 | syntax keyword typescriptGlobal containedin=typescriptIdentifierName Set WeakSet 6 | syntax keyword typescriptES6SetProp contained size 7 | syntax cluster props add=typescriptES6SetProp 8 | if exists("did_typescript_hilink") | HiLink typescriptES6SetProp Keyword 9 | endif 10 | syntax keyword typescriptES6SetMethod contained add clear delete entries forEach has nextgroup=typescriptFuncCallArg 11 | syntax keyword typescriptES6SetMethod contained values nextgroup=typescriptFuncCallArg 12 | syntax cluster props add=typescriptES6SetMethod 13 | if exists("did_typescript_hilink") | HiLink typescriptES6SetMethod Keyword 14 | endif 15 | -------------------------------------------------------------------------------- /syntax/yats/node.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'typescript', 'syntax/yats/node.vim') 2 | finish 3 | endif 4 | 5 | syntax keyword typescriptNodeGlobal containedin=typescriptIdentifierName global process 6 | syntax keyword typescriptNodeGlobal containedin=typescriptIdentifierName console Buffer 7 | syntax keyword typescriptNodeGlobal containedin=typescriptIdentifierName module exports 8 | syntax keyword typescriptNodeGlobal containedin=typescriptIdentifierName setTimeout 9 | syntax keyword typescriptNodeGlobal containedin=typescriptIdentifierName clearTimeout 10 | syntax keyword typescriptNodeGlobal containedin=typescriptIdentifierName setInterval 11 | syntax keyword typescriptNodeGlobal containedin=typescriptIdentifierName clearInterval 12 | if exists("did_typescript_hilink") | HiLink typescriptNodeGlobal Structure 13 | endif 14 | -------------------------------------------------------------------------------- /syntax/yats/test.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'typescript', 'syntax/yats/test.vim') 2 | finish 3 | endif 4 | 5 | syntax keyword typescriptTestGlobal containedin=typescriptIdentifierName describe 6 | syntax keyword typescriptTestGlobal containedin=typescriptIdentifierName it test before 7 | syntax keyword typescriptTestGlobal containedin=typescriptIdentifierName after beforeEach 8 | syntax keyword typescriptTestGlobal containedin=typescriptIdentifierName afterEach 9 | syntax keyword typescriptTestGlobal containedin=typescriptIdentifierName beforeAll 10 | syntax keyword typescriptTestGlobal containedin=typescriptIdentifierName afterAll 11 | syntax keyword typescriptTestGlobal containedin=typescriptIdentifierName expect assert 12 | -------------------------------------------------------------------------------- /syntax/yats/web-console.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'typescript', 'syntax/yats/web-console.vim') 2 | finish 3 | endif 4 | 5 | syntax keyword typescriptGlobal containedin=typescriptIdentifierName console 6 | syntax keyword typescriptConsoleMethod contained count dir error group groupCollapsed nextgroup=typescriptFuncCallArg 7 | syntax keyword typescriptConsoleMethod contained groupEnd info log time timeEnd trace nextgroup=typescriptFuncCallArg 8 | syntax keyword typescriptConsoleMethod contained warn nextgroup=typescriptFuncCallArg 9 | syntax cluster props add=typescriptConsoleMethod 10 | if exists("did_typescript_hilink") | HiLink typescriptConsoleMethod Keyword 11 | endif 12 | -------------------------------------------------------------------------------- /syntax/yats/web-encoding.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'typescript', 'syntax/yats/web-encoding.vim') 2 | finish 3 | endif 4 | 5 | syntax keyword typescriptEncodingGlobal containedin=typescriptIdentifierName TextEncoder 6 | syntax keyword typescriptEncodingGlobal containedin=typescriptIdentifierName TextDecoder 7 | if exists("did_typescript_hilink") | HiLink typescriptEncodingGlobal Structure 8 | endif 9 | syntax keyword typescriptEncodingProp contained encoding fatal ignoreBOM 10 | syntax cluster props add=typescriptEncodingProp 11 | if exists("did_typescript_hilink") | HiLink typescriptEncodingProp Keyword 12 | endif 13 | syntax keyword typescriptEncodingMethod contained encode decode nextgroup=typescriptFuncCallArg 14 | syntax cluster props add=typescriptEncodingMethod 15 | if exists("did_typescript_hilink") | HiLink typescriptEncodingMethod Keyword 16 | endif 17 | -------------------------------------------------------------------------------- /syntax/yats/web-geo.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'typescript', 'syntax/yats/web-geo.vim') 2 | finish 3 | endif 4 | 5 | syntax keyword typescriptGlobal containedin=typescriptIdentifierName Geolocation 6 | syntax keyword typescriptGeolocationMethod contained getCurrentPosition watchPosition nextgroup=typescriptFuncCallArg 7 | syntax keyword typescriptGeolocationMethod contained clearWatch nextgroup=typescriptFuncCallArg 8 | syntax cluster props add=typescriptGeolocationMethod 9 | if exists("did_typescript_hilink") | HiLink typescriptGeolocationMethod Keyword 10 | endif 11 | -------------------------------------------------------------------------------- /syntax/yats/web-history.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'typescript', 'syntax/yats/web-history.vim') 2 | finish 3 | endif 4 | 5 | syntax keyword typescriptBOMHistoryProp contained length current next previous state 6 | syntax keyword typescriptBOMHistoryProp contained scrollRestoration 7 | syntax cluster props add=typescriptBOMHistoryProp 8 | if exists("did_typescript_hilink") | HiLink typescriptBOMHistoryProp Keyword 9 | endif 10 | syntax keyword typescriptBOMHistoryMethod contained back forward go pushState replaceState nextgroup=typescriptFuncCallArg 11 | syntax cluster props add=typescriptBOMHistoryMethod 12 | if exists("did_typescript_hilink") | HiLink typescriptBOMHistoryMethod Keyword 13 | endif 14 | -------------------------------------------------------------------------------- /syntax/yats/web-location.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'typescript', 'syntax/yats/web-location.vim') 2 | finish 3 | endif 4 | 5 | syntax keyword typescriptBOMLocationProp contained href protocol host hostname port 6 | syntax keyword typescriptBOMLocationProp contained pathname search hash username password 7 | syntax keyword typescriptBOMLocationProp contained origin 8 | syntax cluster props add=typescriptBOMLocationProp 9 | if exists("did_typescript_hilink") | HiLink typescriptBOMLocationProp Keyword 10 | endif 11 | syntax keyword typescriptBOMLocationMethod contained assign reload replace toString nextgroup=typescriptFuncCallArg 12 | syntax cluster props add=typescriptBOMLocationMethod 13 | if exists("did_typescript_hilink") | HiLink typescriptBOMLocationMethod Keyword 14 | endif 15 | -------------------------------------------------------------------------------- /syntax/yats/web-network.vim: -------------------------------------------------------------------------------- 1 | if polyglot#init#is_disabled(expand(':p'), 'typescript', 'syntax/yats/web-network.vim') 2 | finish 3 | endif 4 | 5 | syntax keyword typescriptGlobal containedin=typescriptIdentifierName NetworkInformation 6 | syntax keyword typescriptBOMNetworkProp contained downlink downlinkMax effectiveType 7 | syntax keyword typescriptBOMNetworkProp contained rtt type 8 | syntax cluster props add=typescriptBOMNetworkProp 9 | if exists("did_typescript_hilink") | HiLink typescriptBOMNetworkProp Keyword 10 | endif 11 | -------------------------------------------------------------------------------- /tests/indent/2.1/test.js: -------------------------------------------------------------------------------- 1 | // File with 2-spaces indentation 2 | function foobar() { 3 | foo = bar 4 | while (true) { 5 | fizfuz() 6 | fizfuz() 7 | fizfuz() 8 | fizfuz() 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /tests/indent/4.1/test.js: -------------------------------------------------------------------------------- 1 | // File with 4-spaces indentation 2 | function foobar() { 3 | foo = bar 4 | while (true) { 5 | fizfuz() 6 | fizfuz() 7 | fizfuz() 8 | fizfuz() 9 | } 10 | } 11 | --------------------------------------------------------------------------------