From: Gregory Seidman Date: 2006-04-28T21:29:54+09:00 Subject: Re: OT: Vim->Ruby and back ? On Fri, Apr 28, 2006 at 07:50:27AM -0400, Gregory Seidman wrote: [...] } I can get you stderr and stdout mised together, not in separate files: } } 0G"ryG:new } "rp:%!ruby Sorry to respond to my own post, but this is a much nicer-looking (and tested!) version of the above: :%y r|new|pu r|%!ruby } This yanks the entire buffer into register r, opens a new window, pastes } register r into the window, feeds the entire buffer into ruby's stdin and } replaces the buffer with what the script writes to stdout or stderr. } Unfortunately, I don't know how to distinguish between output to stdout and } stderr. Since you are writing the script, however, you should know which is } which. } } } Ruby! } } mcc } --Greg --Greg