eruby and vim: rhtml

Doug Kearns dougkearns at gmail.com
Tue Mar 29 23:09:03 EST 2005


On Fri, Mar 25, 2005 at 10:31:35AM +0100, Tilman Sauerbeck wrote:
> Gavin Sinclair <gsinclair at soyabean.com.au> [2005-03-24 09:10]:
> > On Sunday, February 27, 2005, 11:58:48 PM, Tilman wrote:
> > 
> > > Hugh Sasse Staff Elec Eng <hgs at dmu.ac.uk> [2005-02-23 17:55]:
> > >> Has anyone done any work on making vim pick up .rhtml files
> > >> and procesing the syntax correctly?  I'm not even sure if you can
> > >> say "use ruby syntax highlighting between <% and %> and use html
> > >> ouside it".
> > 
> > > Sure you can! Search the scripts section on vim.org for "eruby.vim" :)
> > 
> > I tried that and didn't see any improvement after installing it.  Is
> > there some trick I've missed?
> 
> You either need to set the syntax to "eruby" manually, or use the
> following autocommand:
> 
> au BufNewFile,BufRead *.rhtml set syn=eruby

I'll add this to filetype.vim and send it upstream.

Regards,
Doug


More information about the vim-ruby-devel mailing list