Sunday, August 22, 2010

Re: how to read long shell output

Hi Yosi!

On So, 22 Aug 2010, Yosi Izaq wrote:

> Hi,
>
> Say I'm executing a shell command with long output and want to read
> the results. Just running the cmd will only show the last lines of
> output. The question is how to make VIM present it in a scrollable
> window (w/o writing to explicit file...)?- Alternately, how to direct
> the output to quickfix or location list?
>
> Ex:
> ! cd %:h && nm `find .. -name *.so ` <cr>
>
> output all the symbols in the shared object artifacts.

How about :r! nm `find %:h -name *.so ...` to redirect the output into a
scratch buffer?

regards,
Christian

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