dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 77c04cb640690836a6db5c7b4e65426dde262849
parent b3435f548455ec1490b5a82c8b5b113f4fd78c17
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri,  5 Apr 2019 13:10:28 +0200

Treat .h files as C, not C++

Diffstat:
A.vim/ftdetect/c.vim | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/.vim/ftdetect/c.vim b/.vim/ftdetect/c.vim @@ -0,0 +1,6 @@ +" treat .h files as C, not C++ +if has("autocmd") + " Enable file type detection + filetype on + autocmd BufNewFile,BufRead *.h setfiletype c +endif