Hi,
I'd like to raise the question, if when Vim is compiled with persistent
undo feature, the undolevels setting could be raised?
I noticed that when working on a file and making many changes, you loose
your earliest changes, which might not be expected. I am thinking about
raising the limit to 10000.
Would that be reasonable? Or does this actually impact memory usage too
much? Comments?
regards,
Christian
PS: I am thinking of something like this patch:
diff --git a/src/option.c b/src/option.c
--- a/src/option.c
+++ b/src/option.c
@@ -2656,7 +2656,10 @@
{"undolevels", "ul", P_NUM|P_VI_DEF,
(char_u *)&p_ul, PV_NONE,
{
-#if defined(UNIX) || defined(WIN3264) || defined(OS2) || defined(VMS)
+#if (defined(UNIX) || defined(WIN3264) || defined(OS2) || defined(VMS)) \
+ && defined(FEAT_PERSISTENT_UNDO)
+ (char_u *)10000L,
+#elif defined(UNIX) || defined(WIN3264) || defined(OS2) || defined(VMS)
(char_u *)1000L,
#else
(char_u *)100L,
--
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