On 07/06/12 03:16, cellurl wrote:
I have a 4GB text file.
Q: Can I use vim to edit it?
If not, any suggestions?

thanks for publishing vim ;-)

-cellurl


There are two kinds of limits:

1. Your processor must be able to address a single data-memory space larger than the file.

See ":help limits" for 16- and 32-bit processors. 64-bit processors can typically address all your installed RAM and swap memory as one linear address space: see 2 below. (N.B. 2^63 = approx. 9.22e18)

2. Your total installed RAM and swap space must be larger than the file + the resident Vim code + whatever else you're running in parallel.

The largest file you can edit depends on the smaller of the limits defined by 1 and 2 above.

Notes:
- It's no use having more installed memory than your processor can address;
- It's usually recommended not to have more swap than twice your installed RAM. (Using swap too much might bring the system to the point where all it's doing is waiting for disk heads to move to the right record of your swapfile or swap partition. I've had the case, for instance when linking the libxul of a Mozilla application at the end of an own-compile in order to test a bugfix before landing it.)


Best regards,
Tony.
--
FATHER:       Make sure the Prince doesn't leave this room until I come and
              get him.
FIRST GUARD:  Not ... to leave the room ... even if you come and get him.
FATHER:       No.  Until I come and get him.
SECOND GUARD: Hic.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

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

Reply via email to