aboutsummaryrefslogtreecommitdiffstats
path: root/.vim/ftdetect
diff options
context:
space:
mode:
Diffstat (limited to '.vim/ftdetect')
-rw-r--r--.vim/ftdetect/c.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/.vim/ftdetect/c.vim b/.vim/ftdetect/c.vim
new file mode 100644
index 0000000..fbad066
--- /dev/null
+++ b/.vim/ftdetect/c.vim
@@ -0,0 +1,4 @@
+"use c rather than cpp for headers
+au! BufRead,BufNewFile *.h set filetype=c
+"re2c is c
+au! BufRead,BufNewFile *.re set filetype=c