eruby and vim: rhtml
Tilman Sauerbeck
tilman at code-monkey.de
Fri Mar 25 04:31:35 EST 2005
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
--
Regards,
Tilman
More information about the vim-ruby-devel
mailing list