Wednesday, April 16, 2014

Re: Opening large files?

Tim Chase <vim@tim.thechases.com> wrote:

> On 2014-04-16 09:58, Adrian Nagle wrote:
>> 'm helping another user open a large, 3Gb, file. The standard
>> windows editors balk, so I recommended VIM. Unfortunately, even
>> vim crashes after scrolling some amount. For instance, he can't go
>> straight to the end of file.
>>
>> The work station is Windows 7, 64 bit, with 32Gb of RAM. Are there
>> any settings to modify to make vim more stable with large files, or
>> is there some Windows performance limitation and just out of luck?
>
> This is pretty common, so your system's specs should be able to
> handle it. Hints can be found here:
>
> http://vim.wikia.com/wiki/Faster_loading_of_large_files
>
> and a plugin/script to facilitate it can be found here:
>
> http://www.vim.org/scripts/script.php?script_id=1506
>
> -tim


That plugin is definitely useful to speed up Vim with large files
and to use less memory.

Vim has to load the entire file in memory (unlike a few editors
that can load on demand). However, I would not expect crashes
or running out of memory on a 3GB file with 32GB of RAM (and
possibly more of virtual memory).

Which version of Vim are you using?
Can you get a stack trace where it crashes?
Make sure you use the latest version of Vim to avoid wasting time
on bugs possibly already fixed. I see a recent version of Vim
for Windows here:

http://sourceforge.net/projects/cream/files/Vim/

Regards
Dominique

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment