diff --git a/after/ftdetect/foam.vim b/after/ftdetect/foam.vim index 0ae2a6512..dcd77c75b 100644 --- a/after/ftdetect/foam.vim +++ b/after/ftdetect/foam.vim @@ -9,5 +9,5 @@ function! s:foamFile(path) endfor endfunction -autocmd BufNewFile,BufRead * call s:foamFile(expand("%")) +autocmd FileType BufNewFile,BufRead *Dict,*Properties,fvSchemes,fvSolution,*/constant/g,*/0/* call s:foamFile(expand("%")) autocmd FileType cpp call s:foamFile(expand("%"))