Friday, September 14, 2012

vim: how to search a pattern through all files in a compressed file (e.g. a tar.gz ball)?

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?

this involves 3 possible solution as I can think of per my limited
knowledge:

1) search everything "on the fly" , this is what I'm asking for, might
not be possible -- those files have not even been opened as a buffer...

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

3) of course, if I uncompress everything in a folder, that will be
easier -- external recursive grep can do that I think,

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