Skip to content

Commit e8bbdb9

Browse files
dkearnschrisbra
authored andcommitted
runtime(doc): Add :defe[r] shortname spec and tag
closes: #18281 Signed-off-by: Doug Kearns <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent 6f020cd commit e8bbdb9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

runtime/doc/tags

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2530,6 +2530,7 @@ $quote eval.txt /*$quote*
25302530
:def vim9.txt /*:def*
25312531
:defc vim9.txt /*:defc*
25322532
:defcompile vim9.txt /*:defcompile*
2533+
:defe userfunc.txt /*:defe*
25332534
:defer userfunc.txt /*:defer*
25342535
:del change.txt /*:del*
25352536
:delc map.txt /*:delc*

runtime/doc/userfunc.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*userfunc.txt* For Vim version 9.1. Last change: 2025 Aug 06
1+
*userfunc.txt* For Vim version 9.1. Last change: 2025 Sep 12
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -393,8 +393,8 @@ is used as a method: >
393393
==============================================================================
394394

395395
3. Cleaning up in a function ~
396-
*:defer*
397-
:defer {func}({args}) Call {func} when the current function is done.
396+
*:defe* *:defer*
397+
:defe[r] {func}({args}) Call {func} when the current function is done.
398398
{args} are evaluated here.
399399

400400
Quite often a command in a function has a global effect, which must be undone

0 commit comments

Comments
 (0)