aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkatherine <ageha@airen-no-jikken.icu>2019-12-03 17:46:03 -0700
committerkatherine <ageha@airen-no-jikken.icu>2019-12-03 17:46:03 -0700
commitbac7b5319309a32823da6904183411912bdfaa50 (patch)
tree9460dd5cf0329c84ddfbbd20e9bb136094161e8b
parent7fc05b66216ac960e682a36c919ebcce0f3740b9 (diff)
downloaddotfiles-bac7b5319309a32823da6904183411912bdfaa50.tar.gz
detect .h and .re (re2c) as c files
-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