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. > > From 'man vim': > > vim [options] [file ..] > > and: > > - The file to edit is read from stdin. Commands are read > from stderr, which should be a tty. >
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? Thanks Elias -- 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
