I'm trying to redirect the output of a command to vim using the - argument, but it doesn't seem to work on OS X. For example, if I type
$ ls | vim -
on the command line on one of my Linux machines, the output of ls is correctly piped to vim. But when I do the same thing on any of my OS X machines, I get
$ ls | vim - Vim: Reading from stdin...
And it just hangs there until I hit CTRL-D.
Any idea why this would be happening and how to actually redirect the output of a command to vim?
For reference, I'm using OS X 10.6.4 (and 10.6.5) with vim 7.2 (and 7.3) with bash as my shell.