patch 9.1.1419: It is difficult to ignore all but some events

Problem:  It is difficult to ignore all but some events.
Solution: Add support for a "-" prefix syntax in '(win)eventignore' that
          subtracts an event from the ignored set if present
          (Luuk van Baal).

closes: #17392

Signed-off-by: Luuk van Baal <luukvbaal@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Luuk van Baal
2025-05-31 12:10:31 +02:00
committed by Christian Brabandt
parent 647d7f7389
commit 8cc6d8b187
7 changed files with 52 additions and 16 deletions

View File

@ -1,4 +1,4 @@
*options.txt* For Vim version 9.1. Last change: 2025 May 30
*options.txt* For Vim version 9.1. Last change: 2025 May 31
VIM REFERENCE MANUAL by Bram Moolenaar
@ -3376,6 +3376,9 @@ A jump table for the options with a short description can be found at |Q_op|.
events are ignored, autocommands will not be executed.
Otherwise this is a comma-separated list of event names. Example: >
:set ei=WinEnter,WinLeave
<
To ignore all but some events, a "-" prefix can be used: >
:set ei=all,-WinLeave
<
*'eventignorewin'* *'eiw'*
'eventignorewin' 'eiw' string (default "")