From 792b0135bea96af7d7a78c83ff4e59d732a662b4 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sun, 19 Apr 2015 05:30:15 +0200 Subject: vim: .h files are C, yaml is indented with 2 spaces --- vim/vimrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vim/vimrc b/vim/vimrc index 7fc4cbd..d814121 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -92,6 +92,14 @@ autocmd BufWinLeave * call clearmatches() highlight Comment cterm=italic +" Why does vim set the filetype of .h files as C++? +augroup filetypes + autocmd! + autocmd BufRead,BufNewFile *.h set filetype=c +augroup END + +autocmd FileType yaml setlocal ts=2 sts=2 sw=2 noet + " Use clang_check for syntax checking let g:syntastic_c_checkers = ['clang_check'] -- cgit v1.2.3-70-g09d2