From 2d4dc6c4c08ce630267b0cbdc39d02323a10ffd2 Mon Sep 17 00:00:00 2001 From: Bodaniel Jeanes Date: Wed, 23 Nov 2011 16:53:04 -0600 Subject: [PATCH] Remove conceal stuff, improve RSpec highlighting, and add RSpec "focus-folding" --- editors/vim/after/syntax/ruby.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 editors/vim/after/syntax/ruby.vim 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