Setting VIM to Correctly Render ERB
Ruby on Rails 2.0 now uses the .erb suffix on view files. To fix syntax highlighting in VIM on these, add this to your ~/.vimrc file:
au BufNewFile,BufRead *.erb set syntax=eruby
au BufNewFile,BufRead *.builder set syntax=ruby
This is a great workaround until the official syntax highlighting file comes out for .erb in VIM. I also included a line to syntax highlight the builder style pages.
Page 1

