diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-04-19 05:30:15 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-04-19 05:30:15 +0200 |
commit | 792b0135bea96af7d7a78c83ff4e59d732a662b4 (patch) | |
tree | fdb2d5054f47e67d19f2d063f0c3a87155f7b44c | |
parent | 0c9691b5f0baad5b30aa31ce4cee029e05896c21 (diff) | |
download | dotfiles-792b0135bea96af7d7a78c83ff4e59d732a662b4.tar.xz |
vim: .h files are C, yaml is indented with 2 spaces
-rw-r--r-- | vim/vimrc | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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'] |