Skip to content

Commit acf928a

Browse files
dkearnschrisbra
authored andcommitted
runtime(doc): Improve windows.txt formatting
- Wrap some overlength lines - Highlight the example at :help WinScrolled-event closes: #18713 Signed-off-by: Doug Kearns <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent aa9862a commit acf928a

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

runtime/doc/windows.txt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*windows.txt* For Vim version 9.1. Last change: 2025 Nov 09
1+
*windows.txt* For Vim version 9.1. Last change: 2025 Nov 10
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -205,9 +205,9 @@ CTRL-W CTRL-N *CTRL-W_CTRL-N*
205205
:[N]new [++opt] [+cmd] *:new*
206206
Create a new window and start editing an empty file in it.
207207
Make new window N high (default is to use half the existing
208-
height). Reduces the current window height to create room (and
209-
others, if the 'equalalways' option is set and 'eadirection'
210-
isn't "hor").
208+
height). Reduces the current window height to create room
209+
(and others, if the 'equalalways' option is set and
210+
'eadirection' isn't "hor").
211211
Also see |++opt| and |+cmd|.
212212
If 'fileformats' is not empty, the first format given will be
213213
used for the new buffer. If 'fileformats' is empty, the
@@ -511,8 +511,8 @@ CTRL-W R Rotate windows upwards/leftwards. The second window becomes
511511
current window is in.
512512

513513
CTRL-W x *CTRL-W_x* *CTRL-W_CTRL-X*
514-
CTRL-W CTRL-X Without count: Exchange current window with next one. If there
515-
is no next window, exchange with previous window.
514+
CTRL-W CTRL-X Without count: Exchange current window with next one. If
515+
there is no next window, exchange with previous window.
516516
With count: Exchange current window with Nth window (first
517517
window is 1). The cursor is put in the other window.
518518
When vertical and horizontal window splits are mixed, the
@@ -659,11 +659,11 @@ times than |WinResized|, it may slow down editing a bit.
659659

660660
The information provided by |WinScrolled| is a dictionary for each window that
661661
has changes, using the window ID as the key, and a total count of the changes
662-
with the key "all". Example value for |v:event| (|Vim9| syntax):
662+
with the key "all". Example value for |v:event| (|Vim9| syntax): >
663663
{
664-
all: {width: 0, height: 2, leftcol: 0, skipcol: 0, topline: 1, topfill: 0},
664+
all: {width: 0, height: 2, leftcol: 0, skipcol: 0, topline: 1, topfill: 0},
665665
1003: {width: 0, height: -1, leftcol: 0, skipcol: 0, topline: 0, topfill: 0},
666-
1006: {width: 0, height: 1, leftcol: 0, skipcol: 0, topline: 1, topfill: 0},
666+
1006: {width: 0, height: 1, leftcol: 0, skipcol: 0, topline: 1, topfill: 0},
667667
}
668668
669669
Note that the "all" entry has the absolute values of the individual windows
@@ -996,13 +996,13 @@ CTRL-W CTRL-Z *CTRL-W_CTRL-Z* *:pc* *:pclose*
996996

997997
CTRL-W } *CTRL-W_}*
998998
Use identifier under cursor as a tag and perform a :ptag on
999-
it. Make the new Preview window (if required) N high. If N is
1000-
not given, 'previewheight' is used.
999+
it. Make the new Preview window (if required) N high. If N
1000+
is not given, 'previewheight' is used.
10011001

10021002
CTRL-W g } *CTRL-W_g}*
10031003
Use identifier under cursor as a tag and perform a :ptjump on
1004-
it. Make the new Preview window (if required) N high. If N is
1005-
not given, 'previewheight' is used.
1004+
it. Make the new Preview window (if required) N high. If N
1005+
is not given, 'previewheight' is used.
10061006

10071007
*:pb* *:pbuffer*
10081008
:[N]pb[uffer][!] [+cmd] [N]
@@ -1325,8 +1325,8 @@ list of buffers. |unlisted-buffer|
13251325
buffer (if there is one). Similarly, if you are in a normal
13261326
(non-help) buffer, this takes you to the next normal buffer.
13271327
This is so that if you have invoked help, it doesn't get in
1328-
the way when you're browsing code/text buffers. The next three
1329-
commands also work like this.
1328+
the way when you're browsing code/text buffers. The next
1329+
three commands also work like this.
13301330

13311331
*:sbn* *:sbnext*
13321332
:[N]sbn[ext] [+cmd] [N]

0 commit comments

Comments
 (0)