From 617186cfd14f23a5505a662e9a18b5187dbf5bbf Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Wed, 18 Sep 2013 16:18:21 -0400 Subject: [PATCH] add settings for *.[ch].erb files --- vimrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index 5f2d84d..d828a99 100644 --- a/vimrc +++ b/vimrc @@ -108,9 +108,10 @@ if has("autocmd") autocmd FileType yaml setlocal sw=2 ts=2 sts=2 autocmd FileType text setlocal textwidth=78 autocmd BufRead,BufNewFile *.icf set syntax=cpp - autocmd FileType ruby,eruby setlocal sw=2 ts=2 sts=2 iskeyword+=@-@,? + autocmd Syntax ruby setlocal sw=2 ts=2 sts=2 iskeyword+=@-@,? autocmd BufRead,BufNewFile *.di set filetype=d autocmd BufNewFile,BufReadPre *.h.erb let b:eruby_subtype = "c" + autocmd BufNewFile,BufRead *.[ch].erb setlocal sw=4 ts=4 sts=4 if has("gui_running") autocmd WinLeave * set nocursorline nocursorcolumn