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 fc74b2c6350c529677490af82a87a0a634efa5b4
parent 77c04cb640690836a6db5c7b4e65426dde262849
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri,  5 Apr 2019 13:12:05 +0200

Fix vim filetype detection

Diffstat:
M.vim/ftdetect/c.vim | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

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