From 99d16af86a027af1fa1df87930667b46b6ad5db0 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 13 Sep 2025 09:39:53 +0800 Subject: [PATCH] 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 --- runtime/doc/userfunc.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/doc/userfunc.txt b/runtime/doc/userfunc.txt index 65db3f3256..38f4090e25 100644 --- 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