Sunday, August 22, 2010

Re: how to read long shell output

On 08/22/2010 11:16 PM, Charles E Campbell Jr wrote:
> yosi izaq wrote:
>> Aaron Lewis:
>> "
>> should work with standard unix command `less` and pipe , did you try
>> with it ?
>>
>> ! cd %:h && nm `find .. -name *.so ` | less <cr>
>> "
>>
>> Doesn't work. See:
>> Error detected while processing /users/yizaq/.vimrc:
>> line 534:
>> E492: Not an editor command: less <cr>

Escape '|' then , like

map <S-P> :! cd %:h && nm `find .. -name *.so ` \| less <cr>

>>
>> Christian Brabandt:
>> "
>> How about :r! nm `find %:h -name *.so ...` to redirect the output into a
>> scratch buffer?
>> "
>>
>> I did
>> :r! cd %:h && nm `find .. -name *.so ` <cr>
>>
>> but output goes to current buffer, not scratch. I'm probably doing
>> something wrong, could you please point out what?
>>
> Check out RunView
> (http://mysite.verizon.net/astronaut/vim/index.html#RUNVIEW)
>
> Regards,
> Chip Campbell
>


--
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4R0NL3WI5 on freenode

--
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

No comments: