Skip to content

Commit 7e3624c

Browse files
authored
Merge pull request #312 from homedm/my-translation-autocmd
Update The difference of autocmd
2 parents 919ffa4 + 6ea9069 commit 7e3624c

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

doc/autocmd.jax

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ Vimは以下のイベントを認識する。イベント名が大文字か小
308308
|FileChangedShellPost| 編集を始めた後にファイルが変更されたことに対処した後
309309
|FileChangedRO| 読み込み専用ファイルに対して最初に変更を加える前
310310

311+
|DiffUpdated| 差分が更新された後
311312
|DirChanged| 作業ディレクトリが変更された後
312313

313314
|ShellCmdPost| シェルコマンドを実行した後
@@ -664,6 +665,10 @@ FileChangedRO 読み込み専用ファイルに最初の変更を加える前
664665
*E881*
665666
行数が変化した場合 undo のための保存は失敗し、
666667
その変更は中止されるだろう。
668+
*DiffUpdated*
669+
DiffUpdated 差分が更新された後。使用されているdiffコマンド
670+
の種類(内部または外部)に応じて、変更毎か
671+
|:diffupdate| 実行時に発生する。
667672
*DirChanged*
668673
DirChanged |:cd| もしくは |:lcd| コマンドによって、もしく
669674
'autochdir' オプションの結果として作業ディ
@@ -908,7 +913,7 @@ ShellFilterPost ":{range}!cmd", ":w !cmd", ":r !cmd"を使って
908913
SourcePre Vim script を読み込む前。|:source|
909914
<afile> は読み込まれるファイルの名前となる。
910915
*SourceCmd*
911-
SourceCmd Vim script を読み込むとき。|:source|
916+
SourceCmd Vim script を読み込むとき。|:source|
912917
<afile>は読み込まれるファイルの名前となる。こ
913918
の自動コマンドはこのファイルを読み込まねばなら
914919
ない。

en/autocmd.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ Name triggered by ~
345345
when popup menu is not visible
346346
|TextChangedP| after a change was made to the text in Insert mode
347347
when popup menu visible
348-
|TextYankPost| after text is yanked or deleted
348+
|TextYankPost| after text has been yanked or deleted
349349

350350
|ColorSchemePre| before loading a color scheme
351351
|ColorScheme| after loading a color scheme
@@ -656,12 +656,17 @@ FileChangedRO Before making the first change to a read-only
656656
*E881*
657657
If the number of lines changes saving for undo
658658
may fail and the change will be aborted.
659+
*DiffUpdated*
660+
DiffUpdated After diffs have been updated. Depending on
661+
what kind of diff is being used (internal or
662+
external) this can be triggered on every
663+
change or when doing |:diffupdate|.
659664
*DirChanged*
660665
DirChanged The working directory has changed in response
661666
to the |:cd| or |:lcd| commands, or as a
662667
result of the 'autochdir' option.
663668
The pattern can be:
664-
"window" to trigger on `:lcd
669+
"window" to trigger on `:lcd`
665670
"global" to trigger on `:cd`
666671
"auto" to trigger on 'autochdir'.
667672
"drop" to trigger on editing a file

0 commit comments

Comments
 (0)