From: "Gregory Brown" <gregory.t.brown / gmail.com>
Subject: Re: OT: Vim->Ruby and back ?
Date: Fri, 28 Apr 2006 12:35:32 +0900

> On 4/27/06, Meino Christian Cramer <Meino.Cramer / gmx.de> wrote:
> 
> > I wanted to exeute ruby with the buffer contents without writing to
> > the disk at all for that reason.
> 
> map <C-R> :!ruby %<CR>

I inserted the above mapping into $HOME/.vimrc .> 

In a buffer I wrote:

#!/usr/bin/ruby
print "hallo"


and pressed <Ctrl-R>


An error pops up saying:

E499: Empty file name for '%' or '#', only works with ":p:h"

(dont know before, that the error message are in Chinese ... ;O)

And now ?