* Elias Diem <[email protected]> [2011-10-18 16:55]: > On Tue, Oct 18, 2011 at 10:38:37AM +0100, Paul wrote: > > On Tue, Oct 18, 2011 at 10:55:25AM +0200, Elias Diem wrote: > > >why does this work? > > >$ find /path -name bla | vim - > > > > > >But this doesn't > > >$ find /path -name bla | vim > > Because standard input is not the same as command line arguments. > > Yes, but what's the difference to say for example 'less'? > If I pipe the results of 'find' to 'less' I can do: > > $ find /path -name bla | less > > Without giving the '-' argument to 'less'. > Why doesn't this work with vim?
with a pager you'd expect its input to come from stdin, anyway. so it was programmed differently. all a matter of history, too. besides, the committe that came together to regulate all this years before less and vim were created, could not agree on a simplification or generalization.. but if you have any ideas on how to make them consistent with the future not-yet-existent programs - let us know! ;) Sven -- $ export PAGER="vim -" $ command | $PAGER -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
