#if Michael Neumann
> For the first, put something like shown below into your .vimrc file:
> 
>   function ExecRuby()
>     w! /tmp/ruby_input
>     !ruby /tmp/ruby_input > /tmp/ruby_output 2>&1
>     10 sp /tmp/ruby_output 
>     set nonumber
>     wincmd w 
>   endfunction
> 
>   map <C-P> :call ExecRuby()<CR><CR><CR>

Nice, thanks :)

Rik