What is the maximum file size that Vim can open? (64 bit)

Obviously, Vim can edit 2 GB on 32-bit machines (swap and backup disabled). But for 64-bit machines, what is the limit?

+5
source share
1 answer

The documentation states the following:

The maximum file size is 2147483647 bytes (2 GB) when the long integer is 32 bits. Much more for 64-bit lengths. Also limited by available disk space for | swap file |.

so "a lot more" is likely to run into your hard drive limitation, as it will go over to exabytes with an alocated size.

+8
source

All Articles