On 4/6/07, cga2000 <[EMAIL PROTECTED]> wrote:
On Thu, Apr 05, 2007 at 10:10:03AM EDT, jas01 wrote: >
If the file is really huge, you may find adopting a different strategy is preferable. If you're on linux or similar you might use a command-line tool such as: $ grep Text[1-3] huge_file > a_few_lines What this does is that it finds all the lines that contain at least one occurrence of Text1, Text2, or Text3 in ./huge_file and copies them to ./a_few.lines.
Yes, I think sed/grep is more feasible and efficient to do this kind of pre-processing tasks before you feed a huge file to VIM, although VIM is capable of doing such thing. :-) -- Best, Zhaojun (Joseph)