Search code examples
ruby-on-railsvimsnipmate

When editting a Rails project with Vim, the SnipMate plugin only loads the ruby snippets. How can I get the ruby-rails snippets?


When editing my Rails app, snipMate only seems to load the ruby snippets file and not the ruby-rails snippets file as the ruby snippets work and the rails snippets do not. I am using them within a Rails application.

Any idea what the problem may be?

Thanks for looking.


Solution

  • A wild guess: ruby snippets are loaded for .rb extensions but rails snippets are not.

    Do you use this version of SnipMate? If so there seems to be a possibility to use extra snippets for a given filetype.

    If you use the original, like me, I have no idea how to do it.