Skip to content

Better rspec syntax highlighting for Vim

License

Notifications You must be signed in to change notification settings

keith/rspec.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rspec.vim

This provides improved syntax highlighting for rspec. This is pulled from Specky which is a great plugin which just does a little too much for me.

If you don't have a preferred installation method check out vim-plug

Usage

By default this syntax is used with all files matching one of these patterns:

  • *_spec.rb
  • *_shared_examples.rb
  • *_shared_context.rb

If you don't follow this pattern use something like:

autocmd BufNewFile,BufRead *_foo.rb set syntax=rspec

In your ~/.vimrc