in reply to Piping data to vim

Vim's not my religion, but the standard approach seems to work! :)

perl -e ' open my $vim,"|vim -"; print $vim 0..9 ; '

Cheers Rolf

UPDATE: I missed that you wanna catch vim's output, sorry I have no idea how to make vim write to STDOUT.