Wrap ftdetect file in augroup, fixes #153

This commit is contained in:
Adam Stankiewicz 2016-09-11 13:34:02 +02:00
parent b8d9939329
commit 98e021e969
No known key found for this signature in database
GPG Key ID: A62480DCEAC884DF
2 changed files with 4 additions and 0 deletions

2
build
View File

@ -76,8 +76,10 @@ copy_dir() {
}
concat_ftdetect() {
echo "augroup filetypedetect" > tmp/polyglot.vim
cat config.vim >> tmp/polyglot.vim
for f in ftdetect/*; do (echo '" '"$f"; cat "${f}"; echo) >> tmp/polyglot.vim; done
echo "augroup END" >> tmp/polyglot.vim
rm -f ftdetect/*
mv tmp/polyglot.vim ftdetect/
}

View File

@ -1,3 +1,4 @@
augroup filetypedetect
" Enable jsx syntax by default
if !exists('g:jsx_ext_required')
let g:jsx_ext_required = 0
@ -983,3 +984,4 @@ au BufRead,BufNewFile *.vm set ft=velocity syntax=velocity
endif
augroup END