Bram,
a question on vi.stackexchange.com came up, why closing the help window 
triggered several autocommands. Therefore I propose the following doc 
patch:

diff --git a/runtime/doc/helphelp.txt b/runtime/doc/helphelp.txt
index ce73f8c55..efbaf338b 100644
--- a/runtime/doc/helphelp.txt
+++ b/runtime/doc/helphelp.txt
@@ -103,6 +103,10 @@ Help on help files                                 
*helphelp*

                                                        *:helpc* *:helpclose*
 :helpc[lose]            Close one help window, if there is one.
+                       Vim will try to restore the window layout (including
+                       cursor position) to the same layout it was before
+                       opening the help window initially.  This might cause
+                       triggering autocommands several times.

                                                        *:helpg* *:helpgrep*
 :helpg[rep] {pattern}[@xx]
diff --git a/runtime/doc/windows.txt b/runtime/doc/windows.txt
index d999962b9..12fa3099b 100644
--- a/runtime/doc/windows.txt
+++ b/runtime/doc/windows.txt
@@ -312,6 +312,8 @@ CTRL-W CTRL-Q                                               
*CTRL-W_CTRL-Q*
                    :+quit  " quit the next window
                    :+2quit " quit the second next window
 <
+               When closing help windows, Vim will try to restore the previous
+               window layout |:helpclose|.
 :q[uit]!
 :{count}q[uit]!
                Without {count}: Quit the current window.  If {count} is



Best,
Christian
-- 
Hundert, Andi:
  ziemlich alter Uhrgroßvater

-- 
-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20191018092019.GJ12041%40256bit.org.

Raspunde prin e-mail lui