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

StackOverflow https://stackoverflow.com/questions/8764012

  •  14-04-2021
  •  | 
  •  

Question

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.

Was it helpful?

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top