Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the largest file size that can be opened by Vim? (64-bit)

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

like image 585
mt3 Avatar asked Sep 18 '12 06:09

mt3


1 Answers

The documentation just states this:

Maximum file size 2147483647 bytes (2 Gbyte) when a long integer is 32 bits. Much more for 64 bit longs. Also limited by available disk space for the |swap-file|.

so "much more" will most likely run into your hard drive limitation since it goes to exabytes of alocatable size.

like image 82
Najzero Avatar answered Oct 21 '22 03:10

Najzero