tpope / vim-bundler

bundler.vim: Lightweight support for Ruby's Bundler
https://www.vim.org/scripts/script.php?script_id=4280
404 stars 29 forks source link

Syntax Highlighting Doesn't work with non-standard Gemfile name #5

Closed soupmatt closed 12 years ago

soupmatt commented 12 years ago

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 named Gemfile. 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.

Peeja commented 12 years ago

The Gemfile itself? It's just a Ruby file. This should do it.

# vim: ft=ruby
graywh commented 12 years ago

Or you can add an autocmd. See :h new-filetype.

tpope commented 12 years ago

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.