can't get ultisnips working with rspec
Asked by
Aldric Giacomoni
RSpec files in ruby are named thus : *_spec.rb
I use pathogen, and did a git clone in the bundle directory.
I tried with a simple ultisnip snippet for Ruby - 'def<tab>'. And it worked.
I created a file called 'rspec.snippets' in the UltiSnips directory, along with all the other files from the repository: html, htmldjango, etc.
The file begins with :
extends ruby
The file ends with:
# vim:ft=snippets:
And inside there's some snippets like:
snippet subj "subject"
subject { $1 }
endsnippet
So... When I open a file like something_spec.rb ... And I try to do the 'def' snippet... It works.
But when I try the 'subj' snippet.. It doesn't.
What am I doing wrong or not doing?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- UltiSnips Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- SirVer
- Solved:
- Last query:
- Last reply:
To post a message you must log in.