Tim Chase <[email protected]> [09-07-23 18:29]:
> 
> > is it possible to vimdiff two "streams" coming from
> > two stdin sources somehow?
> > 
> > Thank you very much for any help in advance!
> 
> Well, Vim only gets one "stdin".
> 
> However, in bash, you can used anonymous pipes:
> 
>    vimdiff <(somecmd1 filea | filterX) <(somecmd2 fileb | filterY)
> 
> to take the output of a series of commands and treat it as a 
> pseudo-file.  In vim, you'd see this as editing /dev/fd/63 with a 
> note that it's a fifo/socket but you can write the results 
> wherever you want.
> 
> If you don't run in bash, you'd have to save the intermediate 
> results into temp files and clean them up when you're done:
> 
>    somecmd1 filea | filterX > temp1.txt
>    somecmd2 fileb | filterY > temp2.txt
>    vimdiff temp1.txt temp2.txt
>    rm temp1.txt temp2.txt
> 
> -tim
> 
> 
> 
> 
> 
> 

Hi Tim,

sounds good ! I am using zsh, but I think there are similiar
mechanisms available as with bash.
The whole thing comes up as I feel to never want to do the
temp-file thingy again ... ;)

Keep hacking!
mcc



-- 
Please don't send me any Word- or Powerpoint-Attachments
unless it's absolutely neccessary. - Send simply Text.
See http://www.gnu.org/philosophy/no-word-attachments.html
In a world without fences and walls nobody needs gates and windows.


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to