Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/userfunc.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*userfunc.txt* For Vim バージョン 9.1. Last change: 2025 Aug 06
*userfunc.txt* For Vim バージョン 9.1. Last change: 2025 Sep 12


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -367,8 +367,8 @@ script の場合は、関数がエクスポートされていないことが原
==============================================================================

3. 関数内でのクリーンアップ ~
*:defer*
:defer {func}({args}) 現在の関数終了時に {func} を呼び出す。
*:defe* *:defer*
:defe[r] {func}({args}) 現在の関数終了時に {func} を呼び出す。
引数 {args} はここ{訳注:記述箇所}で評価される。

多くの場合関数内のコマンドにはグローバルな効果があり、関数終了時に元に戻す必要
Expand Down
6 changes: 3 additions & 3 deletions en/userfunc.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*userfunc.txt* For Vim version 9.1. Last change: 2025 Aug 06
*userfunc.txt* For Vim version 9.1. Last change: 2025 Sep 12


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -393,8 +393,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
Expand Down