Remove conceal stuff, improve RSpec highlighting, and add RSpec "focus-folding"

pull/2/head
Bodaniel Jeanes 2011-11-23 16:53:04 -06:00
parent 980180a65e
commit 2d4dc6c4c0
1 changed files with 11 additions and 0 deletions

View File

@ -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 <silent> <Leader>rf mr:set foldmethod=syntax<CR>zMzv?\v^\s*(it\|example)<CR>zz:noh<CR>`r:delmarks r<CR>