view more or less?

Sharpe, Sam J sam.sharpe+lists.redhat at gmail.com
Sun Apr 5 15:59:14 UTC 2009


2009/4/5 Steve Searle <steve at stevesearle.com>:
> Around 03:41pm on Sunday, April 05, 2009 (UK time), Garry T. Williams scrawled:
>
>> On Friday 03 April 2009 04:00:45 Steve Searle wrote:
>> > round 03:18am on Friday, April 03, 2009 (UK time), Paul Ward
>> scrawled:
>> > Also you can't pipe into it, e.g you can't use view to do something
>> > like:
>> >
>> > $ dmesg | less
>>
>> Of course you can:
>>
>>     $ dmesg|view -
>>     Vim: Reading from stdin...
>>     $
>
> And then I get:
>
> Vim: Warning: Input is not from a terminal
> Vim: Error reading input, exiting...
> Vim: preserving files...
> Vim: Finished.

Works for me (tm). Do you have a different Vim?

[sam at machine ~]$ ls -al `which view`
lrwxrwxrwx 1 root root 2 2008-12-22 04:35 /bin/view -> vi
[sam at machine ~]$ ls -al /bin/vi
-rwxr-xr-x 1 root root 748568 2008-12-01 16:09 /bin/vi
[sam at machine ~]$ vi --version
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Dec  1 2008 11:08:46)
Included patches: 1-60
<snip>

-- 
Sam




More information about the fedora-list mailing list