> I have a very big XML file (which is actually a Wikipedia dump)...
> its size is approximately 5.9 GB.
I don't know whether you're running under a 32-bit or 64-bit OS.
You can read up on Vim's limitations at
:help limits
particularly the "Maximum file size" section.
If you're not exceeding those limits (which would mean you're on
a 64-bit system), then this script:
http://www.vim.org/scripts/script.php?script_id=1506
might help you trim out some of the fat involved in editing large
files.
> How can I edit it with "gvim" all the same?
If you can't open it (either because you're in 32-bit vim or
because it's just so agonizingly painful because you don't have
6+ GB of RAM), I'd use an external tool like csplit to hack your
file into smaller & more manageable bits based on some split
text/regex, edit the sub-portions and then stitch them all back
together with "cat"
> Do I have to use another editor? If so, which one?
Depending on the changes you're making (you don't detail), you
can use a stream editor such as "sed" to process the file into an
output file in one pass, but it takes a little more thinking
about the problem.
However, I suspect most other visual (non-stream) editors will
have the same OS/processor-level limitations.
-tim
--
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
To unsubscribe from this group, send email to vim_use+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
No comments:
Post a Comment