mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-08 11:33:52 -05:00
Fix recursive loading, closes #605
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/ant.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/ant.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/bdf.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/bdf.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/cake.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/cake.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/cargo.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/cargo.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/coffee.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/coffee.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/credo.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/credo.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/cryptol.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/cryptol.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/cs.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/cs.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/cucumber.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/cucumber.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/dot.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/dot.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/eruby.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/eruby.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/exunit.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/exunit.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/fish.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/fish.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/go.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/go.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/gradle.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/gradle.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/gradlew.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/gradlew.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/haml.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/haml.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/ledger.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/ledger.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/lilypond.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/lilypond.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/ls.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/ls.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/mix.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/mix.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/nim.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/nim.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/nix-build.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/nix-build.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/ocaml.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/ocaml.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/powershell.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/powershell.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/python.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/python.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/rake.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/rake.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/rspec.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/rspec.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/ruby.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/ruby.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/rubyunit.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/rubyunit.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/rustc.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/rustc.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/sass.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/sass.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/sbt.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/sbt.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/swift.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/swift.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/tcl.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/tcl.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/tex.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/tex.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/tidy.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/tidy.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
let files = filter(globpath(&rtp, 'compiler/typescript.vim', 1, 1), { _, v -> v !~ "vim-polyglot" && v !~ $VIMRUNTIME && v !~ "after" })
|
||||
let s:base = expand("<sfile>:h:h")
|
||||
let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
|
||||
let files = filter(globpath(&rtp, 'compiler/typescript.vim', 1, 1), Filter)
|
||||
if len(files) > 0
|
||||
exec 'source ' . files[0]
|
||||
finish
|
||||
|
||||
Reference in New Issue
Block a user