commit 99d16af86a027af1fa1df87930667b46b6ad5db0
parent c7a94040198bb12bda62bf93b6c3b65ac3520589
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sat, 13 Sep 2025 09:39:53 +0800
vim-patch:e8bbdb9: runtime(doc): Add :defe[r] shortname spec and tag (#35741)
closes: vim/vim#18281
https://github.com/vim/vim/commit/e8bbdb90e449959dba9f3b270a78321e2cf1fae8
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/runtime/doc/userfunc.txt b/runtime/doc/userfunc.txt
@@ -360,8 +360,8 @@ is used as a method: >
==============================================================================
3. Cleaning up in a function ~
- *:defer*
-:defer {func}({args}) Call {func} when the current function is done.
+ *:defe* *:defer*
+:defe[r] {func}({args}) Call {func} when the current function is done.
{args} are evaluated here.
Quite often a command in a function has a global effect, which must be undone