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
36 changes: 18 additions & 18 deletions doc/windows.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*windows.txt* For Vim バージョン 9.1. Last change: 2025 Oct 14
*windows.txt* For Vim バージョン 9.1. Last change: 2025 Oct 26


VIM リファレンスマニュアル by Bram Moolenaar
Expand Down Expand Up @@ -156,7 +156,7 @@ Note: ステータス行が反転表示されるはずが反転表示されな
CTRL-W s *CTRL-W_s*
CTRL-W S *CTRL-W_S*
CTRL-W CTRL-S *CTRL-W_CTRL-S*
:[N]sp[lit] [++opt] [+cmd] [file] *:sp* *:split*
:[N]sp[lit] [++opt] [+cmd] *:sp* *:split*
カレントウィンドウを2つに分割する。その結果、2つの表示領域に同
じファイルが表示されるようになる。

Expand All @@ -167,10 +167,6 @@ CTRL-W CTRL-S *CTRL-W_CTRL-S*
他のウィンドウの中でカレントウィンドウか新しいウィンドウより大
きいものがあれば、そのウィンドウも小さくなる)。

[file] が与えられている場合は新しいウィンドウで編集される。ど
のバッファでもロードされていない場合、読み込まれる。そうでなれ
ければ新しいウィンドウは既にロードされたバッファを使用する。

Note: CTRL-S は端末によっては使用できない。また、それ以上の入
力をブロックしてしまうかもしれない。続けるためにはCTRL-Qを使う
こと。
Expand All @@ -180,6 +176,20 @@ CTRL-W CTRL-S *CTRL-W_CTRL-S*
ンドウレイアウトを変更しているときにウィンドウレイアウトが混乱
する場合がある。

:[N]sp[lit] [++opt] [+cmd] {file} *:split_f*
|:split| と似ているが、新しいウィンドウを作成し、その中でファ
イル {file} の編集を開始する。
これは、最初に ":split" コマンドを実行し、次に ":edit" コマン
ドを実行するのとほぼ同じ動作だが、元のウィンドウの代替ファイル
名は {file} に設定される。
[+cmd] が指定された場合は、ファイルが読み込まれた時点でコマン
ドを実行する |+cmd|。
|++opt| も参照。
新しいウィンドウの高さを N に設定する (デフォルトでは既存のウィ
ンドウの高さの半分を使用する)。スペースを確保するために、現在
のウィンドウの高さを縮小する ('equalalways' オプションが設定さ
れている場合は、他のウィンドウの高さも同様に縮小する)。

CTRL-W CTRL-V *CTRL-W_CTRL-V*
CTRL-W v *CTRL-W_v*
:[N]vs[plit] [++opt] [+cmd] [file] *:vs* *:vsplit*
Expand Down Expand Up @@ -218,18 +228,8 @@ CTRL-W CTRL-N *CTRL-W_CTRL-N*
場合と同じ動作である。

:[N]new [++opt] [+cmd] {file}
:[N]sp[lit] [++opt] [+cmd] {file} *:split_f*
新しいウィンドウを作成し、そのウィンドウでファイル {file} の編
集が始まる。この動作は、はじめに ":split"、次に ":edit" コマン
ドを実行した場合とほぼ同じ動作であるが、元々のウィンドウに
{file} を代替ファイル名として設定する。
[+cmd] が指定された場合は、ファイルをロードしコマンドを実行す
る |+cmd|。
|++opt| も参照のこと。
新しいウィンドウの高さはNになる(デフォルトの高さはカレントウィ
ンドウの高さの半分)。新しいウィンドウの場所を確保するため、カ
レントウィンドウの高さは低くなる。('equalalways' オプションが
セットされていれば他のウィンドウも低くなる)
|:split_f| と同様に新しいウィンドウを作成し、{file} の編集を開
始する。

:[N]vne[w] [++opt] [+cmd] [file] *:vne* *:vnew*
|:new|と同様だが、垂直分割する。'equalalways' がセットされ、
Expand Down
33 changes: 16 additions & 17 deletions en/windows.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*windows.txt* For Vim version 9.1. Last change: 2025 Oct 14
*windows.txt* For Vim version 9.1. Last change: 2025 Oct 26


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -154,7 +154,7 @@ the filler characters.
CTRL-W s *CTRL-W_s*
CTRL-W S *CTRL-W_S*
CTRL-W CTRL-S *CTRL-W_CTRL-S*
:[N]sp[lit] [++opt] [+cmd] [file] *:sp* *:split*
:[N]sp[lit] [++opt] [+cmd] *:sp* *:split*
Split current window in two. The result is two viewports on
the same file.

Expand All @@ -164,10 +164,6 @@ CTRL-W CTRL-S *CTRL-W_CTRL-S*
'eadirection' isn't "hor", and one of them is higher than the
current or the new window).

If [file] is given it will be edited in the new window. If it
is not loaded in any buffer, it will be read. Else the new
window will use the already loaded buffer.

Note: CTRL-S does not work on all terminals and might block
further input, use CTRL-Q to get going again.
Also see |++opt| and |+cmd|.
Expand All @@ -176,6 +172,19 @@ CTRL-W CTRL-S *CTRL-W_CTRL-S*
mess up the window layout if this happens while making other
window layout changes.

:[N]sp[lit] [++opt] [+cmd] {file} *:split_f*
Like |:split| but create a new window and start editing file
{file} in it.
This behaves almost like a ":split" first, and then an ":edit"
command, but the alternate file name in the original window is
set to {file}.
If [+cmd] is given, execute the command when the file has been
loaded |+cmd|.
Also see |++opt|.
Make new window N high (default is to use half the existing
height). Reduces the current window height to create room
(and others, if the 'equalalways' option is set).

CTRL-W CTRL-V *CTRL-W_CTRL-V*
CTRL-W v *CTRL-W_v*
:[N]vs[plit] [++opt] [+cmd] [file] *:vs* *:vsplit*
Expand Down Expand Up @@ -213,17 +222,7 @@ CTRL-W CTRL-N *CTRL-W_CTRL-N*
command.

:[N]new [++opt] [+cmd] {file}
:[N]sp[lit] [++opt] [+cmd] {file} *:split_f*
Create a new window and start editing file {file} in it. This
behaves almost like a ":split" first, and then an ":edit"
command, but the alternate file name in the original window is
set to {file}.
If [+cmd] is given, execute the command when the file has been
loaded |+cmd|.
Also see |++opt|.
Make new window N high (default is to use half the existing
height). Reduces the current window height to create room
(and others, if the 'equalalways' option is set).
Like |:split_f|, create a new window and start editing {file}.

:[N]vne[w] [++opt] [+cmd] [file] *:vne* *:vnew*
Like |:new|, but split vertically. If 'equalalways' is set
Expand Down