[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: view more or less?



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

-- 
Sam


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]