From cef5e2d93100c4b765d276914658eab75906f4c9 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sat, 30 Dec 2017 15:53:17 +0100 Subject: Disable ftdetect parts of some plugins, fixes #254 vim-polyglot discourages use of commands like: autocmd BufRead * autocmd BufNewFile * And others that execute for every file / buffer opened. --- build | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'build') 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/ -- cgit v1.2.3