aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-04-19 05:30:15 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-04-19 05:30:15 +0200
commit792b0135bea96af7d7a78c83ff4e59d732a662b4 (patch)
treefdb2d5054f47e67d19f2d063f0c3a87155f7b44c
parent0c9691b5f0baad5b30aa31ce4cee029e05896c21 (diff)
downloaddotfiles-792b0135bea96af7d7a78c83ff4e59d732a662b4.tar.xz
vim: .h files are C, yaml is indented with 2 spaces
-rw-r--r--vim/vimrc8
1 files changed, 8 insertions, 0 deletions
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']