From 8b336e61d8755402ad0717d1dd1a8ab316a32a5b Mon Sep 17 00:00:00 2001 From: Elwardi Date: Tue, 14 Dec 2021 20:08:36 +0100 Subject: [PATCH] Change OpenFOAM file detection auto-cmds --- after/ftdetect/foam.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("%"))