PATCH: added filetype/filetype.vim (was Re: New Ruby filetypes)

Doug Kearns djkea2 at
Wed Apr 7 01:39:48 EDT 2004

On Sun, Nov 30, 2003 at 01:18:27PM +1100, Gavin Sinclair wrote:
> There are some new file categories on the scene that contain Ruby code
> but don't end in .rb.  Is there anything we can do to get Vim to
> recognise them as Ruby files, and to get the next Vim version to
> recognise them automatically?  Is this desirable?
> The files are:
>   Rakefile       (Rake rules file)
>   *.gemspec      (RubyGems specification file)
>   *.gem          (RubyGems installation file - the result of executing
>                   a .gemspec)

" Ruby
au BufNewFile,BufRead *.rb,*.rbw,*.gem,*.gemspec,Rakefile* setf ruby

More information about the vim-ruby-devel mailing list