Skip to content

Commit 31ec664

Browse files
dkearnschrisbra
authored andcommitted
runtime(doc): Update help syntax, match :autocmd options
- Match :autocmd options and special buffer pattern. - Normalise ellipsis (three dots) in Ex command argument lists. closes: #17793 Signed-off-by: Doug Kearns <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent 88b7359 commit 31ec664

4 files changed

Lines changed: 17 additions & 13 deletions

File tree

runtime/doc/editing.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*editing.txt* For Vim version 9.1. Last change: 2025 Jun 25
1+
*editing.txt* For Vim version 9.1. Last change: 2025 Jul 20
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -656,7 +656,7 @@ list of the current window.
656656
buffer.
657657
Also see |++opt| and |+cmd|.
658658

659-
:[count]arge[dit][!] [++opt] [+cmd] {name} .. *:arge* *:argedit*
659+
:[count]arge[dit][!] [++opt] [+cmd] {name} ... *:arge* *:argedit*
660660
Add {name}s to the argument list and edit it.
661661
There is no check for duplicates, it is possible to
662662
add a file to the argument list twice |:argded|.
@@ -671,7 +671,7 @@ list of the current window.
671671
edited. No check for duplicates is done.
672672
Also see |++opt| and |+cmd|.
673673

674-
:[count]arga[dd] {name} .. *:arga* *:argadd* *E479*
674+
:[count]arga[dd] {name} ... *:arga* *:argadd* *E479*
675675
:[count]arga[dd] *E1156*
676676
Add the {name}s to the argument list. When {name} is
677677
omitted add the current buffer name to the argument
@@ -702,7 +702,7 @@ list of the current window.
702702
If your current file is a duplicate, your current file
703703
will change to the original file index.
704704

705-
:argd[elete] {pattern} .. *:argd* *:argdelete* *E480* *E610*
705+
:argd[elete] {pattern} ... *:argd* *:argdelete* *E480* *E610*
706706
Delete files from the argument list that match the
707707
{pattern}s. {pattern} is used like a file pattern,
708708
see |file-pattern|. "%" can be used to delete the

runtime/doc/eval.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 9.1. Last change: 2025 Jul 13
1+
*eval.txt* For Vim version 9.1. Last change: 2025 Jul 20
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -3722,7 +3722,7 @@ text...
37223722
improve script readability.
37233723

37243724
*:ec* *:echo*
3725-
:ec[ho] {expr1} .. Echoes each {expr1}, with a space in between. The
3725+
:ec[ho] {expr1} ... Echoes each {expr1}, with a space in between. The
37263726
first {expr1} starts on a new line.
37273727
Also see |:comment|.
37283728
Use "\n" to start a new line. Use "\r" to move the
@@ -3742,7 +3742,7 @@ text...
37423742
:new | redraw | echo "there is a new window"
37433743
<
37443744
*:echon*
3745-
:echon {expr1} .. Echoes each {expr1}, without anything added. Also see
3745+
:echon {expr1} ... Echoes each {expr1}, without anything added. Also see
37463746
|:comment|.
37473747
Uses the highlighting set by the `:echohl` command.
37483748
Cannot be followed by a comment.
@@ -3773,7 +3773,7 @@ text...
37733773
otherwise all following echo's will be highlighted.
37743774

37753775
*:echom* *:echomsg*
3776-
:echom[sg] {expr1} .. Echo the expression(s) as a true message, saving the
3776+
:echom[sg] {expr1} ... Echo the expression(s) as a true message, saving the
37773777
message in the |message-history|.
37783778
Spaces are placed between the arguments as with the
37793779
`:echo` command. But unprintable characters are
@@ -3805,7 +3805,7 @@ text...
38053805
with the +timer and the +popupwin features.
38063806

38073807
*:echoe* *:echoerr*
3808-
:echoe[rr] {expr1} .. Echo the expression(s) as an error message, saving the
3808+
:echoe[rr] {expr1} ... Echo the expression(s) as an error message, saving the
38093809
message in the |message-history|. When used in a
38103810
script or function the line number will be added.
38113811
Spaces are placed between the arguments as with the
@@ -3818,7 +3818,7 @@ text...
38183818
And to get a beep: >
38193819
:exe "normal \<Esc>"
38203820
3821-
:echoc[onsole] {expr1} .. *:echoc* *:echoconsole*
3821+
:echoc[onsole] {expr1} ... *:echoc* *:echoconsole*
38223822
Intended for testing: works like `:echomsg` but when
38233823
running in the GUI and started from a terminal write
38243824
the text to stdout.
@@ -3845,7 +3845,7 @@ text...
38453845

38463846

38473847
*:exe* *:execute*
3848-
:exe[cute] {expr1} .. Executes the string that results from the evaluation
3848+
:exe[cute] {expr1} ... Executes the string that results from the evaluation
38493849
of {expr1} as an Ex command.
38503850
Multiple arguments are concatenated, with a space in
38513851
between. To avoid the extra space use the ".."

runtime/doc/syntax.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4353,13 +4353,13 @@ SYNTAX ISKEYWORD SETTING *:syn-iskeyword*
43534353

43544354
DEFINING KEYWORDS *:syn-keyword*
43554355

4356-
:sy[ntax] keyword {group-name} [{options}] {keyword} .. [{options}]
4356+
:sy[ntax] keyword {group-name} [{options}] {keyword} ... [{options}]
43574357

43584358
This defines a number of keywords.
43594359

43604360
{group-name} Is a syntax group name such as "Comment".
43614361
[{options}] See |:syn-arguments| below.
4362-
{keyword} .. Is a list of keywords which are part of this group.
4362+
{keyword} ... Is a list of keywords which are part of this group.
43634363

43644364
Example: >
43654365
:syntax keyword Type int long char

runtime/syntax/help.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ syn match helpSpecial "^\t[>enf{}^L:=lbghNEpti+cC/(uUwWkmMjJ)*#P]N\s"ms=s+2,me=
113113
syn match helpSpecial "{[-a-zA-Z0-9'"*+/:%#=[\]<>.,]\+}"
114114
syn match helpSpecial "\s\[[-a-z^A-Z0-9_]\{2,}]"ms=s+1
115115
syn match helpSpecial "<[-a-zA-Z0-9_]\+>"
116+
syn match helpSpecial "<buffer=\w\+>"
116117
syn match helpSpecial "<[SCM]-.>"
117118
syn match helpNormal "<---*>"
118119
syn match helpSpecial "\[range]"
@@ -126,6 +127,9 @@ syn match helpSpecial "\[+num]"
126127
syn match helpSpecial "\[-num]"
127128
syn match helpSpecial "\[+cmd]"
128129
syn match helpSpecial "\[++opt]"
130+
syn match helpSpecial "\[++once]"
131+
syn match helpSpecial "\[++nested]"
132+
syn match helpSpecial "\[++t]"
129133
syn match helpSpecial "\[arg]"
130134
syn match helpSpecial "\[arguments]"
131135
syn match helpSpecial "\[ident]"

0 commit comments

Comments
 (0)