Skip to content
Mukund Lakshman edited this page Sep 5, 2013 · 7 revisions

Vim

To make Vim treat .rabl files as .rb files, add this in your vim configuration file:

au BufRead,BufNewFile *.rabl setf ruby

Additionally, if you want Vim to highlight RABL DSL methods, create a ~/.vim/after/plugin/rabl.vim file with this content:

au BufRead,BufNewFile *.rabl syn keyword rubyRabl node attribute object child collection attributes glue extends
au BufRead,BufNewFile *.rabl hi def link rubyRabl Function

If you're using a plugin manager such as Pathogen, you can use the (tiny) vim-rabl plugin.

Sublime Text 2

To make Sublime Text 2 treat .rabl files as .rb files, use rabl syntax highlighter