On 15/01/14 11:10, Aidan Marlin wrote:
>
> I have discovered a bug ...
> :%s/\n//g
>
> The file contains 20 000 lines, each line containing 60 characters.
>
On Friday, January 17, 2014 6:05:29 AM UTC+13, Tony Mechelynck replied:
> "Error: not enough memory" may be
> acceptable in some circumstances, but a crash is never acceptable.
But preferable to taking out the OS with it, as this did to mine for about 10
minutes. I can't remember seeing memory in use expand so quickly. I suppose I
can protect against it (using bash)
ulimit -v 2097152
Then vim reports
E342 Out of memory! (allocating 477061 bytes)
E316: ml_get: cannot find line 1
E320: Cannot find line 1
E316: ml_get: cannot find line 1
7951 substitutions on 0 lines
Press ENTER or type command to continue
It's the undo handling that uses the memory, the problem does not occur with
setlocal ul=-1
Regards, John Little
--
--
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.