summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2017-12-30 15:53:17 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2017-12-30 15:53:17 +0100
commitcef5e2d93100c4b765d276914658eab75906f4c9 (patch)
treef713afdee5cf0458b193c47f14ca35b075ba022a /build
parent17ad302c54063be1871c7f82d75b77e7c595e10c (diff)
downloadvim-polyglot-3.3.1.tar.gz
vim-polyglot-3.3.1.zip
Disable ftdetect parts of some plugins, fixes #254v3.3.1
vim-polyglot discourages use of commands like: autocmd BufRead * autocmd BufNewFile * And others that execute for every file / buffer opened.
Diffstat (limited to 'build')
-rwxr-xr-xbuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/build b/build
index 2a1398a8..36668e02 100755
--- a/build
+++ b/build
@@ -52,6 +52,13 @@ extract() {
fi
done
+ output "${subdirs##, })\n"
+
+ if (echo "julia coffee-script elixir fish git plantuml scala swift" | fgrep -q "$name"); then
+ echo "Skipping ftdetect installation of $name"
+ continue
+ fi
+
for f in ${dir}/ftdetect/*; do
(
echo "augroup filetypedetect";
@@ -62,7 +69,6 @@ extract() {
) >> tmp/polyglot.vim;
done
- output "${subdirs##, })\n"
done
mv tmp/polyglot.vim ftdetect/