Wrap ftdetect file in augroup, fixes #153
This commit is contained in:
parent
b8d9939329
commit
98e021e969
2
build
2
build
@ -76,8 +76,10 @@ copy_dir() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
concat_ftdetect() {
|
concat_ftdetect() {
|
||||||
|
echo "augroup filetypedetect" > tmp/polyglot.vim
|
||||||
cat config.vim >> tmp/polyglot.vim
|
cat config.vim >> tmp/polyglot.vim
|
||||||
for f in ftdetect/*; do (echo '" '"$f"; cat "${f}"; echo) >> tmp/polyglot.vim; done
|
for f in ftdetect/*; do (echo '" '"$f"; cat "${f}"; echo) >> tmp/polyglot.vim; done
|
||||||
|
echo "augroup END" >> tmp/polyglot.vim
|
||||||
rm -f ftdetect/*
|
rm -f ftdetect/*
|
||||||
mv tmp/polyglot.vim ftdetect/
|
mv tmp/polyglot.vim ftdetect/
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
augroup filetypedetect
|
||||||
" Enable jsx syntax by default
|
" Enable jsx syntax by default
|
||||||
if !exists('g:jsx_ext_required')
|
if !exists('g:jsx_ext_required')
|
||||||
let g:jsx_ext_required = 0
|
let g:jsx_ext_required = 0
|
||||||
@ -983,3 +984,4 @@ au BufRead,BufNewFile *.vm set ft=velocity syntax=velocity
|
|||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
augroup END
|
||||||
|
Loading…
x
Reference in New Issue
Block a user