diff --git a/doc/windows.jax b/doc/windows.jax index 4962c88e4..574b39b34 100644 --- a/doc/windows.jax +++ b/doc/windows.jax @@ -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 @@ -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つの表示領域に同 じファイルが表示されるようになる。 @@ -167,10 +167,6 @@ CTRL-W CTRL-S *CTRL-W_CTRL-S* 他のウィンドウの中でカレントウィンドウか新しいウィンドウより大 きいものがあれば、そのウィンドウも小さくなる)。 - [file] が与えられている場合は新しいウィンドウで編集される。ど - のバッファでもロードされていない場合、読み込まれる。そうでなれ - ければ新しいウィンドウは既にロードされたバッファを使用する。 - Note: CTRL-S は端末によっては使用できない。また、それ以上の入 力をブロックしてしまうかもしれない。続けるためにはCTRL-Qを使う こと。 @@ -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* @@ -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' がセットされ、 diff --git a/en/windows.txt b/en/windows.txt index 108666248..8dbc7f3ff 100644 --- a/en/windows.txt +++ b/en/windows.txt @@ -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 @@ -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. @@ -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|. @@ -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* @@ -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