IMHO, this type of editor-specific configuration belongs on your local system, not in the repo. Do you have the following line in your `~/.vimrc`?

```vim
autocmd BufNewFile,BufRead Gemfile set filetype=ruby
```