Friday, July 8, 2022

Re: How to limit amount of memory used by vim?


In Vim you can disable undo:
setlocal ul=-1

That's it, excellent advice. I now changed script to turn off "undolevels" and after search/replace commands finish the I turn "undolevels" back on.
:setl ul=-1
commands
:setl ul=-123456

This reduced memory consumption from several GB to 10 MB in my case.

Thanks a lot for help.

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/ba340266-261a-4919-8fe8-386744650d3an%40googlegroups.com.

No comments:

Post a Comment