thanks for all the test and response...
in summary here are all suggested/discussed solutions:
1) use zAPPs:
I guess zless, zgrep , zcat, ...these zAPP can't handle tarball, so if I
have a couple of gz files:
a.gz
b.gz
c.gz
they can all do the work in the fly, or redirect to stdout and a "| vim
- "can hand it over.
2) tar with -O (stdout) option, this works fine
tar -zxOf targzfile | vim -
but the issue is (tony pointed out): it looks all file contents are
concatenated, it's not easy to find out from what file the match happens
3) set grepgrp to zgrep
I'm not sure how to make use of this?
currently I can open .gz, or tar.gz with vim directly already
vim abc.tar.gz
4) untar/unzip into flat files into a folder, then use internal/external
tools to recursively search within the folder.
a) external grep:
grep! -R "pattern" . this prints the matches and also gives a quickfix
windows.
b) internal grep:
vimgrep /pattern/ foobar/**
I'll rate solution 3) the best, so it falls into category 3 of following:
this involves 3 possible solution as I can think of per my limited
knowledge:
1) search everything "on the fly", without download and extract tarball
locally
vim scp://user@server/
or
vim
:Nread scp://user@server/
browse to locate the tarball
open it
search the whole tarball
2) open from vim everything single files in the tar ball that I want to
search in, then use bufdo? still I don't know of a convenient way of
doing this...
vim scp://user@server/
or
vim
:Nread scp://user@server/
browse to locate the tarball
open it
open each files in the tarball (turn them into local buffers)
bufdo ...
3) of course, if I uncompress everything in a folder, that will be
easier -- external recursive grep can do that I think,
this is our current solution after download/extract files to a folder:
a) external grep:
grep! -R "pattern" . this prints the matches and also gives a quickfix
windows.
b) internal grep:
vimgrep /pattern/ foobar/**
anyway:
is it possible to get a solution in 1) or 2), that we can get same work
done for remote tarball file, from within vim? ideally I assume this
should be done in netrw if it is possible...
let me copy dr. chip on this...