1- *windows.txt* For Vim version 9.1. Last change: 2025 Apr 30
1+ *windows.txt* For Vim version 9.1. Last change: 2025 Oct 14
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -72,15 +72,15 @@ Each buffer has a unique number and the number will not change within a Vim
7272session. The | bufnr() | and | bufname() | functions can be used to convert
7373between a buffer name and the buffer number. There is one exception: if a new
7474empty buffer is created and it is not modified, the buffer will be re-used
75- when loading another file into that buffer. This also means the buffer number
75+ when loading another file into that buffer. This also means the buffer number
7676will not change.
7777
7878The main Vim window can hold several split windows. There are also tab pages
7979| tab-page | , each of which can hold multiple windows.
8080
8181 *window-ID* *winid* *windowid*
8282Each window has a unique identifier called the window ID. This identifier
83- will not change within a Vim session. The | win_getid() | and | win_id2tabwin() |
83+ will not change within a Vim session. The | win_getid() | and | win_id2tabwin() |
8484functions can be used to convert between the window/tab number and the
8585identifier. There is also the window number, which may change whenever
8686windows are opened or closed, see | winnr() | .
@@ -127,11 +127,11 @@ This option can be local to the window, so that you can have a different
127127status line in each window.
128128
129129Normally, inversion is used to display the status line. This can be changed
130- with the 's' character in the 'highlight' option. For example, "sb" sets it to
131- bold characters. If no highlighting is used for the status line ("sn"), the
132- '^' character is used for the current window, and '=' for other windows. If
133- the mouse is supported and enabled with the 'mouse' option, a status line can
134- be dragged to resize windows.
130+ with the 's' character in the 'highlight' option. For example, "sb" sets it
131+ to bold characters. If no highlighting is used for the status line ("sn"),
132+ the '^' character is used for the current window, and '=' for other windows.
133+ If the mouse is supported and enabled with the 'mouse' option, a status line
134+ can be dragged to resize windows.
135135
136136Note: If you expect your status line to be in reverse video and it isn't,
137137check if the 'highlight' option contains "si". In version 3.0, this meant to
@@ -142,9 +142,9 @@ that have termcap codes for italics.
142142
143143 *filler-lines*
144144The lines after the last buffer line in a window are called filler lines. By
145- default, these lines start with a tilde (~) character. The ' eob' item in the
146- 'fillchars' option can be used to change this character. By default, these
147- characters are highlighted as NonText (| hl-NonText | ). The EndOfBuffer
145+ default, these lines start with a tilde (~) character. The " eob" item in the
146+ 'fillchars' option can be used to change this character. By default, these
147+ characters are highlighted as NonText (| hl-NonText | ). The EndOfBuffer
148148highlight group (| hl-EndOfBuffer | ) can be used to change the highlighting of
149149the filler characters.
150150
@@ -912,7 +912,7 @@ CTRL-W CTRL-F Split current window in two. Edit file name under cursor.
912912
913913CTRL-W F *CTRL-W_F*
914914 Split current window in two. Edit file name under cursor and
915- jump to the line number following the file name. See | gF | for
915+ jump to the line number following the file name. See | gF | for
916916 details on how the line number is obtained.
917917
918918CTRL-W gf *CTRL-W_gf*
@@ -1217,23 +1217,24 @@ list of buffers. |unlisted-buffer|
12171217 Actually, the buffer isn't completely deleted, it is removed
12181218 from the buffer list | unlisted-buffer | and option values,
12191219 variables and mappings/abbreviations for the buffer are
1220- cleared. Examples: >
1220+ cleared. Examples: >
12211221 :.,$-bdelete " delete buffers from the current one to
12221222 " last but one
12231223 :%bdelete " delete all buffers
12241224<
12251225
1226- :bdelete [!] {bufname} *E93* *E94*
1226+ :bd[elete] [!] {bufname} *E93* *E94*
12271227 Like ":bdelete[!] [N] ", but buffer given by name, see
12281228 | {bufname} | .
12291229
1230- :bdelete [!] N1 N2 ...
1230+ :bd[elete] [!] N1 N2 ...
12311231 Do ":bdelete[!]" for buffer N1, N2, etc. The arguments can be
12321232 buffer numbers or buffer names (but not buffer names that are
12331233 a number). Insert a backslash before a space in a buffer
12341234 name.
12351235
1236- :N,Mbdelete[!] Do ":bdelete[!]" for all buffers in the range N to M
1236+ :N,Mbd[elete][!]
1237+ Do ":bdelete[!]" for all buffers in the range N to M
12371238 | inclusive | .
12381239
12391240:[N] bw[ipeout][!] *:bw* *:bwipe* *:bwipeout* *E517*
@@ -1244,7 +1245,7 @@ list of buffers. |unlisted-buffer|
12441245 related to the buffer is lost. All marks in this buffer
12451246 become invalid, option settings are lost, the jumplist and
12461247 tagstack data will be purged, etc. Don't use this
1247- unless you know what you are doing. Examples: >
1248+ unless you know what you are doing. Examples: >
12481249 :.+,$bwipeout " wipe out all buffers after the current
12491250 " one
12501251 :%bwipeout " wipe out all buffers
@@ -1262,14 +1263,15 @@ list of buffers. |unlisted-buffer|
12621263 This is the most recent entry in the jump list that points
12631264 into a loaded buffer.
12641265
1265- :bunload [!] {bufname}
1266+ :bun[load] [!] {bufname}
12661267 Like ":bunload[!] [N] ", but buffer given by name.
12671268 Also see | {bufname} | .
12681269
1269- :N,Mbunload[!] Do ":bunload[!]" for all buffers in the range N to M
1270+ :N,Mbun[load][!]
1271+ Do ":bunload[!]" for all buffers in the range N to M
12701272 | inclusive | .
12711273
1272- :bunload [!] N1 N2 ...
1274+ :bun[load] [!] N1 N2 ...
12731275 Do ":bunload[!]" for buffer N1, N2, etc. The arguments can be
12741276 buffer numbers or buffer names (but not buffer names that are
12751277 a number). Insert a backslash before a space in a buffer
@@ -1428,7 +1430,7 @@ help Contains a help file. Will only be created with the |:help|
14281430 and can't be changed. The 'buflisted' option will be reset
14291431 for a help buffer.
14301432
1431- terminal A terminal window buffer, see | terminal | . The contents cannot
1433+ terminal A terminal window buffer, see | terminal | . The contents cannot
14321434 be read or changed until the job ends.
14331435
14341436directory Displays directory contents. Can be used by a file explorer
0 commit comments