1

Is there a way to compile traditional Vi (ex) with large-file (3+ GB) support?

I'm trying to open a file that is around 3.5GBs in size and Vi simply says: Tmp file too large. If large-file support isn't a thing, is there a way to specify a larger temporary file size somewhere within the source code of Vi?

Alexej Magura
  • 4,356
  • 7
  • 26
  • 39

1 Answers1

3

short: no

long: the limit is predefined, but the number depends on which system/version (and who said it). But it is built into the source-code and cannot be "fixed".

As a workaround, you could use split to make pieces which are small enough to edit with vi.

But if you are suggesting compiling vi, vim might be suitable.

That used to be an FAQ. For further reading:

For source code, start here (on illumos-gate):

Thomas Dickey
  • 75,040
  • 9
  • 171
  • 268