On Friday, September 14, 2012 12:06:41 PM UTC-5, sc wrote:
> On Fri, Sep 14, 2012 at 12:14:41PM -0400, ping wrote:
>
> > assume I have a tar ball containing muliple files and I don't want
>
> > to uncompress everything in a folder to start my search (since vim
>
> > can open compressed/tar.ed files on the fly), is there way to search
>
> > a keyword through all the files in the tarball?
>
>
>
> do you have zgrep available? if so you can
>
>
>
> zgrep 'pattern' tar-gz-file | vim -
>
>
>
> sc
I didn't know about zgrep! But how about setting 'grepprg' to use it rather than grep? Then you can navigate results easier.
--
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
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment