Skip to content

Commit c99463c

Browse files
authored
Merge pull request #2409 from h-east/update-repeat
Update repeat.{txt,jax}
2 parents 97b3c7a + 1e3c726 commit c99463c

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

doc/repeat.jax

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*repeat.txt* For Vim バージョン 9.1. Last change: 2025 Oct 13
1+
*repeat.txt* For Vim バージョン 9.1. Last change: 2025 Nov 01
22

33

44
VIM リファレンスマニュアル by Bram Moolenaar
@@ -320,6 +320,12 @@ Vim script の書き方はユーザーマニュアルの41章|usr_41.txt|を参
320320
`filetype plugin indent on` を全ての `packadd!` よりも
321321
「後に」書く必要がある。
322322

323+
起動時に `!` が必要かをプログラム的に判断するには、
324+
|v:vim_did_init| を確認する: 0 の場合は `!` を使用する
325+
(|load-plugins| の処理を重複させないため)。それ以外の
326+
場合は `!` なし (プラグインファイルの読み込みを強制す
327+
るため。そうしないと自動では読み込まれない)。
328+
323329
また |pack-add| も参照。
324330
{|+eval| 機能付きでコンパイルされたときのみ有効}
325331

en/repeat.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*repeat.txt* For Vim version 9.1. Last change: 2025 Oct 13
1+
*repeat.txt* For Vim version 9.1. Last change: 2025 Nov 01
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -328,6 +328,12 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
328328
you will need to write `filetype plugin indent on`
329329
AFTER all `packadd!` commands.
330330

331+
To programmatically decide if `!` is needed during
332+
startup, check |v:vim_did_init|: use `!` if 0 (to not
333+
duplicate |load-plugins| step), no `!` otherwise (to
334+
force load plugin files as otherwise they won't be
335+
loaded automatically).
336+
331337
Also see |pack-add|.
332338
{only available when compiled with |+eval|}
333339

0 commit comments

Comments
 (0)