Closed soupmatt closed 12 years ago
The Gemfile itself? It's just a Ruby file. This should do it.
# vim: ft=ruby
Or you can add an autocmd. See :h new-filetype
.
Yes, good points. I was thinking this was about the Gemfile specific highlighting, which is a trickier problem (and one I am loathe to solve). That's just icing on the cake, though.
The Gemfile for one of my projects is named
Jemfile
. This is done as it is a jruby project that runs on heroku and heroku gets messed up with jruby if you have a file namedGemfile
. Is there a way either through an env var or a# vim: <something>
at the bottom of the file to get the syntax highlighting to work? I like it very much in my other projects and it would be nice to have back in this one.