summaryrefslogtreecommitdiffstats
path: root/ftplugin
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-10-24 18:52:18 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-10-24 18:52:18 +0200
commit8e61708b4527072aa9250deb2c4cf7a56e3f3b0a (patch)
tree73e3bf7897429cee96eb36f7f291d50fbbe11ca9 /ftplugin
parent3c148e9ef5a303a599320eb64e608392db82eeb0 (diff)
downloadvim-polyglot-8e61708b4527072aa9250deb2c4cf7a56e3f3b0a.tar.gz
vim-polyglot-8e61708b4527072aa9250deb2c4cf7a56e3f3b0a.zip
Use vim-polyglot only as fallback to other plugins, fixes #580
Diffstat (limited to 'ftplugin')
-rw-r--r--ftplugin/8th.vim5
-rw-r--r--ftplugin/a2ps.vim5
-rw-r--r--ftplugin/aap.vim5
-rw-r--r--ftplugin/abap.vim5
-rw-r--r--ftplugin/abaqus.vim5
-rw-r--r--ftplugin/ada.vim5
-rw-r--r--ftplugin/alsaconf.vim5
-rw-r--r--ftplugin/ansible.vim5
-rw-r--r--ftplugin/ansible_hosts.vim5
-rw-r--r--ftplugin/ant.vim5
-rw-r--r--ftplugin/arch.vim5
-rw-r--r--ftplugin/art.vim5
-rw-r--r--ftplugin/aspvbs.vim5
-rw-r--r--ftplugin/automake.vim5
-rw-r--r--ftplugin/awk.vim5
-rw-r--r--ftplugin/bdf.vim5
-rw-r--r--ftplugin/blade.vim5
-rw-r--r--ftplugin/bst.vim5
-rw-r--r--ftplugin/bzl.vim5
-rw-r--r--ftplugin/caddyfile.vim5
-rw-r--r--ftplugin/calendar.vim5
-rw-r--r--ftplugin/cdrdaoconf.vim5
-rw-r--r--ftplugin/cfg.vim5
-rw-r--r--ftplugin/ch.vim5
-rw-r--r--ftplugin/clojure.vim5
-rw-r--r--ftplugin/cobol.vim5
-rw-r--r--ftplugin/coffee.vim5
-rw-r--r--ftplugin/conf.vim5
-rw-r--r--ftplugin/config.vim5
-rw-r--r--ftplugin/crm.vim5
-rw-r--r--ftplugin/cryptol/folding.vim5
-rw-r--r--ftplugin/crystal.vim5
-rw-r--r--ftplugin/cs.vim5
-rw-r--r--ftplugin/csc.vim5
-rw-r--r--ftplugin/css.vim5
-rw-r--r--ftplugin/csv.vim5
-rw-r--r--ftplugin/cucumber.vim5
-rw-r--r--ftplugin/cvsrc.vim5
-rw-r--r--ftplugin/dart.vim5
-rw-r--r--ftplugin/debchangelog.vim5
-rw-r--r--ftplugin/debcontrol.vim5
-rw-r--r--ftplugin/denyhosts.vim5
-rw-r--r--ftplugin/dhall.vim5
-rw-r--r--ftplugin/dictconf.vim5
-rw-r--r--ftplugin/dictdconf.vim5
-rw-r--r--ftplugin/diff.vim5
-rw-r--r--ftplugin/dircolors.vim5
-rw-r--r--ftplugin/docker-compose.vim5
-rw-r--r--ftplugin/dockerfile.vim5
-rw-r--r--ftplugin/dosbatch.vim5
-rw-r--r--ftplugin/dosini.vim5
-rw-r--r--ftplugin/dtd.vim5
-rw-r--r--ftplugin/dune.vim5
-rw-r--r--ftplugin/ecrystal.vim5
-rw-r--r--ftplugin/eelixir.vim5
-rw-r--r--ftplugin/elinks.vim5
-rw-r--r--ftplugin/elixir.vim5
-rw-r--r--ftplugin/embeddedpuppet.vim5
-rw-r--r--ftplugin/ember-script.vim5
-rw-r--r--ftplugin/emblem.vim5
-rw-r--r--ftplugin/eruby.vim5
-rw-r--r--ftplugin/eterm.vim5
-rw-r--r--ftplugin/falcon.vim5
-rw-r--r--ftplugin/fennel.vim5
-rw-r--r--ftplugin/fetchmail.vim5
-rw-r--r--ftplugin/fish.vim5
-rw-r--r--ftplugin/fortran.vim5
-rw-r--r--ftplugin/framescript.vim5
-rw-r--r--ftplugin/fvwm.vim5
-rw-r--r--ftplugin/gdb.vim5
-rw-r--r--ftplugin/git.vim5
-rw-r--r--ftplugin/gitcommit.vim5
-rw-r--r--ftplugin/gitconfig.vim5
-rw-r--r--ftplugin/gitignore.vim5
-rw-r--r--ftplugin/gitrebase.vim5
-rw-r--r--ftplugin/gitsendemail.vim5
-rw-r--r--ftplugin/gpg.vim5
-rw-r--r--ftplugin/graphql.vim5
-rw-r--r--ftplugin/groovy.vim5
-rw-r--r--ftplugin/group.vim5
-rw-r--r--ftplugin/grub.vim5
-rw-r--r--ftplugin/haml.vim5
-rw-r--r--ftplugin/hamster.vim5
-rw-r--r--ftplugin/handlebars.vim5
-rw-r--r--ftplugin/hcl.vim5
-rw-r--r--ftplugin/help.vim5
-rw-r--r--ftplugin/hgcommit.vim5
-rw-r--r--ftplugin/hive.vim5
-rw-r--r--ftplugin/hog.vim5
-rw-r--r--ftplugin/hostconf.vim5
-rw-r--r--ftplugin/hostsaccess.vim5
-rw-r--r--ftplugin/html.vim5
-rw-r--r--ftplugin/htmldjango.vim5
-rw-r--r--ftplugin/i3config.vim5
-rw-r--r--ftplugin/idris.vim5
-rw-r--r--ftplugin/idris2.vim5
-rw-r--r--ftplugin/indent.vim5
-rw-r--r--ftplugin/ion.vim5
-rw-r--r--ftplugin/j.vim5
-rw-r--r--ftplugin/java.vim5
-rw-r--r--ftplugin/jproperties.vim5
-rw-r--r--ftplugin/jq.vim5
-rw-r--r--ftplugin/json.vim5
-rw-r--r--ftplugin/jsonnet.vim5
-rw-r--r--ftplugin/jsp.vim5
-rw-r--r--ftplugin/julia.vim5
-rw-r--r--ftplugin/juliadoc.vim5
-rw-r--r--ftplugin/kconfig.vim5
-rw-r--r--ftplugin/kotlin.vim5
-rw-r--r--ftplugin/kwt.vim5
-rw-r--r--ftplugin/ld.vim5
-rw-r--r--ftplugin/less.vim5
-rw-r--r--ftplugin/lftp.vim5
-rw-r--r--ftplugin/libao.vim5
-rw-r--r--ftplugin/lilypond.vim5
-rw-r--r--ftplugin/limits.vim5
-rw-r--r--ftplugin/liquid.vim5
-rw-r--r--ftplugin/lisp.vim5
-rw-r--r--ftplugin/litcoffee.vim5
-rw-r--r--ftplugin/llvm.vim5
-rw-r--r--ftplugin/logcheck.vim5
-rw-r--r--ftplugin/loginaccess.vim5
-rw-r--r--ftplugin/logindefs.vim5
-rw-r--r--ftplugin/logtalk.vim5
-rw-r--r--ftplugin/lprolog.vim5
-rw-r--r--ftplugin/ls.vim5
-rw-r--r--ftplugin/m4.vim5
-rw-r--r--ftplugin/mail.vim5
-rw-r--r--ftplugin/mailaliases.vim5
-rw-r--r--ftplugin/mailcap.vim5
-rw-r--r--ftplugin/make.vim5
-rw-r--r--ftplugin/mako.vim5
-rw-r--r--ftplugin/manconf.vim5
-rw-r--r--ftplugin/markdown.vim5
-rw-r--r--ftplugin/meson.vim5
-rw-r--r--ftplugin/mf.vim5
-rw-r--r--ftplugin/mma.vim5
-rw-r--r--ftplugin/modconf.vim5
-rw-r--r--ftplugin/moon.vim5
-rw-r--r--ftplugin/mp.vim5
-rw-r--r--ftplugin/mplayerconf.vim5
-rw-r--r--ftplugin/mrxvtrc.vim5
-rw-r--r--ftplugin/mustache.vim5
-rw-r--r--ftplugin/muttrc.vim5
-rw-r--r--ftplugin/nanorc.vim5
-rw-r--r--ftplugin/neomuttrc.vim5
-rw-r--r--ftplugin/netrc.vim5
-rw-r--r--ftplugin/nginx.vim5
-rw-r--r--ftplugin/nix.vim5
-rw-r--r--ftplugin/nroff.vim5
-rw-r--r--ftplugin/nsis.vim5
-rw-r--r--ftplugin/oasis.vim5
-rw-r--r--ftplugin/objc.vim5
-rw-r--r--ftplugin/ocaml.vim5
-rw-r--r--ftplugin/ocamlbuild_tags.vim5
-rw-r--r--ftplugin/occam.vim5
-rw-r--r--ftplugin/omake.vim5
-rw-r--r--ftplugin/opencl.vim5
-rw-r--r--ftplugin/pamconf.vim5
-rw-r--r--ftplugin/pascal.vim5
-rw-r--r--ftplugin/passwd.vim5
-rw-r--r--ftplugin/pdf.vim5
-rw-r--r--ftplugin/perl.vim5
-rw-r--r--ftplugin/pinfo.vim5
-rw-r--r--ftplugin/plantuml.vim5
-rw-r--r--ftplugin/pony.vim5
-rw-r--r--ftplugin/postscr.vim5
-rw-r--r--ftplugin/procmail.vim5
-rw-r--r--ftplugin/prolog.vim5
-rw-r--r--ftplugin/protocols.vim5
-rw-r--r--ftplugin/ps1.vim5
-rw-r--r--ftplugin/ps1xml.vim5
-rw-r--r--ftplugin/pug.vim5
-rw-r--r--ftplugin/puppet.vim5
-rw-r--r--ftplugin/puppet_tagbar.vim5
-rw-r--r--ftplugin/purescript.vim5
-rw-r--r--ftplugin/pyrex.vim5
-rw-r--r--ftplugin/qml.vim5
-rw-r--r--ftplugin/quake.vim5
-rw-r--r--ftplugin/racket.vim5
-rw-r--r--ftplugin/raku.vim5
-rw-r--r--ftplugin/raml.vim5
-rw-r--r--ftplugin/razor.vim5
-rw-r--r--ftplugin/readline.vim5
-rw-r--r--ftplugin/reva.vim5
-rw-r--r--ftplugin/rmd.vim5
-rw-r--r--ftplugin/rnc.vim5
-rw-r--r--ftplugin/rnoweb.vim5
-rw-r--r--ftplugin/rpl.vim5
-rw-r--r--ftplugin/rrst.vim5
-rw-r--r--ftplugin/rst.vim5
-rw-r--r--ftplugin/ruby.vim5
-rw-r--r--ftplugin/rust.vim5
-rw-r--r--ftplugin/rust/tagbar.vim5
-rw-r--r--ftplugin/sass.vim5
-rw-r--r--ftplugin/sbt.vim5
-rw-r--r--ftplugin/scala.vim5
-rw-r--r--ftplugin/scala.xpt.vim5
-rw-r--r--ftplugin/scala/tagbar.vim5
-rw-r--r--ftplugin/scheme.vim5
-rw-r--r--ftplugin/screen.vim5
-rw-r--r--ftplugin/scss.vim5
-rw-r--r--ftplugin/sensors.vim5
-rw-r--r--ftplugin/services.vim5
-rw-r--r--ftplugin/setserial.vim5
-rw-r--r--ftplugin/sexplib.vim5
-rw-r--r--ftplugin/sieve.vim5
-rw-r--r--ftplugin/slim.vim5
-rw-r--r--ftplugin/slpconf.vim5
-rw-r--r--ftplugin/slpreg.vim5
-rw-r--r--ftplugin/slpspi.vim5
-rw-r--r--ftplugin/smt2.vim5
-rw-r--r--ftplugin/solidity.vim5
-rw-r--r--ftplugin/spec.vim5
-rw-r--r--ftplugin/sql.vim5
-rw-r--r--ftplugin/sshconfig.vim5
-rw-r--r--ftplugin/stylus.vim5
-rw-r--r--ftplugin/sudoers.vim5
-rw-r--r--ftplugin/svelte.vim5
-rw-r--r--ftplugin/swift.vim5
-rw-r--r--ftplugin/swiftgyb.vim5
-rw-r--r--ftplugin/sysctl.vim5
-rw-r--r--ftplugin/systemd.vim5
-rw-r--r--ftplugin/systemverilog.vim5
-rw-r--r--ftplugin/tablegen.vim5
-rw-r--r--ftplugin/tcl.vim5
-rw-r--r--ftplugin/terminfo.vim5
-rw-r--r--ftplugin/terraform.vim5
-rw-r--r--ftplugin/tex.vim5
-rw-r--r--ftplugin/text.vim5
-rw-r--r--ftplugin/textile.vim5
-rw-r--r--ftplugin/tmux.vim5
-rw-r--r--ftplugin/toml.vim5
-rw-r--r--ftplugin/treetop.vim5
-rw-r--r--ftplugin/tt2html.vim5
-rw-r--r--ftplugin/twig.vim5
-rw-r--r--ftplugin/typescript.vim5
-rw-r--r--ftplugin/typescriptreact.vim5
-rw-r--r--ftplugin/udevconf.vim5
-rw-r--r--ftplugin/udevperm.vim5
-rw-r--r--ftplugin/updatedb.vim5
-rw-r--r--ftplugin/vala.vim5
-rw-r--r--ftplugin/vb.vim5
-rw-r--r--ftplugin/verilog.vim5
-rw-r--r--ftplugin/vhdl.vim5
-rw-r--r--ftplugin/vlang.vim5
-rw-r--r--ftplugin/vroom.vim5
-rw-r--r--ftplugin/vue.vim5
-rw-r--r--ftplugin/wast.vim5
-rw-r--r--ftplugin/xdefaults.vim5
-rw-r--r--ftplugin/xf86conf.vim5
-rw-r--r--ftplugin/xhtml.vim5
-rw-r--r--ftplugin/xinetd.vim5
-rw-r--r--ftplugin/xmodmap.vim5
-rw-r--r--ftplugin/xs.vim5
-rw-r--r--ftplugin/xsd.vim5
-rw-r--r--ftplugin/xslt.vim5
-rw-r--r--ftplugin/yaml.vim5
-rw-r--r--ftplugin/zig.vim5
-rw-r--r--ftplugin/zimbu.vim5
260 files changed, 1300 insertions, 0 deletions
diff --git a/ftplugin/8th.vim b/ftplugin/8th.vim
index 29c08c5e..f6877548 100644
--- a/ftplugin/8th.vim
+++ b/ftplugin/8th.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/8th.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, '8th') == -1
" Vim ftplugin file
diff --git a/ftplugin/a2ps.vim b/ftplugin/a2ps.vim
index 1274e83a..052a9fb8 100644
--- a/ftplugin/a2ps.vim
+++ b/ftplugin/a2ps.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/a2ps.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'a2ps') == -1
" Vim filetype plugin file
diff --git a/ftplugin/aap.vim b/ftplugin/aap.vim
index d163c5bb..d9f3213c 100644
--- a/ftplugin/aap.vim
+++ b/ftplugin/aap.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/aap.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'aap') == -1
" Vim filetype plugin file
diff --git a/ftplugin/abap.vim b/ftplugin/abap.vim
index 1c1631c0..0ecefa79 100644
--- a/ftplugin/abap.vim
+++ b/ftplugin/abap.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/abap.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'abap') == -1
" Vim filetype plugin file
diff --git a/ftplugin/abaqus.vim b/ftplugin/abaqus.vim
index efa42dda..f6d21fa1 100644
--- a/ftplugin/abaqus.vim
+++ b/ftplugin/abaqus.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/abaqus.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'abaqus') == -1
" Vim filetype plugin file
diff --git a/ftplugin/ada.vim b/ftplugin/ada.vim
index 59bde0a5..19dbdd20 100644
--- a/ftplugin/ada.vim
+++ b/ftplugin/ada.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/ada.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ada') == -1
"------------------------------------------------------------------------------
diff --git a/ftplugin/alsaconf.vim b/ftplugin/alsaconf.vim
index 68ce4a30..5aac50a4 100644
--- a/ftplugin/alsaconf.vim
+++ b/ftplugin/alsaconf.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/alsaconf.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'alsaconf') == -1
" Vim filetype plugin file
diff --git a/ftplugin/ansible.vim b/ftplugin/ansible.vim
index 1f83ddf7..32b30474 100644
--- a/ftplugin/ansible.vim
+++ b/ftplugin/ansible.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/ansible.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ansible') == -1
set isfname+=@-@
diff --git a/ftplugin/ansible_hosts.vim b/ftplugin/ansible_hosts.vim
index d93acc7c..d93ef6f8 100644
--- a/ftplugin/ansible_hosts.vim
+++ b/ftplugin/ansible_hosts.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/ansible_hosts.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ansible') == -1
if exists("b:did_ftplugin")
diff --git a/ftplugin/ant.vim b/ftplugin/ant.vim
index 565815bd..a69d4df0 100644
--- a/ftplugin/ant.vim
+++ b/ftplugin/ant.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/ant.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ant') == -1
" Vim filetype plugin file
diff --git a/ftplugin/arch.vim b/ftplugin/arch.vim
index c9e018bc..e674fdb0 100644
--- a/ftplugin/arch.vim
+++ b/ftplugin/arch.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/arch.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'arch') == -1
" Vim filetype plugin file
diff --git a/ftplugin/art.vim b/ftplugin/art.vim
index ce63ba52..65d411dc 100644
--- a/ftplugin/art.vim
+++ b/ftplugin/art.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/art.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'art') == -1
" Vim filetype plugin
diff --git a/ftplugin/aspvbs.vim b/ftplugin/aspvbs.vim
index c2afec5a..6c3c53df 100644
--- a/ftplugin/aspvbs.vim
+++ b/ftplugin/aspvbs.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/aspvbs.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'aspvbs') == -1
" Vim filetype plugin file
diff --git a/ftplugin/automake.vim b/ftplugin/automake.vim
index 0e853843..f5c92bcc 100644
--- a/ftplugin/automake.vim
+++ b/ftplugin/automake.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/automake.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'automake') == -1
" Vim filetype plugin file
diff --git a/ftplugin/awk.vim b/ftplugin/awk.vim
index 4425ac47..764edfd9 100644
--- a/ftplugin/awk.vim
+++ b/ftplugin/awk.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/awk.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'awk') == -1
" Vim filetype plugin
diff --git a/ftplugin/bdf.vim b/ftplugin/bdf.vim
index e18c493c..ae22bf31 100644
--- a/ftplugin/bdf.vim
+++ b/ftplugin/bdf.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/bdf.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'bdf') == -1
" Vim filetype plugin file
diff --git a/ftplugin/blade.vim b/ftplugin/blade.vim
index e5a5af91..81020de7 100644
--- a/ftplugin/blade.vim
+++ b/ftplugin/blade.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/blade.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'blade') == -1
" Vim filetype plugin
diff --git a/ftplugin/bst.vim b/ftplugin/bst.vim
index e4445546..5e49c1bc 100644
--- a/ftplugin/bst.vim
+++ b/ftplugin/bst.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/bst.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'bst') == -1
" Vim filetype plugin file
diff --git a/ftplugin/bzl.vim b/ftplugin/bzl.vim
index 3abebee9..c65643a4 100644
--- a/ftplugin/bzl.vim
+++ b/ftplugin/bzl.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/bzl.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'bzl') == -1
" Vim filetype plugin file
diff --git a/ftplugin/caddyfile.vim b/ftplugin/caddyfile.vim
index 8e4bb985..5d480987 100644
--- a/ftplugin/caddyfile.vim
+++ b/ftplugin/caddyfile.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/caddyfile.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'caddyfile') == -1
" Language: Caddyfile
diff --git a/ftplugin/calendar.vim b/ftplugin/calendar.vim
index 1ce0e41d..b5af5c1e 100644
--- a/ftplugin/calendar.vim
+++ b/ftplugin/calendar.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/calendar.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'calendar') == -1
" Vim filetype plugin file
diff --git a/ftplugin/cdrdaoconf.vim b/ftplugin/cdrdaoconf.vim
index 8b114fcb..478aaf9d 100644
--- a/ftplugin/cdrdaoconf.vim
+++ b/ftplugin/cdrdaoconf.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/cdrdaoconf.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cdrdaoconf') == -1
" Vim filetype plugin file
diff --git a/ftplugin/cfg.vim b/ftplugin/cfg.vim
index 6b4fb062..472e5240 100644
--- a/ftplugin/cfg.vim
+++ b/ftplugin/cfg.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/cfg.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cfg') == -1
" Vim filetype plugin file
diff --git a/ftplugin/ch.vim b/ftplugin/ch.vim
index 71f4870b..5222c5e8 100644
--- a/ftplugin/ch.vim
+++ b/ftplugin/ch.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/ch.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ch') == -1
" Vim filetype plugin file
diff --git a/ftplugin/clojure.vim b/ftplugin/clojure.vim
index 10278114..c04de2e3 100644
--- a/ftplugin/clojure.vim
+++ b/ftplugin/clojure.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/clojure.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'clojure') == -1
" Vim filetype plugin file
diff --git a/ftplugin/cobol.vim b/ftplugin/cobol.vim
index 45050de2..dec2d8c6 100644
--- a/ftplugin/cobol.vim
+++ b/ftplugin/cobol.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/cobol.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cobol') == -1
" Vim filetype plugin file
diff --git a/ftplugin/coffee.vim b/ftplugin/coffee.vim
index 64daa290..86a3e82f 100644
--- a/ftplugin/coffee.vim
+++ b/ftplugin/coffee.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/coffee.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1
" Language: CoffeeScript
diff --git a/ftplugin/conf.vim b/ftplugin/conf.vim
index 50f87fa7..3e6a4573 100644
--- a/ftplugin/conf.vim
+++ b/ftplugin/conf.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/conf.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'conf') == -1
" Vim filetype plugin file
diff --git a/ftplugin/config.vim b/ftplugin/config.vim
index d6a4281b..050c6f00 100644
--- a/ftplugin/config.vim
+++ b/ftplugin/config.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/config.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'config') == -1
" Vim filetype plugin file
diff --git a/ftplugin/crm.vim b/ftplugin/crm.vim
index f5a6268d..83076461 100644
--- a/ftplugin/crm.vim
+++ b/ftplugin/crm.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/crm.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crm') == -1
" Vim filetype plugin file
diff --git a/ftplugin/cryptol/folding.vim b/ftplugin/cryptol/folding.vim
index 210d0573..d516f61f 100644
--- a/ftplugin/cryptol/folding.vim
+++ b/ftplugin/cryptol/folding.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/cryptol/folding.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cryptol') == -1
" Copyright © 2013 Edward O'Callaghan. All Rights Reserved.
diff --git a/ftplugin/crystal.vim b/ftplugin/crystal.vim
index 0a206003..eb8e8974 100644
--- a/ftplugin/crystal.vim
+++ b/ftplugin/crystal.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/crystal.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1
if exists('b:did_ftplugin')
diff --git a/ftplugin/cs.vim b/ftplugin/cs.vim
index 46d26f55..72dbdfe0 100644
--- a/ftplugin/cs.vim
+++ b/ftplugin/cs.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/cs.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cs') == -1
" Vim filetype plugin file
diff --git a/ftplugin/csc.vim b/ftplugin/csc.vim
index e992f438..908a027a 100644
--- a/ftplugin/csc.vim
+++ b/ftplugin/csc.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/csc.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'csc') == -1
" Vim filetype plugin file
diff --git a/ftplugin/css.vim b/ftplugin/css.vim
index 47db09cd..6209091b 100644
--- a/ftplugin/css.vim
+++ b/ftplugin/css.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/css.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'css') == -1
" Vim filetype plugin file
diff --git a/ftplugin/csv.vim b/ftplugin/csv.vim
index b5d48dd0..125d06ed 100644
--- a/ftplugin/csv.vim
+++ b/ftplugin/csv.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/csv.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'csv') == -1
" Filetype plugin for editing CSV files. "{{{1
diff --git a/ftplugin/cucumber.vim b/ftplugin/cucumber.vim
index 5d34213b..10254153 100644
--- a/ftplugin/cucumber.vim
+++ b/ftplugin/cucumber.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/cucumber.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cucumber') == -1
" Vim filetype plugin
diff --git a/ftplugin/cvsrc.vim b/ftplugin/cvsrc.vim
index b408fdb1..705787b9 100644
--- a/ftplugin/cvsrc.vim
+++ b/ftplugin/cvsrc.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/cvsrc.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cvsrc') == -1
" Vim filetype plugin file
diff --git a/ftplugin/dart.vim b/ftplugin/dart.vim
index 69dae68c..147e657d 100644
--- a/ftplugin/dart.vim
+++ b/ftplugin/dart.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/dart.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dart') == -1
if exists('b:did_ftplugin')
diff --git a/ftplugin/debchangelog.vim b/ftplugin/debchangelog.vim
index 261af91c..355826f7 100644
--- a/ftplugin/debchangelog.vim
+++ b/ftplugin/debchangelog.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/debchangelog.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'debchangelog') == -1
" Vim filetype plugin file (GUI menu, folding and completion)
diff --git a/ftplugin/debcontrol.vim b/ftplugin/debcontrol.vim
index 47128050..647d5942 100644
--- a/ftplugin/debcontrol.vim
+++ b/ftplugin/debcontrol.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/debcontrol.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'debcontrol') == -1
" Vim filetype plugin file (GUI menu and folding)
diff --git a/ftplugin/denyhosts.vim b/ftplugin/denyhosts.vim
index 9b5cbba3..3cadf87f 100644
--- a/ftplugin/denyhosts.vim
+++ b/ftplugin/denyhosts.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/denyhosts.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'denyhosts') == -1
" Vim filetype plugin file
diff --git a/ftplugin/dhall.vim b/ftplugin/dhall.vim
index 1c524a78..983877c0 100644
--- a/ftplugin/dhall.vim
+++ b/ftplugin/dhall.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/dhall.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dhall') == -1
if exists('b:dhall_ftplugin')
diff --git a/ftplugin/dictconf.vim b/ftplugin/dictconf.vim
index 0ac9a9f4..22f10401 100644
--- a/ftplugin/dictconf.vim
+++ b/ftplugin/dictconf.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/dictconf.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dictconf') == -1
" Vim filetype plugin file
diff --git a/ftplugin/dictdconf.vim b/ftplugin/dictdconf.vim
index df6226c3..8f229104 100644
--- a/ftplugin/dictdconf.vim
+++ b/ftplugin/dictdconf.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/dictdconf.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dictdconf') == -1
" Vim filetype plugin file
diff --git a/ftplugin/diff.vim b/ftplugin/diff.vim
index 8b7d0551..226956ca 100644
--- a/ftplugin/diff.vim
+++ b/ftplugin/diff.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/diff.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'diff') == -1
" Vim filetype plugin file
diff --git a/ftplugin/dircolors.vim b/ftplugin/dircolors.vim
index 9e2ef46a..b9b2549e 100644
--- a/ftplugin/dircolors.vim
+++ b/ftplugin/dircolors.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/dircolors.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dircolors') == -1
" Vim filetype plugin file
diff --git a/ftplugin/docker-compose.vim b/ftplugin/docker-compose.vim
index e80041e2..8e5c4fd3 100644
--- a/ftplugin/docker-compose.vim
+++ b/ftplugin/docker-compose.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/docker-compose.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'docker-compose') == -1
" Define comment string
diff --git a/ftplugin/dockerfile.vim b/ftplugin/dockerfile.vim
index 3780119a..239fd78c 100644
--- a/ftplugin/dockerfile.vim
+++ b/ftplugin/dockerfile.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/dockerfile.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dockerfile') == -1
" Vim filetype plugin
diff --git a/ftplugin/dosbatch.vim b/ftplugin/dosbatch.vim
index b846f4f5..a90f06b7 100644
--- a/ftplugin/dosbatch.vim
+++ b/ftplugin/dosbatch.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/dosbatch.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dosbatch') == -1
" Vim filetype plugin file
diff --git a/ftplugin/dosini.vim b/ftplugin/dosini.vim
index e0a2ba3d..3e2689c0 100644
--- a/ftplugin/dosini.vim
+++ b/ftplugin/dosini.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/dosini.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dosini') == -1
" Vim filetype plugin file
diff --git a/ftplugin/dtd.vim b/ftplugin/dtd.vim
index d2c4876e..71e7535a 100644
--- a/ftplugin/dtd.vim
+++ b/ftplugin/dtd.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/dtd.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dtd') == -1
" Vim filetype plugin file
diff --git a/ftplugin/dune.vim b/ftplugin/dune.vim
index cce58e5e..6a6a88e9 100644
--- a/ftplugin/dune.vim
+++ b/ftplugin/dune.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/dune.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1
if exists("b:did_ftplugin")
diff --git a/ftplugin/ecrystal.vim b/ftplugin/ecrystal.vim
index 58ccde5a..0aa94254 100644
--- a/ftplugin/ecrystal.vim
+++ b/ftplugin/ecrystal.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/ecrystal.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1
" Filetype plugin for https://crystal-lang.org/api/0.35.1/ECR.html
diff --git a/ftplugin/eelixir.vim b/ftplugin/eelixir.vim
index ab8174a9..06b74eec 100644
--- a/ftplugin/eelixir.vim
+++ b/ftplugin/eelixir.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/eelixir.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
if exists("b:did_ftplugin")
diff --git a/ftplugin/elinks.vim b/ftplugin/elinks.vim
index 8e2611dc..57150b99 100644
--- a/ftplugin/elinks.vim
+++ b/ftplugin/elinks.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/elinks.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elinks') == -1
" Vim filetype plugin file
diff --git a/ftplugin/elixir.vim b/ftplugin/elixir.vim
index e6e0cafa..2889a446 100644
--- a/ftplugin/elixir.vim
+++ b/ftplugin/elixir.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/elixir.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
if exists('b:did_ftplugin')
diff --git a/ftplugin/embeddedpuppet.vim b/ftplugin/embeddedpuppet.vim
index 50a69ea8..0a3ccf6f 100644
--- a/ftplugin/embeddedpuppet.vim
+++ b/ftplugin/embeddedpuppet.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/embeddedpuppet.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
" Vim filetype plugin
diff --git a/ftplugin/ember-script.vim b/ftplugin/ember-script.vim
index 18a0481b..a1436b7b 100644
--- a/ftplugin/ember-script.vim
+++ b/ftplugin/ember-script.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/ember-script.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'emberscript') == -1
" Language: ember-script
diff --git a/ftplugin/emblem.vim b/ftplugin/emblem.vim
index 54bdc07e..7ddba5c2 100644
--- a/ftplugin/emblem.vim
+++ b/ftplugin/emblem.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/emblem.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'emblem') == -1
" Language: emblem
diff --git a/ftplugin/eruby.vim b/ftplugin/eruby.vim
index 342283b0..cd3e8be1 100644
--- a/ftplugin/eruby.vim
+++ b/ftplugin/eruby.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/eruby.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
" Vim filetype plugin
diff --git a/ftplugin/eterm.vim b/ftplugin/eterm.vim
index 3211c867..33fa42f6 100644
--- a/ftplugin/eterm.vim
+++ b/ftplugin/eterm.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/eterm.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'eterm') == -1
" Vim filetype plugin file
diff --git a/ftplugin/falcon.vim b/ftplugin/falcon.vim
index defc4cbe..c1095b58 100644
--- a/ftplugin/falcon.vim
+++ b/ftplugin/falcon.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/falcon.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'falcon') == -1
" Vim filetype plugin file
diff --git a/ftplugin/fennel.vim b/ftplugin/fennel.vim
index 1fba74f1..3dc46a7b 100644
--- a/ftplugin/fennel.vim
+++ b/ftplugin/fennel.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/fennel.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fennel') == -1
" Vim filetype plugin file
diff --git a/ftplugin/fetchmail.vim b/ftplugin/fetchmail.vim
index 2001caad..a9d2abc9 100644
--- a/ftplugin/fetchmail.vim
+++ b/ftplugin/fetchmail.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/fetchmail.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fetchmail') == -1
" Vim filetype plugin file
diff --git a/ftplugin/fish.vim b/ftplugin/fish.vim
index 393b84e4..85bae2dc 100644
--- a/ftplugin/fish.vim
+++ b/ftplugin/fish.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/fish.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fish') == -1
setlocal comments=:#
diff --git a/ftplugin/fortran.vim b/ftplugin/fortran.vim
index efbc2884..ca1e4ab4 100644
--- a/ftplugin/fortran.vim
+++ b/ftplugin/fortran.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/fortran.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fortran') == -1
" Vim settings file
diff --git a/ftplugin/framescript.vim b/ftplugin/framescript.vim
index aa56a7b7..48dd0d66 100644
--- a/ftplugin/framescript.vim
+++ b/ftplugin/framescript.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/framescript.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'framescript') == -1
" Vim ftplugin file
diff --git a/ftplugin/fvwm.vim b/ftplugin/fvwm.vim
index 76ba9196..ad662455 100644
--- a/ftplugin/fvwm.vim
+++ b/ftplugin/fvwm.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/fvwm.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fvwm') == -1
" Created : Tue 09 May 2006 02:07:31 PM CDT
diff --git a/ftplugin/gdb.vim b/ftplugin/gdb.vim
index abfa3208..49606b74 100644
--- a/ftplugin/gdb.vim
+++ b/ftplugin/gdb.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/gdb.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'gdb') == -1
" Vim filetype plugin file
diff --git a/ftplugin/git.vim b/ftplugin/git.vim
index 0137f594..b5401255 100644
--- a/ftplugin/git.vim
+++ b/ftplugin/git.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/git.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
" Vim filetype plugin
diff --git a/ftplugin/gitcommit.vim b/ftplugin/gitcommit.vim
index e8810c4f..a770f911 100644
--- a/ftplugin/gitcommit.vim
+++ b/ftplugin/gitcommit.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/gitcommit.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
" Vim filetype plugin
diff --git a/ftplugin/gitconfig.vim b/ftplugin/gitconfig.vim
index 2cb8d97f..7d333642 100644
--- a/ftplugin/gitconfig.vim
+++ b/ftplugin/gitconfig.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/gitconfig.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
" Vim filetype plugin
diff --git a/ftplugin/gitignore.vim b/ftplugin/gitignore.vim
index d8cbadc5..09e7a5ed 100644
--- a/ftplugin/gitignore.vim
+++ b/ftplugin/gitignore.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/gitignore.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'gitignore') == -1
scriptencoding utf-8
diff --git a/ftplugin/gitrebase.vim b/ftplugin/gitrebase.vim
index 27213988..c471e505 100644
--- a/ftplugin/gitrebase.vim
+++ b/ftplugin/gitrebase.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/gitrebase.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
" Vim filetype plugin
diff --git a/ftplugin/gitsendemail.vim b/ftplugin/gitsendemail.vim
index e13b3ca9..38fe9a94 100644
--- a/ftplugin/gitsendemail.vim
+++ b/ftplugin/gitsendemail.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/gitsendemail.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
" Vim filetype plugin
diff --git a/ftplugin/gpg.vim b/ftplugin/gpg.vim
index d7519924..bcac352d 100644
--- a/ftplugin/gpg.vim
+++ b/ftplugin/gpg.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/gpg.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'gpg') == -1
" Vim filetype plugin file
diff --git a/ftplugin/graphql.vim b/ftplugin/graphql.vim
index 524be44c..5a4aabb5 100644
--- a/ftplugin/graphql.vim
+++ b/ftplugin/graphql.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/graphql.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1
" Copyright (c) 2016-2020 Jon Parise <jon@indelible.org>
diff --git a/ftplugin/groovy.vim b/ftplugin/groovy.vim
index ad78164c..5ad1d552 100644
--- a/ftplugin/groovy.vim
+++ b/ftplugin/groovy.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/groovy.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'groovy') == -1
" Vim filetype plugin file
diff --git a/ftplugin/group.vim b/ftplugin/group.vim
index 5f0b4d90..82a90570 100644
--- a/ftplugin/group.vim
+++ b/ftplugin/group.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/group.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'group') == -1
" Vim filetype plugin file
diff --git a/ftplugin/grub.vim b/ftplugin/grub.vim
index 03df3729..2e91a311 100644
--- a/ftplugin/grub.vim
+++ b/ftplugin/grub.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/grub.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'grub') == -1
" Vim filetype plugin file
diff --git a/ftplugin/haml.vim b/ftplugin/haml.vim
index ca5655ec..c5b216e5 100644
--- a/ftplugin/haml.vim
+++ b/ftplugin/haml.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/haml.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1
" Vim filetype plugin
diff --git a/ftplugin/hamster.vim b/ftplugin/hamster.vim
index ad5fe0d3..c89527b6 100644
--- a/ftplugin/hamster.vim
+++ b/ftplugin/hamster.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/hamster.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'hamster') == -1
" Vim filetype plugin
diff --git a/ftplugin/handlebars.vim b/ftplugin/handlebars.vim
index 649984aa..ef56d4c1 100644
--- a/ftplugin/handlebars.vim
+++ b/ftplugin/handlebars.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/handlebars.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'handlebars') == -1
if exists('b:loaded_mustache_handlebars')
diff --git a/ftplugin/hcl.vim b/ftplugin/hcl.vim
index c4b44e24..f7e9a57a 100644
--- a/ftplugin/hcl.vim
+++ b/ftplugin/hcl.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/hcl.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'hcl') == -1
" File: ftplugin/hcl.vim
diff --git a/ftplugin/help.vim b/ftplugin/help.vim
index bb6d43e8..92fc165c 100644
--- a/ftplugin/help.vim
+++ b/ftplugin/help.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/help.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'help') == -1
" Vim filetype plugin file
diff --git a/ftplugin/hgcommit.vim b/ftplugin/hgcommit.vim
index 16c92796..6c449321 100644
--- a/ftplugin/hgcommit.vim
+++ b/ftplugin/hgcommit.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/hgcommit.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'hgcommit') == -1
" Vim filetype plugin file
diff --git a/ftplugin/hive.vim b/ftplugin/hive.vim
index dc950624..a95a17ad 100644
--- a/ftplugin/hive.vim
+++ b/ftplugin/hive.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/hive.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'hive') == -1
setlocal comments=:--
diff --git a/ftplugin/hog.vim b/ftplugin/hog.vim
index b0541a39..bd0ef9ff 100644
--- a/ftplugin/hog.vim
+++ b/ftplugin/hog.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/hog.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'hog') == -1
" Vim filetype plugin
diff --git a/ftplugin/hostconf.vim b/ftplugin/hostconf.vim
index a6a9a840..72b955bd 100644
--- a/ftplugin/hostconf.vim
+++ b/ftplugin/hostconf.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/hostconf.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'hostconf') == -1
" Vim filetype plugin file
diff --git a/ftplugin/hostsaccess.vim b/ftplugin/hostsaccess.vim
index 36a67e90..72434da3 100644
--- a/ftplugin/hostsaccess.vim
+++ b/ftplugin/hostsaccess.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/hostsaccess.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'hostsaccess') == -1
" Vim filetype plugin file
diff --git a/ftplugin/html.vim b/ftplugin/html.vim
index d65502be..f78f9d77 100644
--- a/ftplugin/html.vim
+++ b/ftplugin/html.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/html.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html') == -1
" Vim filetype plugin file
diff --git a/ftplugin/htmldjango.vim b/ftplugin/htmldjango.vim
index 55489c0f..92ca3fe4 100644
--- a/ftplugin/htmldjango.vim
+++ b/ftplugin/htmldjango.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/htmldjango.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'htmldjango') == -1
" Vim filetype plugin file
diff --git a/ftplugin/i3config.vim b/ftplugin/i3config.vim
index dbb95e33..628d01ce 100644
--- a/ftplugin/i3config.vim
+++ b/ftplugin/i3config.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/i3config.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'i3') == -1
setlocal commentstring=#\ %s
diff --git a/ftplugin/idris.vim b/ftplugin/idris.vim
index ae46bedd..454591a5 100644
--- a/ftplugin/idris.vim
+++ b/ftplugin/idris.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/idris.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'idris') == -1
if bufname('%') == "idris-response"
diff --git a/ftplugin/idris2.vim b/ftplugin/idris2.vim
index 420bc52d..7e39f23e 100644
--- a/ftplugin/idris2.vim
+++ b/ftplugin/idris2.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/idris2.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'idris2') == -1
if bufname('%') == "idris-response"
diff --git a/ftplugin/indent.vim b/ftplugin/indent.vim
index c4c1ab4a..f426b9b3 100644
--- a/ftplugin/indent.vim
+++ b/ftplugin/indent.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/indent.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'indent') == -1
" Vim filetype plugin file
diff --git a/ftplugin/ion.vim b/ftplugin/ion.vim
index 88bb5238..c6cfd8a5 100644
--- a/ftplugin/ion.vim
+++ b/ftplugin/ion.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/ion.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ion') == -1
diff --git a/ftplugin/j.vim b/ftplugin/j.vim
index 0d8ef152..9dd87d9d 100644
--- a/ftplugin/j.vim
+++ b/ftplugin/j.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/j.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'j') == -1
" Vim filetype plugin
diff --git a/ftplugin/java.vim b/ftplugin/java.vim
index e41d53e0..97a4af13 100644
--- a/ftplugin/java.vim
+++ b/ftplugin/java.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/java.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'java') == -1
" Vim filetype plugin file
diff --git a/ftplugin/jproperties.vim b/ftplugin/jproperties.vim
index a9cf4e62..f9c282c1 100644
--- a/ftplugin/jproperties.vim
+++ b/ftplugin/jproperties.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/jproperties.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jproperties') == -1
" Vim filetype plugin
diff --git a/ftplugin/jq.vim b/ftplugin/jq.vim
index 0e7a3a54..2fd91c55 100644
--- a/ftplugin/jq.vim
+++ b/ftplugin/jq.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/jq.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jq') == -1
setlocal commentstring=#%s
diff --git a/ftplugin/json.vim b/ftplugin/json.vim
index 2d51fbd7..682f24e9 100644
--- a/ftplugin/json.vim
+++ b/ftplugin/json.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/json.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'json') == -1
" Vim syntax file
diff --git a/ftplugin/jsonnet.vim b/ftplugin/jsonnet.vim
index 41fa83ff..b18fb7d4 100644
--- a/ftplugin/jsonnet.vim
+++ b/ftplugin/jsonnet.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/jsonnet.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jsonnet') == -1
diff --git a/ftplugin/jsp.vim b/ftplugin/jsp.vim
index 091e359a..c5eb1ae7 100644
--- a/ftplugin/jsp.vim
+++ b/ftplugin/jsp.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/jsp.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jsp') == -1
" Vim filetype plugin file
diff --git a/ftplugin/julia.vim b/ftplugin/julia.vim
index 554f9151..96aaca5b 100644
--- a/ftplugin/julia.vim
+++ b/ftplugin/julia.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/julia.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1
" Vim filetype plugin file
diff --git a/ftplugin/juliadoc.vim b/ftplugin/juliadoc.vim
index 2d9e2168..66c7f556 100644
--- a/ftplugin/juliadoc.vim
+++ b/ftplugin/juliadoc.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/juliadoc.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1
" Vim filetype plugin file
diff --git a/ftplugin/kconfig.vim b/ftplugin/kconfig.vim
index b106b3d9..f25135f4 100644
--- a/ftplugin/kconfig.vim
+++ b/ftplugin/kconfig.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/kconfig.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'kconfig') == -1
" Vim filetype plugin file
diff --git a/ftplugin/kotlin.vim b/ftplugin/kotlin.vim
index f9cc4303..9c85505f 100644
--- a/ftplugin/kotlin.vim
+++ b/ftplugin/kotlin.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/kotlin.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'kotlin') == -1
if exists('b:did_ftplugin') | finish | endif
diff --git a/ftplugin/kwt.vim b/ftplugin/kwt.vim
index 5bc89215..152b8903 100644
--- a/ftplugin/kwt.vim
+++ b/ftplugin/kwt.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/kwt.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'kwt') == -1
" Vim filetype plugin file
diff --git a/ftplugin/ld.vim b/ftplugin/ld.vim
index bd9723f4..3a6d6647 100644
--- a/ftplugin/ld.vim
+++ b/ftplugin/ld.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/ld.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ld') == -1
" Vim filetype plugin file
diff --git a/ftplugin/less.vim b/ftplugin/less.vim
index 2a8ff172..eb9d5b84 100644
--- a/ftplugin/less.vim
+++ b/ftplugin/less.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/less.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'less') == -1
" Vim filetype plugin
diff --git a/ftplugin/lftp.vim b/ftplugin/lftp.vim
index f9e0be86..a3ee81a8 100644
--- a/ftplugin/lftp.vim
+++ b/ftplugin/lftp.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/lftp.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'lftp') == -1
" Vim filetype plugin file
diff --git a/ftplugin/libao.vim b/ftplugin/libao.vim
index d6d6e660..cf3469a5 100644
--- a/ftplugin/libao.vim
+++ b/ftplugin/libao.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/libao.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'libao') == -1
" Vim filetype plugin file
diff --git a/ftplugin/lilypond.vim b/ftplugin/lilypond.vim
index 9debb532..f8462fa3 100644
--- a/ftplugin/lilypond.vim
+++ b/ftplugin/lilypond.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/lilypond.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'lilypond') == -1
" LilyPond filetype plugin
diff --git a/ftplugin/limits.vim b/ftplugin/limits.vim
index 873f9341..6dec8a52 100644
--- a/ftplugin/limits.vim
+++ b/ftplugin/limits.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/limits.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'limits') == -1
" Vim filetype plugin file
diff --git a/ftplugin/liquid.vim b/ftplugin/liquid.vim
index 5ffbade6..c7e42872 100644
--- a/ftplugin/liquid.vim
+++ b/ftplugin/liquid.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/liquid.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'liquid') == -1
" Vim filetype plugin
diff --git a/ftplugin/lisp.vim b/ftplugin/lisp.vim
index eaae2795..8de27ece 100644
--- a/ftplugin/lisp.vim
+++ b/ftplugin/lisp.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/lisp.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'lisp') == -1
" Vim filetype plugin
diff --git a/ftplugin/litcoffee.vim b/ftplugin/litcoffee.vim
index 31284a8d..f0c84c70 100644
--- a/ftplugin/litcoffee.vim
+++ b/ftplugin/litcoffee.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/litcoffee.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1
runtime ftplugin/coffee.vim
diff --git a/ftplugin/llvm.vim b/ftplugin/llvm.vim
index a7b93e7b..109dbb51 100644
--- a/ftplugin/llvm.vim
+++ b/ftplugin/llvm.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/llvm.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'llvm') == -1
" Vim filetype plugin file
diff --git a/ftplugin/logcheck.vim b/ftplugin/logcheck.vim
index 1c1d8510..1dbcf551 100644
--- a/ftplugin/logcheck.vim
+++ b/ftplugin/logcheck.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/logcheck.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'logcheck') == -1
" Vim filetype plugin file
diff --git a/ftplugin/loginaccess.vim b/ftplugin/loginaccess.vim
index e19e9d8d..c2850aed 100644
--- a/ftplugin/loginaccess.vim
+++ b/ftplugin/loginaccess.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/loginaccess.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'loginaccess') == -1
" Vim filetype plugin file
diff --git a/ftplugin/logindefs.vim b/ftplugin/logindefs.vim
index be22441f..c917bfb6 100644
--- a/ftplugin/logindefs.vim
+++ b/ftplugin/logindefs.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/logindefs.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'logindefs') == -1
" Vim filetype plugin file
diff --git a/ftplugin/logtalk.vim b/ftplugin/logtalk.vim
index 2b79723f..6310b4c4 100644
--- a/ftplugin/logtalk.vim
+++ b/ftplugin/logtalk.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/logtalk.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'logtalk') == -1
" Logtalk filetype plugin file
diff --git a/ftplugin/lprolog.vim b/ftplugin/lprolog.vim
index 8f465460..edf3c23e 100644
--- a/ftplugin/lprolog.vim
+++ b/ftplugin/lprolog.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/lprolog.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'lprolog') == -1
" Vim settings file
diff --git a/ftplugin/ls.vim b/ftplugin/ls.vim
index 5f9af33d..87eee4ba 100644
--- a/ftplugin/ls.vim
+++ b/ftplugin/ls.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/ls.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'livescript') == -1
" Language: LiveScript
diff --git a/ftplugin/m4.vim b/ftplugin/m4.vim
index 16479d43..12c53b2f 100644
--- a/ftplugin/m4.vim
+++ b/ftplugin/m4.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/m4.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'm4') == -1
" Vim filetype plugin file
diff --git a/ftplugin/mail.vim b/ftplugin/mail.vim
index b3d7f5b9..567bb6f0 100644
--- a/ftplugin/mail.vim
+++ b/ftplugin/mail.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/mail.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mail') == -1
" Vim filetype plugin file
diff --git a/ftplugin/mailaliases.vim b/ftplugin/mailaliases.vim
index ac7466cc..9ac29c76 100644
--- a/ftplugin/mailaliases.vim
+++ b/ftplugin/mailaliases.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/mailaliases.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mailaliases') == -1
" Vim filetype plugin file
diff --git a/ftplugin/mailcap.vim b/ftplugin/mailcap.vim
index fca0215b..5da2d957 100644
--- a/ftplugin/mailcap.vim
+++ b/ftplugin/mailcap.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/mailcap.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mailcap') == -1
" Vim filetype plugin file
diff --git a/ftplugin/make.vim b/ftplugin/make.vim
index 18d69dc8..635c8126 100644
--- a/ftplugin/make.vim
+++ b/ftplugin/make.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/make.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'make') == -1
" Vim filetype plugin file
diff --git a/ftplugin/mako.vim b/ftplugin/mako.vim
index 6d63492b..a25fedf2 100644
--- a/ftplugin/mako.vim
+++ b/ftplugin/mako.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/mako.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mako') == -1
" Vim filetype plugin file
diff --git a/ftplugin/manconf.vim b/ftplugin/manconf.vim
index cfe01594..255f4f32 100644
--- a/ftplugin/manconf.vim
+++ b/ftplugin/manconf.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/manconf.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'manconf') == -1
" Vim filetype plugin file
diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim
index 53e94872..2936ac00 100644
--- a/ftplugin/markdown.vim
+++ b/ftplugin/markdown.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/markdown.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'markdown') == -1
"TODO print messages when on visual mode. I only see VISUAL, not the messages.
diff --git a/ftplugin/meson.vim b/ftplugin/meson.vim
index a187d100..eb3105b5 100644
--- a/ftplugin/meson.vim
+++ b/ftplugin/meson.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/meson.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'meson') == -1
" Vim filetype plugin file
diff --git a/ftplugin/mf.vim b/ftplugin/mf.vim
index 1a005d66..4f63dc03 100644
--- a/ftplugin/mf.vim
+++ b/ftplugin/mf.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/mf.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mf') == -1
" Vim filetype plugin file
diff --git a/ftplugin/mma.vim b/ftplugin/mma.vim
index 4a2581eb..b22ce1c9 100644
--- a/ftplugin/mma.vim
+++ b/ftplugin/mma.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/mma.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mathematica') == -1
"Vim filetype plugin
diff --git a/ftplugin/modconf.vim b/ftplugin/modconf.vim
index 07ea1669..bf73a0cc 100644
--- a/ftplugin/modconf.vim
+++ b/ftplugin/modconf.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/modconf.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'modconf') == -1
" Vim filetype plugin file
diff --git a/ftplugin/moon.vim b/ftplugin/moon.vim
index a4eca9a5..09e9c7bc 100644
--- a/ftplugin/moon.vim
+++ b/ftplugin/moon.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/moon.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'moonscript') == -1
" Language: MoonScript
diff --git a/ftplugin/mp.vim b/ftplugin/mp.vim
index a13f5cff..2cf65bb1 100644
--- a/ftplugin/mp.vim
+++ b/ftplugin/mp.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/mp.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mp') == -1
" Vim filetype plugin file
diff --git a/ftplugin/mplayerconf.vim b/ftplugin/mplayerconf.vim
index b3587bdc..a251ebf2 100644
--- a/ftplugin/mplayerconf.vim
+++ b/ftplugin/mplayerconf.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/mplayerconf.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mplayerconf') == -1
" Vim filetype plugin file
diff --git a/ftplugin/mrxvtrc.vim b/ftplugin/mrxvtrc.vim
index bf73b0e4..bfe04c1c 100644
--- a/ftplugin/mrxvtrc.vim
+++ b/ftplugin/mrxvtrc.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/mrxvtrc.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mrxvtrc') == -1
" Created : Wed 26 Apr 2006 01:20:53 AM CDT
diff --git a/ftplugin/mustache.vim b/ftplugin/mustache.vim
index 7ca19b76..349ec236 100644
--- a/ftplugin/mustache.vim
+++ b/ftplugin/mustache.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/mustache.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'handlebars') == -1
runtime! ftplugin/handlebars*.vim ftplugin/handlebars/*.vim
diff --git a/ftplugin/muttrc.vim b/ftplugin/muttrc.vim
index 1d77a63f..ebe86806 100644
--- a/ftplugin/muttrc.vim
+++ b/ftplugin/muttrc.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/muttrc.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'muttrc') == -1
" Vim filetype plugin file
diff --git a/ftplugin/nanorc.vim b/ftplugin/nanorc.vim
index a116e318..1363191c 100644
--- a/ftplugin/nanorc.vim
+++ b/ftplugin/nanorc.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/nanorc.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nanorc') == -1
" Vim filetype plugin file
diff --git a/ftplugin/neomuttrc.vim b/ftplugin/neomuttrc.vim
index 660931d0..a63769cb 100644
--- a/ftplugin/neomuttrc.vim
+++ b/ftplugin/neomuttrc.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/neomuttrc.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'neomuttrc') == -1
" Vim filetype plugin file
diff --git a/ftplugin/netrc.vim b/ftplugin/netrc.vim
index 75f5ff7f..071362e4 100644
--- a/ftplugin/netrc.vim
+++ b/ftplugin/netrc.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/netrc.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'netrc') == -1
" Vim filetype plugin file
diff --git a/ftplugin/nginx.vim b/ftplugin/nginx.vim
index 1ae40849..13a50b2a 100644
--- a/ftplugin/nginx.vim
+++ b/ftplugin/nginx.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/nginx.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nginx') == -1
setlocal commentstring=#\ %s
diff --git a/ftplugin/nix.vim b/ftplugin/nix.vim
index c3e745a9..7863be6d 100644
--- a/ftplugin/nix.vim
+++ b/ftplugin/nix.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/nix.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nix') == -1
" Vim filetype plugin
diff --git a/ftplugin/nroff.vim b/ftplugin/nroff.vim
index 2d040e3a..091fb018 100644
--- a/ftplugin/nroff.vim
+++ b/ftplugin/nroff.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/nroff.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nroff') == -1
" Vim filetype plugin
diff --git a/ftplugin/nsis.vim b/ftplugin/nsis.vim
index 8820f066..edbe9192 100644
--- a/ftplugin/nsis.vim
+++ b/ftplugin/nsis.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/nsis.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nsis') == -1
" Vim ftplugin file
diff --git a/ftplugin/oasis.vim b/ftplugin/oasis.vim
index 850889eb..0b2150d5 100644
--- a/ftplugin/oasis.vim
+++ b/ftplugin/oasis.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/oasis.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1
diff --git a/ftplugin/objc.vim b/ftplugin/objc.vim
index ed76e4bd..909a1442 100644
--- a/ftplugin/objc.vim
+++ b/ftplugin/objc.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/objc.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'objc') == -1
" Use C++ style comment strings with commentary.vim
diff --git a/ftplugin/ocaml.vim b/ftplugin/ocaml.vim
index 87ad6fa6..1c92e7d9 100644
--- a/ftplugin/ocaml.vim
+++ b/ftplugin/ocaml.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/ocaml.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1
" Language: OCaml
diff --git a/ftplugin/ocamlbuild_tags.vim b/ftplugin/ocamlbuild_tags.vim
index 850889eb..373ee28f 100644
--- a/ftplugin/ocamlbuild_tags.vim
+++ b/ftplugin/ocamlbuild_tags.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/ocamlbuild_tags.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1
diff --git a/ftplugin/occam.vim b/ftplugin/occam.vim
index c428c13b..e5bf6b85 100644
--- a/ftplugin/occam.vim
+++ b/ftplugin/occam.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/occam.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'occam') == -1
" Vim filetype plugin file
diff --git a/ftplugin/omake.vim b/ftplugin/omake.vim
index 656cc6a9..c78d15d0 100644
--- a/ftplugin/omake.vim
+++ b/ftplugin/omake.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/omake.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1
" Vim filetype plugin file
diff --git a/ftplugin/opencl.vim b/ftplugin/opencl.vim
index c9fa5673..39416e67 100644
--- a/ftplugin/opencl.vim
+++ b/ftplugin/opencl.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/opencl.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'opencl') == -1
if exists("b:did_ftplugin") | finish | endif
diff --git a/ftplugin/pamconf.vim b/ftplugin/pamconf.vim
index e8925de4..7628224b 100644
--- a/ftplugin/pamconf.vim
+++ b/ftplugin/pamconf.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/pamconf.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'pamconf') == -1
" Vim filetype plugin file
diff --git a/ftplugin/pascal.vim b/ftplugin/pascal.vim
index f026da08..f33a1946 100644
--- a/ftplugin/pascal.vim
+++ b/ftplugin/pascal.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/pascal.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'pascal') == -1
" Vim filetype plugin file
diff --git a/ftplugin/passwd.vim b/ftplugin/passwd.vim
index d1375872..2e3ff220 100644
--- a/ftplugin/passwd.vim
+++ b/ftplugin/passwd.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/passwd.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'passwd') == -1
" Vim filetype plugin file
diff --git a/ftplugin/pdf.vim b/ftplugin/pdf.vim
index 12dbc603..d2acbeaf 100644
--- a/ftplugin/pdf.vim
+++ b/ftplugin/pdf.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/pdf.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'pdf') == -1
" Vim filetype plugin file
diff --git a/ftplugin/perl.vim b/ftplugin/perl.vim
index b0eaf1ba..e95319cc 100644
--- a/ftplugin/perl.vim
+++ b/ftplugin/perl.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/perl.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
" Vim filetype plugin file
diff --git a/ftplugin/pinfo.vim b/ftplugin/pinfo.vim
index 1fbcab16..d76a1fed 100644
--- a/ftplugin/pinfo.vim
+++ b/ftplugin/pinfo.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/pinfo.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'pinfo') == -1
" Vim filetype plugin file
diff --git a/ftplugin/plantuml.vim b/ftplugin/plantuml.vim
index 9db919de..acfd5e03 100644
--- a/ftplugin/plantuml.vim
+++ b/ftplugin/plantuml.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/plantuml.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'plantuml') == -1
scriptencoding utf-8
diff --git a/ftplugin/pony.vim b/ftplugin/pony.vim
index df726643..bf1311f8 100644
--- a/ftplugin/pony.vim
+++ b/ftplugin/pony.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/pony.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'pony') == -1
" Vim filetype plugin file
diff --git a/ftplugin/postscr.vim b/ftplugin/postscr.vim
index 7730cdc8..5539b765 100644
--- a/ftplugin/postscr.vim
+++ b/ftplugin/postscr.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/postscr.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'postscr') == -1
" Vim filetype plugin file
diff --git a/ftplugin/procmail.vim b/ftplugin/procmail.vim
index 7bc335d7..38126994 100644
--- a/ftplugin/procmail.vim
+++ b/ftplugin/procmail.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/procmail.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'procmail') == -1
" Vim filetype plugin file
diff --git a/ftplugin/prolog.vim b/ftplugin/prolog.vim
index bd813dce..1b92ed90 100644
--- a/ftplugin/prolog.vim
+++ b/ftplugin/prolog.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/prolog.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'prolog') == -1
" Vim filetype plugin file
diff --git a/ftplugin/protocols.vim b/ftplugin/protocols.vim
index 293bc6c2..fa268d39 100644
--- a/ftplugin/protocols.vim
+++ b/ftplugin/protocols.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/protocols.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'protocols') == -1
" Vim filetype plugin file
diff --git a/ftplugin/ps1.vim b/ftplugin/ps1.vim
index f14a31eb..5d1622c8 100644
--- a/ftplugin/ps1.vim
+++ b/ftplugin/ps1.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/ps1.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'powershell') == -1
" Vim filetype plugin file
diff --git a/ftplugin/ps1xml.vim b/ftplugin/ps1xml.vim
index a0233fd8..a859e919 100644
--- a/ftplugin/ps1xml.vim
+++ b/ftplugin/ps1xml.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/ps1xml.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'powershell') == -1
" Vim filetype plugin file
diff --git a/ftplugin/pug.vim b/ftplugin/pug.vim
index 1bd08b39..7b58b2ed 100644
--- a/ftplugin/pug.vim
+++ b/ftplugin/pug.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/pug.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'pug') == -1
" Vim filetype plugin
diff --git a/ftplugin/puppet.vim b/ftplugin/puppet.vim
index 53247958..0b9bd72d 100644
--- a/ftplugin/puppet.vim
+++ b/ftplugin/puppet.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/puppet.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
" Vim filetype plugin
diff --git a/ftplugin/puppet_tagbar.vim b/ftplugin/puppet_tagbar.vim
index 36772da7..68240b51 100644
--- a/ftplugin/puppet_tagbar.vim
+++ b/ftplugin/puppet_tagbar.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/puppet_tagbar.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
" Puppet set up for Tagbar plugin
diff --git a/ftplugin/purescript.vim b/ftplugin/purescript.vim
index dba11b3b..96be330b 100644
--- a/ftplugin/purescript.vim
+++ b/ftplugin/purescript.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/purescript.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'purescript') == -1
setlocal comments=s1fl:{-,mb:\ \ ,ex:-},:--\ \|,:--
diff --git a/ftplugin/pyrex.vim b/ftplugin/pyrex.vim
index 62b8e2ae..02b10684 100644
--- a/ftplugin/pyrex.vim
+++ b/ftplugin/pyrex.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/pyrex.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'pyrex') == -1
" Vim filetype plugin file
diff --git a/ftplugin/qml.vim b/ftplugin/qml.vim
index f4a96fa6..e61e983c 100644
--- a/ftplugin/qml.vim
+++ b/ftplugin/qml.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/qml.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'qml') == -1
" Vim filetype plugin file
diff --git a/ftplugin/quake.vim b/ftplugin/quake.vim
index bab3eca1..44e8f4f3 100644
--- a/ftplugin/quake.vim
+++ b/ftplugin/quake.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/quake.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'quake') == -1
" Vim filetype plugin file
diff --git a/ftplugin/racket.vim b/ftplugin/racket.vim
index 1a3ba189..caf377cd 100644
--- a/ftplugin/racket.vim
+++ b/ftplugin/racket.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/racket.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'racket') == -1
" Language: Racket
diff --git a/ftplugin/raku.vim b/ftplugin/raku.vim
index dee6197e..c16c536e 100644
--- a/ftplugin/raku.vim
+++ b/ftplugin/raku.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/raku.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'raku') == -1
" Vim filetype plugin file
diff --git a/ftplugin/raml.vim b/ftplugin/raml.vim
index b7cef80e..7c83588e 100644
--- a/ftplugin/raml.vim
+++ b/ftplugin/raml.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/raml.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'raml') == -1
set ts=2 sts=2 sw=2 et
diff --git a/ftplugin/razor.vim b/ftplugin/razor.vim
index 2d516bfc..8e6c86a5 100644
--- a/ftplugin/razor.vim
+++ b/ftplugin/razor.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/razor.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'razor') == -1
if exists("b:did_ftplugin")
diff --git a/ftplugin/readline.vim b/ftplugin/readline.vim
index 042f4b6b..afb4d3a8 100644
--- a/ftplugin/readline.vim
+++ b/ftplugin/readline.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/readline.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'readline') == -1
" Vim filetype plugin file
diff --git a/ftplugin/reva.vim b/ftplugin/reva.vim
index 5fe5f59f..52665d59 100644
--- a/ftplugin/reva.vim
+++ b/ftplugin/reva.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/reva.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'reva') == -1
" Vim ftplugin file
diff --git a/ftplugin/rmd.vim b/ftplugin/rmd.vim
index 32fcc961..e62efad6 100644
--- a/ftplugin/rmd.vim
+++ b/ftplugin/rmd.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/rmd.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rmd') == -1
" Vim filetype plugin file
diff --git a/ftplugin/rnc.vim b/ftplugin/rnc.vim
index 78f30817..0ede84a3 100644
--- a/ftplugin/rnc.vim
+++ b/ftplugin/rnc.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/rnc.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rnc') == -1
" Vim filetype plugin file
diff --git a/ftplugin/rnoweb.vim b/ftplugin/rnoweb.vim
index 1253c451..c04a9dc2 100644
--- a/ftplugin/rnoweb.vim
+++ b/ftplugin/rnoweb.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/rnoweb.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rnoweb') == -1
" Vim filetype plugin file
diff --git a/ftplugin/rpl.vim b/ftplugin/rpl.vim
index bfefa15a..011bd945 100644
--- a/ftplugin/rpl.vim
+++ b/ftplugin/rpl.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/rpl.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rpl') == -1
" Vim filetype plugin file
diff --git a/ftplugin/rrst.vim b/ftplugin/rrst.vim
index 7ddc0fc7..95945a63 100644
--- a/ftplugin/rrst.vim
+++ b/ftplugin/rrst.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/rrst.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rrst') == -1
" Vim filetype plugin file
diff --git a/ftplugin/rst.vim b/ftplugin/rst.vim
index 5265edcf..d1d71c29 100644
--- a/ftplugin/rst.vim
+++ b/ftplugin/rst.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/rst.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rst') == -1
" reStructuredText filetype plugin file
diff --git a/ftplugin/ruby.vim b/ftplugin/ruby.vim
index edca30dd..c20a08b2 100644
--- a/ftplugin/ruby.vim
+++ b/ftplugin/ruby.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/ruby.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
" Vim filetype plugin
diff --git a/ftplugin/rust.vim b/ftplugin/rust.vim
index 211f86b0..408a9199 100644
--- a/ftplugin/rust.vim
+++ b/ftplugin/rust.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/rust.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
" Language: Rust
diff --git a/ftplugin/rust/tagbar.vim b/ftplugin/rust/tagbar.vim
index 9533a682..875b766a 100644
--- a/ftplugin/rust/tagbar.vim
+++ b/ftplugin/rust/tagbar.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/rust/tagbar.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
"
diff --git a/ftplugin/sass.vim b/ftplugin/sass.vim
index d13a9e18..a5b66a83 100644
--- a/ftplugin/sass.vim
+++ b/ftplugin/sass.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/sass.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'sass') == -1
" Vim filetype plugin
diff --git a/ftplugin/sbt.vim b/ftplugin/sbt.vim
index 13601c87..017f63ab 100644
--- a/ftplugin/sbt.vim
+++ b/ftplugin/sbt.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/sbt.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'sbt') == -1
" Vim filetype plugin file
diff --git a/ftplugin/scala.vim b/ftplugin/scala.vim
index dafda59f..0d569e10 100644
--- a/ftplugin/scala.vim
+++ b/ftplugin/scala.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/scala.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1
" Vim filetype plugin
diff --git a/ftplugin/scala.xpt.vim b/ftplugin/scala.xpt.vim
index 1bab04f0..b49230a1 100644
--- a/ftplugin/scala.xpt.vim
+++ b/ftplugin/scala.xpt.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/scala.xpt.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1
diff --git a/ftplugin/scala/tagbar.vim b/ftplugin/scala/tagbar.vim
index e2f416d9..a60bf235 100644
--- a/ftplugin/scala/tagbar.vim
+++ b/ftplugin/scala/tagbar.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/scala/tagbar.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1
"
diff --git a/ftplugin/scheme.vim b/ftplugin/scheme.vim
index e79efe7e..6b791eec 100644
--- a/ftplugin/scheme.vim
+++ b/ftplugin/scheme.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/scheme.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scheme') == -1
" Vim filetype plugin file
diff --git a/ftplugin/screen.vim b/ftplugin/screen.vim
index ecd1f5ac..83e5f7e3 100644
--- a/ftplugin/screen.vim
+++ b/ftplugin/screen.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/screen.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'screen') == -1
" Vim filetype plugin file
diff --git a/ftplugin/scss.vim b/ftplugin/scss.vim
index e134f298..55db812a 100644
--- a/ftplugin/scss.vim
+++ b/ftplugin/scss.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/scss.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scss') == -1
if exists('b:did_indent') && b:did_indent
diff --git a/ftplugin/sensors.vim b/ftplugin/sensors.vim
index bdf1ea91..cc91a810 100644
--- a/ftplugin/sensors.vim
+++ b/ftplugin/sensors.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/sensors.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'sensors') == -1
" Vim filetype plugin file
diff --git a/ftplugin/services.vim b/ftplugin/services.vim
index c676b8a7..2c0f414a 100644
--- a/ftplugin/services.vim
+++ b/ftplugin/services.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/services.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'services') == -1
" Vim filetype plugin file
diff --git a/ftplugin/setserial.vim b/ftplugin/setserial.vim
index 270f2e0f..50560bfe 100644
--- a/ftplugin/setserial.vim
+++ b/ftplugin/setserial.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/setserial.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'setserial') == -1
" Vim filetype plugin file
diff --git a/ftplugin/sexplib.vim b/ftplugin/sexplib.vim
index 5726deee..8b4029e2 100644
--- a/ftplugin/sexplib.vim
+++ b/ftplugin/sexplib.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/sexplib.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1
" Language: Sexplib
diff --git a/ftplugin/sieve.vim b/ftplugin/sieve.vim
index e14eadf4..b5d36392 100644
--- a/ftplugin/sieve.vim
+++ b/ftplugin/sieve.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/sieve.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'sieve') == -1
" Vim filetype plugin file
diff --git a/ftplugin/slim.vim b/ftplugin/slim.vim
index 9051e454..e15389d9 100644
--- a/ftplugin/slim.vim
+++ b/ftplugin/slim.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/slim.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'slim') == -1
if exists("b:did_ftplugin")
diff --git a/ftplugin/slpconf.vim b/ftplugin/slpconf.vim
index c03df0c1..1140f20b 100644
--- a/ftplugin/slpconf.vim
+++ b/ftplugin/slpconf.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/slpconf.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'slpconf') == -1
" Vim filetype plugin file
diff --git a/ftplugin/slpreg.vim b/ftplugin/slpreg.vim
index 5e6bcfeb..ca09dfb5 100644
--- a/ftplugin/slpreg.vim
+++ b/ftplugin/slpreg.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/slpreg.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'slpreg') == -1
" Vim filetype plugin file
diff --git a/ftplugin/slpspi.vim b/ftplugin/slpspi.vim
index 1e253e1f..ef4722c9 100644
--- a/ftplugin/slpspi.vim
+++ b/ftplugin/slpspi.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/slpspi.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'slpspi') == -1
" Vim filetype plugin file
diff --git a/ftplugin/smt2.vim b/ftplugin/smt2.vim
index b9d01baf..b39fe64d 100644
--- a/ftplugin/smt2.vim
+++ b/ftplugin/smt2.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/smt2.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'smt2') == -1
setlocal iskeyword+=-,:,#,',$
diff --git a/ftplugin/solidity.vim b/ftplugin/solidity.vim
index decf041d..853c53d2 100644
--- a/ftplugin/solidity.vim
+++ b/ftplugin/solidity.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/solidity.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'solidity') == -1
setlocal commentstring=//\ %s
diff --git a/ftplugin/spec.vim b/ftplugin/spec.vim
index cf93a223..900b0e49 100644
--- a/ftplugin/spec.vim
+++ b/ftplugin/spec.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/spec.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'spec') == -1
" Plugin to update the %changelog section of RPM spec files
diff --git a/ftplugin/sql.vim b/ftplugin/sql.vim
index 41e1d2bf..befd023b 100644
--- a/ftplugin/sql.vim
+++ b/ftplugin/sql.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/sql.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'sql') == -1
" SQL filetype plugin file
diff --git a/ftplugin/sshconfig.vim b/ftplugin/sshconfig.vim
index 3233a591..9519f30b 100644
--- a/ftplugin/sshconfig.vim
+++ b/ftplugin/sshconfig.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/sshconfig.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'sshconfig') == -1
" Vim filetype plugin file
diff --git a/ftplugin/stylus.vim b/ftplugin/stylus.vim
index 66ed8c6a..c39decc3 100644
--- a/ftplugin/stylus.vim
+++ b/ftplugin/stylus.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/stylus.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'stylus') == -1
" Vim filetype plugin
diff --git a/ftplugin/sudoers.vim b/ftplugin/sudoers.vim
index 61a5f708..26ce5836 100644
--- a/ftplugin/sudoers.vim
+++ b/ftplugin/sudoers.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/sudoers.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'sudoers') == -1
" Vim filetype plugin file
diff --git a/ftplugin/svelte.vim b/ftplugin/svelte.vim
index 3c3df23a..d8bd58d5 100644
--- a/ftplugin/svelte.vim
+++ b/ftplugin/svelte.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/svelte.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'svelte') == -1
" Vim filetype plugin
diff --git a/ftplugin/swift.vim b/ftplugin/swift.vim
index 78394bc5..d1e1de89 100644
--- a/ftplugin/swift.vim
+++ b/ftplugin/swift.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/swift.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'swift') == -1
setlocal commentstring=//\ %s
diff --git a/ftplugin/swiftgyb.vim b/ftplugin/swiftgyb.vim
index a8f2ebcf..0870048b 100644
--- a/ftplugin/swiftgyb.vim
+++ b/ftplugin/swiftgyb.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/swiftgyb.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'swiftgyb') == -1
" This source file is part of the Swift.org open source project
diff --git a/ftplugin/sysctl.vim b/ftplugin/sysctl.vim
index 7288f020..d8dca859 100644
--- a/ftplugin/sysctl.vim
+++ b/ftplugin/sysctl.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/sysctl.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'sysctl') == -1
" Vim filetype plugin file
diff --git a/ftplugin/systemd.vim b/ftplugin/systemd.vim
index 6e757d91..ee05ed2a 100644
--- a/ftplugin/systemd.vim
+++ b/ftplugin/systemd.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/systemd.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'systemd') == -1
" Vim filetype plugin file
diff --git a/ftplugin/systemverilog.vim b/ftplugin/systemverilog.vim
index 49502bfa..6b088c6c 100644
--- a/ftplugin/systemverilog.vim
+++ b/ftplugin/systemverilog.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/systemverilog.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'systemverilog') == -1
" Vim filetype plugin file
diff --git a/ftplugin/tablegen.vim b/ftplugin/tablegen.vim
index 9e895afc..04b8c4e6 100644
--- a/ftplugin/tablegen.vim
+++ b/ftplugin/tablegen.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/tablegen.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'llvm') == -1
" Vim filetype plugin file
diff --git a/ftplugin/tcl.vim b/ftplugin/tcl.vim
index d9bd25c2..c2dfd035 100644
--- a/ftplugin/tcl.vim
+++ b/ftplugin/tcl.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/tcl.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'tcl') == -1
" Vim filetype plugin file
diff --git a/ftplugin/terminfo.vim b/ftplugin/terminfo.vim
index 6466f3c6..ab948691 100644
--- a/ftplugin/terminfo.vim
+++ b/ftplugin/terminfo.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/terminfo.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'terminfo') == -1
" Vim filetype plugin file
diff --git a/ftplugin/terraform.vim b/ftplugin/terraform.vim
index 3786648f..8edc509d 100644
--- a/ftplugin/terraform.vim
+++ b/ftplugin/terraform.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/terraform.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'terraform') == -1
" terraform.vim - basic vim/terraform integration
diff --git a/ftplugin/tex.vim b/ftplugin/tex.vim
index 4890dba3..b2ab4560 100644
--- a/ftplugin/tex.vim
+++ b/ftplugin/tex.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/tex.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'tex') == -1
" LaTeX filetype plugin
diff --git a/ftplugin/text.vim b/ftplugin/text.vim
index 8dcebd6d..7c13d82f 100644
--- a/ftplugin/text.vim
+++ b/ftplugin/text.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/text.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'text') == -1
" Vim filetype plugin
diff --git a/ftplugin/textile.vim b/ftplugin/textile.vim
index 829e80d0..d260e848 100644
--- a/ftplugin/textile.vim
+++ b/ftplugin/textile.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/textile.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'textile') == -1
" textile.vim
diff --git a/ftplugin/tmux.vim b/ftplugin/tmux.vim
index 4b830a6b..4965032b 100644
--- a/ftplugin/tmux.vim
+++ b/ftplugin/tmux.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/tmux.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'tmux') == -1
" Vim filetype plugin file
diff --git a/ftplugin/toml.vim b/ftplugin/toml.vim
index ad884308..ce5a9fa1 100644
--- a/ftplugin/toml.vim
+++ b/ftplugin/toml.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/toml.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'toml') == -1
" File: ftplugin/toml.vim
diff --git a/ftplugin/treetop.vim b/ftplugin/treetop.vim
index 59376a3b..628bd891 100644
--- a/ftplugin/treetop.vim
+++ b/ftplugin/treetop.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/treetop.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'treetop') == -1
" Vim filetype plugin file
diff --git a/ftplugin/tt2html.vim b/ftplugin/tt2html.vim
index 858dc13b..6fb150fc 100644
--- a/ftplugin/tt2html.vim
+++ b/ftplugin/tt2html.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/tt2html.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
" Language: TT2 embedded with HTML
diff --git a/ftplugin/twig.vim b/ftplugin/twig.vim
index 9284189f..ea10d3db 100644
--- a/ftplugin/twig.vim
+++ b/ftplugin/twig.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/twig.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'twig') == -1
" Vim filetype plugin
diff --git a/ftplugin/typescript.vim b/ftplugin/typescript.vim
index 148eff9e..b99f5d9b 100644
--- a/ftplugin/typescript.vim
+++ b/ftplugin/typescript.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/typescript.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
" set Vi-incompatible, compiler and commentstring
diff --git a/ftplugin/typescriptreact.vim b/ftplugin/typescriptreact.vim
index 6b8380f7..a52ab70c 100644
--- a/ftplugin/typescriptreact.vim
+++ b/ftplugin/typescriptreact.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/typescriptreact.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
" modified from mxw/vim-jsx from html.vim
diff --git a/ftplugin/udevconf.vim b/ftplugin/udevconf.vim
index 2e706fd1..e554c90b 100644
--- a/ftplugin/udevconf.vim
+++ b/ftplugin/udevconf.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/udevconf.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'udevconf') == -1
" Vim filetype plugin file
diff --git a/ftplugin/udevperm.vim b/ftplugin/udevperm.vim
index 26616d82..7fde3445 100644
--- a/ftplugin/udevperm.vim
+++ b/ftplugin/udevperm.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/udevperm.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'udevperm') == -1
" Vim filetype plugin file
diff --git a/ftplugin/updatedb.vim b/ftplugin/updatedb.vim
index 69f4c712..7dd6476f 100644
--- a/ftplugin/updatedb.vim
+++ b/ftplugin/updatedb.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/updatedb.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'updatedb') == -1
" Vim filetype plugin file
diff --git a/ftplugin/vala.vim b/ftplugin/vala.vim
index 00eefd1d..88f9ea7c 100644
--- a/ftplugin/vala.vim
+++ b/ftplugin/vala.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/vala.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vala') == -1
if exists('b:did_ftplugin')
diff --git a/ftplugin/vb.vim b/ftplugin/vb.vim
index 63bf8efd..f591072e 100644
--- a/ftplugin/vb.vim
+++ b/ftplugin/vb.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/vb.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'visual-basic') == -1
" Vim filetype plugin file
diff --git a/ftplugin/verilog.vim b/ftplugin/verilog.vim
index dd380525..ff1109e5 100644
--- a/ftplugin/verilog.vim
+++ b/ftplugin/verilog.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/verilog.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'verilog') == -1
" Vim filetype plugin file
diff --git a/ftplugin/vhdl.vim b/ftplugin/vhdl.vim
index 55490ffb..31aded2b 100644
--- a/ftplugin/vhdl.vim
+++ b/ftplugin/vhdl.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/vhdl.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vhdl') == -1
" VHDL filetype plugin
diff --git a/ftplugin/vlang.vim b/ftplugin/vlang.vim
index 0aafeac5..8c597249 100644
--- a/ftplugin/vlang.vim
+++ b/ftplugin/vlang.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/vlang.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'v') == -1
setlocal commentstring=//\ %s
diff --git a/ftplugin/vroom.vim b/ftplugin/vroom.vim
index 0c1eee80..835f1314 100644
--- a/ftplugin/vroom.vim
+++ b/ftplugin/vroom.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/vroom.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vroom') == -1
" Vim filetype plugin file
diff --git a/ftplugin/vue.vim b/ftplugin/vue.vim
index fb8739c7..e5bb5e43 100644
--- a/ftplugin/vue.vim
+++ b/ftplugin/vue.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/vue.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vue') == -1
" Vim filetype plugin
diff --git a/ftplugin/wast.vim b/ftplugin/wast.vim
index b211e6f5..7936da97 100644
--- a/ftplugin/wast.vim
+++ b/ftplugin/wast.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/wast.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'wast') == -1
" Vim filetype plugin file
diff --git a/ftplugin/xdefaults.vim b/ftplugin/xdefaults.vim
index d3fb6487..83fa9f91 100644
--- a/ftplugin/xdefaults.vim
+++ b/ftplugin/xdefaults.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/xdefaults.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'xdefaults') == -1
" Vim filetype plugin file
diff --git a/ftplugin/xf86conf.vim b/ftplugin/xf86conf.vim
index c298379b..839dfaac 100644
--- a/ftplugin/xf86conf.vim
+++ b/ftplugin/xf86conf.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/xf86conf.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'xf86conf') == -1
" Vim filetype plugin file
diff --git a/ftplugin/xhtml.vim b/ftplugin/xhtml.vim
index 0556d1be..68151ffb 100644
--- a/ftplugin/xhtml.vim
+++ b/ftplugin/xhtml.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/xhtml.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'xhtml') == -1
" Vim filetype plugin file
diff --git a/ftplugin/xinetd.vim b/ftplugin/xinetd.vim
index f99a91ac..25af0607 100644
--- a/ftplugin/xinetd.vim
+++ b/ftplugin/xinetd.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/xinetd.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'xinetd') == -1
" Vim filetype plugin file
diff --git a/ftplugin/xmodmap.vim b/ftplugin/xmodmap.vim
index 16ab12ee..e787380b 100644
--- a/ftplugin/xmodmap.vim
+++ b/ftplugin/xmodmap.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/xmodmap.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'xmodmap') == -1
" Vim filetype plugin file
diff --git a/ftplugin/xs.vim b/ftplugin/xs.vim
index 07256651..95d8a228 100644
--- a/ftplugin/xs.vim
+++ b/ftplugin/xs.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/xs.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
" Vim filetype plugin file
diff --git a/ftplugin/xsd.vim b/ftplugin/xsd.vim
index f3f94d91..f53f5bac 100644
--- a/ftplugin/xsd.vim
+++ b/ftplugin/xsd.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/xsd.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'xsd') == -1
" Vim filetype plugin file
diff --git a/ftplugin/xslt.vim b/ftplugin/xslt.vim
index 2d2320ae..76735f0a 100644
--- a/ftplugin/xslt.vim
+++ b/ftplugin/xslt.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/xslt.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'xslt') == -1
" Vim filetype plugin file
diff --git a/ftplugin/yaml.vim b/ftplugin/yaml.vim
index 261d71ca..44f716bf 100644
--- a/ftplugin/yaml.vim
+++ b/ftplugin/yaml.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/yaml.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'yaml') == -1
" Vim filetype plugin file
diff --git a/ftplugin/zig.vim b/ftplugin/zig.vim
index dc9af384..50f3aecd 100644
--- a/ftplugin/zig.vim
+++ b/ftplugin/zig.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/zig.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'zig') == -1
" Only do this when not done yet for this buffer
diff --git a/ftplugin/zimbu.vim b/ftplugin/zimbu.vim
index fc939fde..6af9be4f 100644
--- a/ftplugin/zimbu.vim
+++ b/ftplugin/zimbu.vim
@@ -1,3 +1,8 @@
+let files = filter(globpath(&rtp, 'ftplugin/zimbu.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
+if len(files) > 0
+ exec 'source ' . files[0]
+ finish
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'zimbu') == -1
" Vim filetype plugin file