Daily Archives: February 1, 2007

vim syntax highlighting of rjs templates

vim7里面有rb和rhtml的加亮支持,但是没有rjs 其实很简单,因为rjs本质上是一个ruby程序 所以在vim里面将*.rjs定义成跟*.rb是同一个东西就行了 打开vim安装目录里面的filetype.vim 找到 ” Ruby au BufNewFile,BufRead *.rb,*.rbw,*.gem,*.gemspec setf ruby 加入 *.rjs 即可

Posted in Uncategorized | Leave a comment