diff --git a/editors/vim/after/syntax/ruby.vim b/editors/vim/after/syntax/ruby.vim new file mode 100644 index 0000000..8495320 --- /dev/null +++ b/editors/vim/after/syntax/ruby.vim @@ -0,0 +1,11 @@ +" RSpec + + " Syntax highlighting + if expand('%') =~# '_spec\.rb$' + syn keyword rubyRspec describe context it specify it_should_behave_like before after setup subject let shared_context shared_examples_for + endif + + hi def link rubyRspec Function + + " Focus folding on spec" + nmap rf mr:set foldmethod=syntaxzMzv?\v^\s*(it\|example)zz:noh`r:delmarks r