Vim syntax highlighting for ruby 1.9

谁说我不能喝 提交于 2019-12-03 16:51:47

问题


Ruby 1.9 has a few new syntax elements, such as the {key: value} hash literal syntax. Has anyone written or seen an updated syntax/ruby.vim highlighting file that will highlight key: just like it highlights :key in {:key => value}?


回答1:


Try the latest version from github:

http://github.com/vim-ruby/vim-ruby/blob/master/syntax/ruby.vim

It was updated in December of 2009, and seems to do the right thing with the new hash literals.




回答2:


Thoughtbot's dot files might be another good place to start: https://github.com/thoughtbot/dotfiles



来源:https://stackoverflow.com/questions/2564627/vim-syntax-highlighting-for-ruby-1-9

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!