Skip to content

Commit 6a8ab8f

Browse files
committed
runtime(doc): update the :split help tags.
closes: #18640 Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 61ef8a3 commit 6a8ab8f

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

runtime/doc/windows.txt

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*windows.txt* For Vim version 9.1. Last change: 2025 Oct 14
1+
*windows.txt* For Vim version 9.1. Last change: 2025 Oct 26
22

33

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

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

167-
If [file] is given it will be edited in the new window. If it
168-
is not loaded in any buffer, it will be read. Else the new
169-
window will use the already loaded buffer.
170-
171167
Note: CTRL-S does not work on all terminals and might block
172168
further input, use CTRL-Q to get going again.
173169
Also see |++opt| and |+cmd|.
@@ -176,6 +172,19 @@ CTRL-W CTRL-S *CTRL-W_CTRL-S*
176172
mess up the window layout if this happens while making other
177173
window layout changes.
178174

175+
:[N]sp[lit] [++opt] [+cmd] {file} *:split_f*
176+
Like |:split| but create a new window and start editing file
177+
{file} in it.
178+
This behaves almost like a ":split" first, and then an ":edit"
179+
command, but the alternate file name in the original window is
180+
set to {file}.
181+
If [+cmd] is given, execute the command when the file has been
182+
loaded |+cmd|.
183+
Also see |++opt|.
184+
Make new window N high (default is to use half the existing
185+
height). Reduces the current window height to create room
186+
(and others, if the 'equalalways' option is set).
187+
179188
CTRL-W CTRL-V *CTRL-W_CTRL-V*
180189
CTRL-W v *CTRL-W_v*
181190
:[N]vs[plit] [++opt] [+cmd] [file] *:vs* *:vsplit*
@@ -213,17 +222,7 @@ CTRL-W CTRL-N *CTRL-W_CTRL-N*
213222
command.
214223

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

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

0 commit comments

Comments
 (0)