set eruby_subtype to "c" for *.h.erb files

This commit is contained in:
Josh Holtrop 2013-09-18 15:59:50 -04:00
parent 170d00e1ab
commit d1459c82f7

1
vimrc
View File

@ -110,6 +110,7 @@ if has("autocmd")
autocmd BufRead,BufNewFile *.icf set syntax=cpp
autocmd FileType ruby,eruby 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"
if has("gui_running")
autocmd WinLeave * set nocursorline nocursorcolumn