From: Meino Christian Cramer Date: 2006-04-28T12:46:32+09:00 Subject: Re: OT: Vim->Ruby and back ? From: "Gregory Brown" Subject: Re: OT: Vim->Ruby and back ? Date: Fri, 28 Apr 2006 12:35:32 +0900 > On 4/27/06, Meino Christian Cramer wrote: > > > I wanted to exeute ruby with the buffer contents without writing to > > the disk at all for that reason. > > map :!ruby % I inserted the above mapping into $HOME/.vimrc .> In a buffer I wrote: #!/usr/bin/ruby print "hallo" and pressed 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 ?