Could you try this series of patches?
https://groups.google.com/d/msg/vim_dev/4EkET3c3oVA/bonA8fAcCwAJ
If the patches don't cleanly applied download the latest patches from here:
https://bitbucket.org/k_takata/vim-ktakata-mq/src
Regards,
Ken Takata
It's not true when swapfile is enabled. Vim can edit a file larger than the
memory size. But unfortunately, Vim cannot handle swapfile larger than 2 GiB
on Windows, because the size is handled with 32-bit integer even on 64-bit
Windows.
My patches fix this problem by using 64-bit integer (even on 32-bit Vim).
Regards,
Ken Takata
Thank you for the patches. I had very little time to try them but I managed to run most of them and then try the new version briefly.
The new version managed to read the file without truncating it and it read a lot of lines. I think the character count was wrong though, but I didn't have time to check more. The patches was a clear improvement !
I will probably have more time on monday.
Thanks again
Andreas
I was runing on a machine with 16GB of memory so any way it should not be a problem. By the way it also has an SSD-disk witch might be significant.
Regards
Andreas
An update.
I tried the new version again and it read all my 111239727 lines OK.
The only error i have found is that it shows the 32-bit truncated value of number of characters read - i.e. it shows 4145396456 characters in stead of the real 4145396456 + 2^32 = 8440363752 characters.
So these patches did the trick even though I didn't manage to do them all :)
Thanks
Andreas
Thank you for testing my patches.
Did you apply 0002_fix-off_T-display.patch? Without this, character count
will not be shown properly when a file has been read/written.
Or did you check the character count in another way?
Regards,
Ken Takata
2016/2/22 Mon 19:44:25 UTC+9 Ken Takata wrote:
> Thank you for testing my patches.
> Did you apply 0002_fix-off_T-display.patch? Without this, character count
> will not be shown properly when a file has been read/written.
> Or did you check the character count in another way?
Ah okay, I found that g<C-G> doesn't show the character count properly.
It's just a display problem, and it doesn't have any side effects when editing
a large file.
I think it's better to fix it with my another series of patches (num64 patches):
https://groups.google.com/d/msg/vim_dev/p8Fl_vJDGy8/WgoprhIdCwAJ
I need time to fix this.
Regards,
Ken Takata
I reported the number of characters shown immediately after the file is loaded, but it is probably because I didn't manage to include all the patches.
If I use G<C-G> I get the same, but now with a signed 32-bit so the number of characters reported is -149570840 which should be (2^32-149570840)+2^32 = 8440363752.
Thanks a lot
Andreas