Forum: Ruby on Rails vim syntax highlighting of rjs templates

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
89d967359903c639d31e4cad4569f537?d=identicon&s=25 Charlie Bowman (Guest)
on 2006-03-29 20:46
(Received via mailing list)
Are there config files for vim that offer syntax highlighting of rjs
templates?


Charlie Bowman
http://www.recentrambles.com
2ccb2f7699267d258faaafce4ee997df?d=identicon&s=25 Cody Fauser (Guest)
on 2006-03-29 22:02
(Received via mailing list)
I'm running vim-ruby on Debian and I just added rjs to the list of
filetypes
in /etc/vim/ftdetect/ruby.vim like this:
" Ruby
au BufNewFile,BufRead *.rb,*.rjs,*.rbw,*.gem,*.gemspec  set
filetype=ruby

This way you'll get the same highlighting that have for .rb files.
89d967359903c639d31e4cad4569f537?d=identicon&s=25 Charlie Bowman (Guest)
on 2006-03-29 23:36
(Received via mailing list)
Thanks!  I didn't know that is was that simple

On Wed, 2006-03-29 at 14:47 -0500, Cody Fauser wrote:

>
>         Rails mailing list
> http://www.codyfauser.com
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails

Charlie Bowman
Programmer
Castle Branch Inc.
This topic is locked and can not be replied to.