mirror of https://github.com/bjeanes/dotfiles.git
Remove conceal stuff, improve RSpec highlighting, and add RSpec "focus-folding"
parent
980180a65e
commit
2d4dc6c4c0
|
@ -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>
|
Loading…
Reference in New Issue