Skip to content

Commit 75919e2

Browse files
committed
Update windows.{txt,jax}
1 parent b0854e1 commit 75919e2

2 files changed

Lines changed: 28 additions & 12 deletions

File tree

doc/windows.jax

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*windows.txt* For Vim バージョン 9.1. Last change: 2025 Dec 03
1+
*windows.txt* For Vim バージョン 9.2. Last change: 2026 Feb 14
22

33

44
VIM リファレンスマニュアル by Bram Moolenaar
@@ -1228,16 +1228,25 @@ CTRL-W g } *CTRL-W_g}*
12281228
:[N]bd[elete][!] *:bd* *:bdel* *:bdelete* *E516*
12291229
:bd[elete][!] [N]
12301230
バッファ[N](デフォルト: カレントバッファ)をメモリから取り除
1231-
き、バッファリストから削除する。バッファが編集中の場合はこのコ
1232-
マンドは失敗する ([!] が与えられた場合は成功する。そのとき変更
1233-
は破棄される)。ファイルには影響はない。このバッファを表示して
1234-
いる全てのウィンドウは閉じられる。バッファ[N]がカレントバッ
1235-
ファの場合は、他のバッファが代わりに表示される。このバッファに
1236-
は、ジャンプリストの中のメモリ上にロードされているバッファを指
1237-
し示している最も最近のエントリが使用される。
1231+
き、バッファリストから削除する。
1232+
バッファが変更された場合、[!] が指定されていない限りこれは失敗
1233+
し、指定されている場合は変更は失われる。
1234+
ファイルには影響はない。このバッファを表示している全てのウィン
1235+
ドウは閉じられる。バッファ[N]がカレントバッファの場合は、他の
1236+
バッファが代わりに表示される。このバッファには、ジャンプリスト
1237+
の中のメモリ上にロードされているバッファを指し示している最も最
1238+
近のエントリが使用される。
1239+
12381240
実際は、バッファは完全に削除されていない。バッファリストから削
12391241
除され |unlisted-buffer|、バッファに対するオプションの値、変数、
1240-
マッピング・略語が消去される。例: >
1242+
マッピング・略語が消去される。[N] がウィンドウ内の最後のバッ
1243+
ファである場合 (つまり、切り替え可能な他のバッファがない場合)、
1244+
バッファはアンロードされるのではなく空になる。ウィンドウは閉じ
1245+
られず、バッファは新しいバッファとして再利用できる
1246+
|buffer-reuse|。これにより、すべてのウィンドウが常に有効なバッ
1247+
ファを持つことが保証される。
1248+
1249+
例: >
12411250
:.,$-bdelete " カレントバッファから最後から 2 番目のバッ
12421251
" ファまでを削除
12431252
:%bdelete " すべてのバッファを削除

en/windows.txt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*windows.txt* For Vim version 9.1. Last change: 2025 Dec 03
1+
*windows.txt* For Vim version 9.2. Last change: 2026 Feb 14
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1210,15 +1210,22 @@ list of buffers. |unlisted-buffer|
12101210
:bd[elete][!] [N]
12111211
Unload buffer [N] (default: current buffer) and delete it from
12121212
the buffer list. If the buffer was changed, this fails,
1213-
unless when [!] is specified, in which case changes are lost.
1213+
unless [!] is specified, in which case changes are lost.
12141214
The file remains unaffected. Any windows for this buffer are
12151215
closed. If buffer [N] is the current buffer, another buffer
12161216
will be displayed instead. This is the most recent entry in
12171217
the jump list that points into a loaded buffer.
1218+
12181219
Actually, the buffer isn't completely deleted, it is removed
12191220
from the buffer list |unlisted-buffer| and option values,
12201221
variables and mappings/abbreviations for the buffer are
1221-
cleared. Examples: >
1222+
cleared. If [N] is the last listed buffer in a window (i.e.,
1223+
there is no other listed buffer to switch to), the buffer is
1224+
emptied instead of being unloaded. The window is not closed,
1225+
and the buffer may be reused as a new buffer |buffer-reuse|.
1226+
This ensures every window always has a valid buffer.
1227+
1228+
Examples: >
12221229
:.,$-bdelete " delete buffers from the current one to
12231230
" last but one
12241231
:%bdelete " delete all buffers

0 commit comments

Comments
 (0)