about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--vimrc.vim7
1 files changed, 4 insertions, 3 deletions
diff --git a/vimrc.vim b/vimrc.vim
index 5008b415..83cc29b8 100644
--- a/vimrc.vim
+++ b/vimrc.vim
@@ -38,9 +38,10 @@ function! HighlightTangledFile()
   syntax match muPendingScenario "^pending-scenario\>" | highlight link muPendingScenario SpecialChar
   syntax match muData "^type\>\|^container\>\|^exclusive-container\>" | highlight muData ctermfg=226
 endfunction
-call HighlightTangledFile()
-autocmd BufRead,BufNewFile *.mu set ft=mu
-autocmd BufRead,BufNewFile [0-9]* call HighlightTangledFile()
+augroup LocalVimrc
+  autocmd BufRead,BufNewFile *.mu set ft=mu
+  autocmd BufRead,BufNewFile *.cc call HighlightTangledFile()
+augroup END
 
 " Scenarios considered:
 "   opening or starting vim with a new or existing file without an extension (should interpret as C++)