Skip to content

Commit 576043c

Browse files
committed
Merge remote-tracking branch 'upstream/master' into tabsidebar
2 parents 014c85a + 1054b18 commit 576043c

File tree

176 files changed

+5692
-1447
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+5692
-1447
lines changed

.github/MAINTAINERS

+1
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,7 @@ runtime/syntax/ninja.vim @nico
562562
runtime/syntax/nix.vim @equill
563563
runtime/syntax/nroff.vim @jmarshall
564564
runtime/syntax/nsis.vim @k-takata
565+
runtime/syntax/omnimark.vim @kennypete
565566
runtime/syntax/ondir.vim @jparise
566567
runtime/syntax/opencl.vim @Freed-Wu
567568
runtime/syntax/openvpn.vim @ObserverOfTime

runtime/doc/Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ os_win32.txt:
142142
touch $@
143143

144144
pi_netrw.txt: ../pack/dist/opt/netrw/doc/netrw.txt
145-
cp ../pack/dist/opt/netrw/doc/netrw.txt $@
145+
cp ../pack/dist/opt/netrw/doc/netrw.txt $@.tmp
146+
sed -e '1s/$$/ *pi_netrw.txt*/' $@.tmp > $@ && \
147+
rm -f $@.tmp
146148

147149
vietnamese.txt:
148150
touch $@

runtime/doc/builtin.txt

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim version 9.1. Last change: 2025 Mar 24
1+
*builtin.txt* For Vim version 9.1. Last change: 2025 Mar 26
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -8336,13 +8336,14 @@ py3eval({expr} [, {locals}]) *py3eval()*
83368336
converted to Vim data structures.
83378337
If a {locals} |Dictionary| is given, it defines set of local
83388338
variables available in the expression. The keys are variable
8339-
names and the values are the variable values. |Dictionary| and
8340-
|List| values are referenced, and may be updated by the
8341-
expression (as if |python-bindeval| was used).
8339+
names and the values are the variable values. |Dictionary|,
8340+
|List| and |Tuple| values are referenced, and may be updated
8341+
by the expression (as if |python-bindeval| was used).
83428342
Numbers and strings are returned as they are (strings are
83438343
copied though, Unicode strings are additionally converted to
83448344
'encoding').
83458345
Lists are represented as Vim |List| type.
8346+
Tuples are represented as Vim |Tuple| type.
83468347
Dictionaries are represented as Vim |Dictionary| type with
83478348
keys converted to strings.
83488349
Note that in a `:def` function local variables are not visible
@@ -8364,6 +8365,7 @@ pyeval({expr} [, {locals}]) *pyeval()*
83648365
Numbers and strings are returned as they are (strings are
83658366
copied though).
83668367
Lists are represented as Vim |List| type.
8368+
Tuples are represented as Vim |Tuple| type.
83678369
Dictionaries are represented as Vim |Dictionary| type,
83688370
non-string keys result in error.
83698371
Note that in a `:def` function local variables are not visible

runtime/doc/diff.txt

+23-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*diff.txt* For Vim version 9.1. Last change: 2024 Feb 01
1+
*diff.txt* For Vim version 9.1. Last change: 2024 Mar 28
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -226,14 +226,28 @@ The diffs are highlighted with these groups:
226226
|hl-DiffAdd| DiffAdd Added (inserted) lines. These lines exist in
227227
this buffer but not in another.
228228
|hl-DiffChange| DiffChange Changed lines.
229-
|hl-DiffText| DiffText Changed text inside a Changed line. Vim
230-
finds the first character that is different,
231-
and the last character that is different
232-
(searching from the end of the line). The
233-
text in between is highlighted. This means
234-
that parts in the middle that are still the
235-
same are highlighted anyway. The 'diffopt'
236-
flags "iwhite" and "icase" are used here.
229+
|hl-DiffText| DiffText Changed text inside a Changed line. Exact
230+
behavior depends on the `inline:` setting in
231+
'diffopt'.
232+
With `inline:` set to "simple", Vim finds the
233+
first character that is different, and the
234+
last character that is different (searching
235+
from the end of the line). The text in
236+
between is highlighted. This means that parts
237+
in the middle that are still the same are
238+
highlighted anyway. The 'diffopt' flags
239+
"iwhite" and "icase" are used here.
240+
With `inline:` set to "char" or "word", Vim
241+
uses the internal diff library to perform a
242+
detailed diff between the changed blocks and
243+
highlight the exact difference between the
244+
two. Will respect any 'diffopt' flag that
245+
affects internal diff.
246+
Not used when `inline:` is set to "none".
247+
|hl-DiffTextAdd| DiffTextAdd Added text inside a Changed line. Similar to
248+
DiffText, but used when there is no
249+
corresponding text in other buffers. Not used
250+
when `inline:` is set to "simple" or "none".
237251
|hl-DiffDelete| DiffDelete Deleted lines. Also called filler lines,
238252
because they don't really exist in this
239253
buffer.

runtime/doc/if_pyth.txt

+23-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*if_pyth.txt* For Vim version 9.1. Last change: 2024 Nov 09
1+
*if_pyth.txt* For Vim version 9.1. Last change: 2025 Mar 26
22

33

44
VIM REFERENCE MANUAL by Paul Moore
@@ -184,8 +184,9 @@ vim.eval(str) *python-eval*
184184
evaluator (see |expression|). Returns the expression result as:
185185
- a string if the Vim expression evaluates to a string or number
186186
- a list if the Vim expression evaluates to a Vim list
187+
- a tuple if the Vim expression evaluates to a Vim tuple
187188
- a dictionary if the Vim expression evaluates to a Vim dictionary
188-
Dictionaries and lists are recursively expanded.
189+
Dictionaries, lists and tuples are recursively expanded.
189190
Examples: >
190191
:" value of the 'textwidth' option
191192
:py text_width = vim.eval("&tw")
@@ -196,6 +197,8 @@ vim.eval(str) *python-eval*
196197
:" Result is a string! Use string.atoi() to convert to a number.
197198
:py str = vim.eval("12+12")
198199
:
200+
:py tuple = vim.eval('(1, 2, 3)')
201+
:
199202
:py tagList = vim.eval('taglist("eval_expr")')
200203
< The latter will return a python list of python dicts, for instance:
201204
[{'cmd': '/^eval_expr(arg, nextcmd)$/', 'static': 0, 'name': ~
@@ -207,8 +210,8 @@ vim.eval(str) *python-eval*
207210

208211
vim.bindeval(str) *python-bindeval*
209212
Like |python-eval|, but returns special objects described in
210-
|python-bindeval-objects|. These python objects let you modify (|List|
211-
or |Dictionary|) or call (|Funcref|) vim objects.
213+
|python-bindeval-objects|. These python objects let you modify
214+
(|List|, |Tuple| or |Dictionary|) or call (|Funcref|) vim objects.
212215

213216
vim.strwidth(str) *python-strwidth*
214217
Like |strwidth()|: returns number of display cells str occupies, tab
@@ -688,6 +691,22 @@ vim.List object *python-List*
688691
print isinstance(l, vim.List) # True
689692
class List(vim.List): # Subclassing
690693
694+
vim.Tuple object *python-Tuple*
695+
Sequence-like object providing access to vim |Tuple| type.
696+
Supports `.locked` attribute, see |python-.locked|. Also supports the
697+
following methods:
698+
Method Description ~
699+
__new__(), __new__(iterable)
700+
You can use `vim.Tuple()` to create new vim tuples.
701+
Without arguments constructs empty list.
702+
Examples: >
703+
t = vim.Tuple("abc") # Constructor, result: ('a', 'b', 'c')
704+
print t[1:] # slicing
705+
print t[0] # getting item
706+
for i in t: # iteration
707+
print isinstance(t, vim.Tuple) # True
708+
class Tuple(vim.Tuple): # Subclassing
709+
691710
vim.Function object *python-Function*
692711
Function-like object, acting like vim |Funcref| object. Accepts special
693712
keyword argument `self`, see |Dictionary-function|. You can also use

runtime/doc/options.txt

+33-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 9.1. Last change: 2025 Mar 14
1+
*options.txt* For Vim version 9.1. Last change: 2025 Mar 28
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2910,7 +2910,8 @@ A jump table for the options with a short description can be found at |Q_op|.
29102910
security reasons.
29112911

29122912
*'dip'* *'diffopt'*
2913-
'diffopt' 'dip' string (default "internal,filler,closeoff")
2913+
'diffopt' 'dip' string (default
2914+
"internal,filler,closeoff,inline:simple")
29142915
global
29152916
{not available when compiled without the |+diff|
29162917
feature}
@@ -2975,6 +2976,21 @@ A jump table for the options with a short description can be found at |Q_op|.
29752976
Use the indent heuristic for the internal
29762977
diff library.
29772978

2979+
inline:{text} Highlight inline differences within a change.
2980+
See |view-diffs|. Supported values are:
2981+
2982+
none Do not perform inline highlighting.
2983+
simple Highlight from first different
2984+
character to the last one in each
2985+
line. This is the default if no
2986+
`inline:` value is set.
2987+
char Use internal diff to perform a
2988+
character-wise diff and highlight the
2989+
difference.
2990+
word Use internal diff to perform a
2991+
|word|-wise diff and highlight the
2992+
difference.
2993+
29782994
internal Use the internal diff library. This is
29792995
ignored when 'diffexpr' is set. *E960*
29802996
When running out of memory when writing a
@@ -4393,10 +4409,10 @@ A jump table for the options with a short description can be found at |Q_op|.
43934409
v:Visual,V:VisualNOS,w:WarningMsg,
43944410
W:WildMenu,f:Folded,F:FoldColumn,
43954411
A:DiffAdd,C:DiffChange,D:DiffDelete,
4396-
T:DiffText,>:SignColumn,-:Conceal,
4397-
B:SpellBad,P:SpellCap,R:SpellRare,
4398-
L:SpellLocal,+:Pmenu,=:PmenuSel,
4399-
k:PmenuMatch,<:PmenuMatchSel,
4412+
T:DiffText,E:DiffTextAdd,>:SignColumn,
4413+
-:Conceal,B:SpellBad,P:SpellCap,
4414+
R:SpellRare, L:SpellLocal,+:Pmenu,
4415+
=:PmenuSel, k:PmenuMatch,<:PmenuMatchSel,
44004416
[:PmenuKind,]:PmenuKindSel,
44014417
{:PmenuExtra,}:PmenuExtraSel,
44024418
x:PmenuSbar,X:PmenuThumb,*:TabLine,
@@ -4448,7 +4464,8 @@ A jump table for the options with a short description can be found at |Q_op|.
44484464
|hl-DiffAdd| A added line in diff mode
44494465
|hl-DiffChange| C changed line in diff mode
44504466
|hl-DiffDelete| D deleted line in diff mode
4451-
|hl-DiffText| T inserted text in diff mode
4467+
|hl-DiffText| T changed text in diff mode
4468+
|hl-DiffTextAdd| E inserted text in diff mode
44524469
|hl-SignColumn| > column used for |signs|
44534470
|hl-Conceal| - the placeholders used for concealed characters
44544471
(see 'conceallevel')
@@ -6460,6 +6477,15 @@ A jump table for the options with a short description can be found at |Q_op|.
64606477
global
64616478
Determines the maximum number of items to show in the popup menu for
64626479
Insert mode completion. When zero as much space as available is used.
6480+
|ins-completion-menu|.
6481+
6482+
*'pummaxwidth'* *'pmw'*
6483+
'pummaxwidth' 'pmw' number (default 0)
6484+
global
6485+
Determines the maximum width to use for the popup menu for completion.
6486+
When zero, there is no maximum width limit, otherwise the popup menu
6487+
will never be wider than this value. Truncated text will be indicated
6488+
by "..." at the end. Takes precedence over 'pumwidth'.
64636489
|ins-completion-menu|.
64646490

64656491
*'pumwidth'* *'pw'*

runtime/doc/pattern.txt

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*pattern.txt* For Vim version 9.1. Last change: 2025 Mar 21
1+
*pattern.txt* For Vim version 9.1. Last change: 2025 Mar 28
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1222,7 +1222,8 @@ x A single character, with no special meaning, matches itself
12221222
\o40 octal number of character up to 0o377
12231223
\x20 hexadecimal number of character up to 0xff
12241224
\u20AC hex. number of multibyte character up to 0xffff
1225-
\U1234 hex. number of multibyte character up to 0xffffffff
1225+
\U1234 hex. number of multibyte character up to 8 characters
1226+
0xffffffff |E1541|
12261227
NOTE: The other backslash codes mentioned above do not work inside
12271228
[]!
12281229
- Matching with a collection can be slow, because each character in
@@ -1263,7 +1264,8 @@ x A single character, with no special meaning, matches itself
12631264
\%u20AC Matches the character specified with up to four hexadecimal
12641265
characters.
12651266
\%U1234abcd Matches the character specified with up to eight hexadecimal
1266-
characters, up to 0x7fffffff
1267+
characters, up to 0x7fffffff (the maximum allowed value is INT_MAX
1268+
|E1541|, but the maximum valid Unicode codepoint is U+10FFFF).
12671269

12681270
==============================================================================
12691271
7. Ignoring case in a pattern */ignorecase*

runtime/doc/pi_netrw.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*netrw.txt*
1+
*netrw.txt* *pi_netrw.txt*
22

33
------------------------------------------------
44
NETRW REFERENCE MANUAL by Charles E. Campbell

runtime/doc/syntax.txt

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*syntax.txt* For Vim version 9.1. Last change: 2025 Mar 21
1+
*syntax.txt* For Vim version 9.1. Last change: 2025 Mar 27
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2202,12 +2202,12 @@ cycles for such a feature to become either integrated into the platform or
22022202
withdrawn from this effort. To cater for early adopters, there is optional
22032203
support in Vim for syntax related preview features that are implemented. You
22042204
can request it by specifying a list of preview feature numbers as follows: >
2205-
:let g:java_syntax_previews = [455, 476]
2205+
:let g:java_syntax_previews = [488, 494]
22062206
22072207
The supported JEP numbers are to be drawn from this table:
22082208
`430`: String Templates [JDK 21]
2209-
`455`: Primitive types in Patterns, instanceof, and switch
2210-
`476`: Module Import Declarations
2209+
`488`: Primitive types in Patterns, instanceof, and switch
2210+
`494`: Module Import Declarations
22112211

22122212
Note that as soon as the particular preview feature will have been integrated
22132213
into the Java platform, its entry will be removed from the table and related
@@ -5832,6 +5832,9 @@ DiffChange Diff mode: Changed line. |diff.txt|
58325832
DiffDelete Diff mode: Deleted line. |diff.txt|
58335833
*hl-DiffText*
58345834
DiffText Diff mode: Changed text within a changed line. |diff.txt|
5835+
*hl-DiffTextAdd*
5836+
DiffTextAdd Diff mode: Added text within a changed line. Linked to
5837+
|hl-DiffText| by default. |diff.txt|
58355838
*hl-EndOfBuffer*
58365839
EndOfBuffer Filler lines (~) after the last line in the buffer.
58375840
By default, this is highlighted like |hl-NonText|.

runtime/doc/tags

+6
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,7 @@ $quote eval.txt /*$quote*
847847
'pm' options.txt /*'pm'*
848848
'pmbcs' options.txt /*'pmbcs'*
849849
'pmbfn' options.txt /*'pmbfn'*
850+
'pmw' options.txt /*'pmw'*
850851
'popt' options.txt /*'popt'*
851852
'pp' options.txt /*'pp'*
852853
'preserveindent' options.txt /*'preserveindent'*
@@ -864,6 +865,7 @@ $quote eval.txt /*$quote*
864865
'prompt' options.txt /*'prompt'*
865866
'pt' options.txt /*'pt'*
866867
'pumheight' options.txt /*'pumheight'*
868+
'pummaxwidth' options.txt /*'pummaxwidth'*
867869
'pumwidth' options.txt /*'pumwidth'*
868870
'pvh' options.txt /*'pvh'*
869871
'pvp' options.txt /*'pvp'*
@@ -4633,6 +4635,7 @@ E1538 eval.txt /*E1538*
46334635
E1539 vim9.txt /*E1539*
46344636
E154 helphelp.txt /*E154*
46354637
E1540 eval.txt /*E1540*
4638+
E1541 vi_diff.txt /*E1541*
46364639
E155 sign.txt /*E155*
46374640
E156 sign.txt /*E156*
46384641
E157 sign.txt /*E157*
@@ -8220,6 +8223,7 @@ hl-DiffAdd syntax.txt /*hl-DiffAdd*
82208223
hl-DiffChange syntax.txt /*hl-DiffChange*
82218224
hl-DiffDelete syntax.txt /*hl-DiffDelete*
82228225
hl-DiffText syntax.txt /*hl-DiffText*
8226+
hl-DiffTextAdd syntax.txt /*hl-DiffTextAdd*
82238227
hl-Directory syntax.txt /*hl-Directory*
82248228
hl-EndOfBuffer syntax.txt /*hl-EndOfBuffer*
82258229
hl-ErrorMsg syntax.txt /*hl-ErrorMsg*
@@ -9540,6 +9544,7 @@ phtml.vim syntax.txt /*phtml.vim*
95409544
pi_getscript.txt pi_getscript.txt /*pi_getscript.txt*
95419545
pi_gzip.txt pi_gzip.txt /*pi_gzip.txt*
95429546
pi_logipat.txt pi_logipat.txt /*pi_logipat.txt*
9547+
pi_netrw.txt pi_netrw.txt /*pi_netrw.txt*
95439548
pi_paren.txt pi_paren.txt /*pi_paren.txt*
95449549
pi_spec.txt pi_spec.txt /*pi_spec.txt*
95459550
pi_tar.txt pi_tar.txt /*pi_tar.txt*
@@ -9701,6 +9706,7 @@ python-2-and-3 if_pyth.txt /*python-2-and-3*
97019706
python-Dictionary if_pyth.txt /*python-Dictionary*
97029707
python-Function if_pyth.txt /*python-Function*
97039708
python-List if_pyth.txt /*python-List*
9709+
python-Tuple if_pyth.txt /*python-Tuple*
97049710
python-VIM_SPECIAL_PATH if_pyth.txt /*python-VIM_SPECIAL_PATH*
97059711
python-_get_paths if_pyth.txt /*python-_get_paths*
97069712
python-bindeval if_pyth.txt /*python-bindeval*

0 commit comments

Comments
 (0)