In Vim 7.4.1192 and previous, the :options command shows
'undolevels' and 'undoreload' under "14 editing text", but
'undofile' and 'undodir' under "21 command line editing".

1.  I think all the undo options should be grouped together in the
    :options display.

2.  I don't think it makes sense to have undo options under "command
    line editing".

Consequently, I moved the entries for 'undofile' and 'undodir' to
where 'undolevels' and 'undoreload' are located and put all four in
alphabetical order.  The result looks like this:

--------------------------------------------------------------------

14 editing text

undodir        list of directories for undo files
               set udir=.
undofile       automatically save and restore undo history
               set noudf      udf
undolevels     maximum number of changes that can be undone
               (global or local to buffer)
               set ul=1000
undoreload     maximum number lines to save for undo on a buffer reload
               set ur=10000
modified       changes have been made and not written to a file
               (local to buffer)
               set nomod      mod
--------------------------------------------------------------------

A patch is attached in case it's agreed that this is the right thing
to do.

Regards,
Gary

-- 
-- 
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/d/optout.
diff --git a/runtime/optwin.vim b/runtime/optwin.vim
--- a/runtime/optwin.vim
+++ b/runtime/optwin.vim
@@ -733,6 +733,10 @@
 
 
 call <SID>Header("editing text")
+call append("$", "undodir\tlist of directories for undo files")
+call <SID>OptionG("udir", &udir)
+call append("$", "undofile\tautomatically save and restore undo history")
+call <SID>BinOptionG("udf", &udf)
 call append("$", "undolevels\tmaximum number of changes that can be undone")
 call append("$", "\t(global or local to buffer)")
 call append("$", " \tset ul=" . &ul)
@@ -1072,10 +1076,6 @@
   call append("$", "cmdwinheight\theight of the command-line window")
   call <SID>OptionG("cwh", &cwh)
 endif
-call append("$", "undofile\tautomatically save and restore undo history")
-call <SID>BinOptionG("udf", &udf)
-call append("$", "undodir\tlist of directories for undo files")
-call <SID>OptionG("udir", &udir)
 
 
 call <SID>Header("executing external commands")

Raspunde prin e-mail lui