On Mon, 29 Jan 2001  19:36:49 +0900, Hugh Sasse Staff Elec Eng wrote:
> > 
> > http://www.rubycentral.com/faq/rubyfaq-1.html#ss1.10
> 
> I tried installing the newer file referenced there, and I still don't
> get syntax working -- still no coloured words.

assuming vim 5.x and you have ruby.vim in ~/.vim

in ~/.vimrc, before any 'highlight' statements:
	syntax on

if you've put the cfg-files elsewhere, e.g. ~/lib/vim
in ~/.vimrc
	let &runtimepath="~/lib/vim," . &runtimepath

in ~/.vim/filetype
	augroup filetypedetect
		au! BufNewFile,BufRead *.rb  setfiletype ruby
	augroup end

in ~/.vim/scripts.vim
	if getline(1) =~ '^#!.*[/][^/]*ruby[^/]*\>'
		set filetype=ruby
	endif

and it should work. Check out ':help syntax' inside vim for more info.
If you're using vim 6.0, put the ruby.vim syntax file in the
~/.vim/syntax directory.

	Michel