Skip to content

Commit 18ebdc9

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 9a4fe33 + 56c9fd0 commit 18ebdc9

57 files changed

Lines changed: 1122 additions & 210 deletions

Some content is hidden

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

.github/CODEOWNERS_vim

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
# So if a pull request only touches javascript files, only these owners
1010
# will be requested to review.
1111

12-
src/iscygpty.* @k-takata
13-
src/libvterm/ @leonerd
14-
1512
runtime/autoload/getscript.vim @cecamp
1613
runtime/autoload/netrw.vim @cecamp
1714
runtime/autoload/netrwFileHandlers.vim @cecamp
@@ -43,7 +40,7 @@ runtime/compiler/jshint.vim @dkearns
4340
runtime/compiler/jsonlint.vim @dkearns
4441
runtime/compiler/lazbuild.vim @dkearns
4542
runtime/compiler/php.vim @dkearns
46-
runtime/compiler/powershell.vim @heaths
43+
runtime/compiler/powershell.vim @heaths
4744
runtime/compiler/rake.vim @tpope @dkearns
4845
runtime/compiler/rhino.vim @dkearns
4946
runtime/compiler/rspec.vim @tpope @dkearns
@@ -69,7 +66,7 @@ runtime/doc/pi_netrw.txt @cecamp
6966
runtime/doc/pi_tar.txt @cecamp
7067
runtime/doc/pi_vimball.txt @cecamp
7168
runtime/doc/pi_zip.txt @cecamp
72-
runtime/doc/ps1.txt @heaths
69+
runtime/doc/ps1.txt @heaths
7370
runtime/ftplugin/awk.vim @dkearns
7471
runtime/ftplugin/basic.vim @dkearns
7572
runtime/ftplugin/bst.vim @tpope
@@ -96,17 +93,20 @@ runtime/ftplugin/m3build.vim @dkearns
9693
runtime/ftplugin/m3quake.vim @dkearns
9794
runtime/ftplugin/markdown.vim @tpope
9895
runtime/ftplugin/matlab.vim @cecamp
96+
runtime/ftplugin/meson.vim @Liambeguin
9997
runtime/ftplugin/modula3.vim @dkearns
10098
runtime/ftplugin/nroff.vim @a-vrma
10199
runtime/ftplugin/nsis.vim @k-takata
102100
runtime/ftplugin/pascal.vim @dkearns
101+
runtime/ftplugin/pbtxt.vim @lakshayg
103102
runtime/ftplugin/pdf.vim @tpope
104103
runtime/ftplugin/ps1.vim @heaths
105104
runtime/ftplugin/ps1xml.vim @heaths
106105
runtime/ftplugin/ruby.vim @tpope @dkearns
107106
runtime/ftplugin/sass.vim @tpope
108107
runtime/ftplugin/scss.vim @tpope
109108
runtime/ftplugin/spec.vim @ignatenkobrain
109+
runtime/ftplugin/systemverilog.vim @Kocha
110110
runtime/ftplugin/tidy.vim @dkearns
111111
runtime/ftplugin/tmux.vim @ericpruitt
112112
runtime/ftplugin/typescript.vim @dkearns
@@ -120,12 +120,14 @@ runtime/indent/eruby.vim @tpope @dkearns
120120
runtime/indent/gitconfig.vim @tpope
121121
runtime/indent/haml.vim @tpope
122122
runtime/indent/liquid.vim @tpope
123+
runtime/indent/meson.vim @Liambeguin
123124
runtime/indent/nsis.vim @k-takata
124125
runtime/indent/ps1.vim @heaths
125126
runtime/indent/ruby.vim @AndrewRadev @dkearns
126127
runtime/indent/sass.vim @tpope
127128
runtime/indent/scss.vim @tpope
128129
runtime/indent/sh.vim @chrisbra
130+
runtime/indent/systemverilog.vim @Kocha
129131
runtime/indent/teraterm.vim @k-takata
130132
runtime/indent/xml.vim @chrisbra
131133
runtime/indent/zsh.vim @chrisbra
@@ -142,6 +144,7 @@ runtime/syntax/aidl.vim @dpelle
142144
runtime/syntax/amiga.vim @cecamp
143145
runtime/syntax/asm.vim @dkearns
144146
runtime/syntax/asmh8300.vim @dkearns
147+
runtime/syntax/asterisk.vim @jaunis
145148
runtime/syntax/awk.vim @dkearns
146149
runtime/syntax/basic.vim @dkearns
147150
runtime/syntax/bst.vim @tpope
@@ -154,8 +157,10 @@ runtime/syntax/cucumber.vim @tpope
154157
runtime/syntax/datascript.vim @dpelle
155158
runtime/syntax/dcl.vim @cecamp
156159
runtime/syntax/desktop.vim @e-kwsm
160+
runtime/syntax/dot.vim @mmottl
157161
runtime/syntax/doxygen.vim @frogonwheels
158162
runtime/syntax/dtd.vim @chrisbra
163+
runtime/syntax/dts.vim @zonque
159164
runtime/syntax/elmfilt.vim @cecamp
160165
runtime/syntax/eruby.vim @tpope @dkearns
161166
runtime/syntax/exports.vim @cecamp
@@ -170,6 +175,7 @@ runtime/syntax/haml.vim @tpope
170175
runtime/syntax/haskell.vim @coot
171176
runtime/syntax/hgcommit.vim @k-takata
172177
runtime/syntax/kconfig.vim @chrisbra
178+
runtime/syntax/less.vim @genoma
173179
runtime/syntax/lex.vim @cecamp
174180
runtime/syntax/liquid.vim @tpope
175181
runtime/syntax/lisp.vim @cecamp
@@ -180,17 +186,20 @@ runtime/syntax/mailcap.vim @dkearns
180186
runtime/syntax/make.vim @rohieb
181187
runtime/syntax/maple.vim @cecamp
182188
runtime/syntax/markdown.vim @tpope
189+
runtime/syntax/meson.vim @Liambeguin
183190
runtime/syntax/modula3.vim @dkearns
184191
runtime/syntax/netrw.vim @cecamp
185192
runtime/syntax/nroff.vim @jmarshall
186193
runtime/syntax/nsis.vim @k-takata
187194
runtime/syntax/pascal.vim @dkearns
195+
runtime/syntax/pbtxt.vim @lakshayg
188196
runtime/syntax/pdf.vim @tpope
189197
runtime/syntax/php.vim @TysonAndre
190198
runtime/syntax/privoxy.vim @dkearns
191199
runtime/syntax/prolog.vim @XVilka
192200
runtime/syntax/ps1.vim @heaths
193201
runtime/syntax/ps1xml.vim @heaths
202+
runtime/syntax/psl.vim @danielkho
194203
runtime/syntax/rc.vim @chrisbra
195204
runtime/syntax/rpcgen.vim @cecamp
196205
runtime/syntax/ruby.vim @dkearns
@@ -203,6 +212,7 @@ runtime/syntax/sqloracle.vim @chrisbra
203212
runtime/syntax/sshconfig.vim @Jakuje
204213
runtime/syntax/sshdconfig.vim @Jakuje
205214
runtime/syntax/sudoers.vim @e-kwsm
215+
runtime/syntax/systemverilog.vim @Kocha
206216
runtime/syntax/tags.vim @cecamp
207217
runtime/syntax/teraterm.vim @k-takata
208218
runtime/syntax/tex.vim @cecamp
@@ -221,6 +231,8 @@ runtime/tutor/tutor.eo @dpelle
221231
runtime/tutor/tutor.eo.utf-8 @dpelle
222232
runtime/tutor/tutor.fr @dpelle
223233
runtime/tutor/tutor.fr.utf-8 @dpelle
234+
src/iscygpty.* @k-takata
235+
src/libvterm/ @leonerd
224236
src/po/de.po @chrisbra
225237
src/po/eo.po @dpelle
226238
src/po/fr.po @dpelle

runtime/doc/cmdline.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*cmdline.txt* For Vim version 8.2. Last change: 2021 Apr 05
1+
*cmdline.txt* For Vim version 8.2. Last change: 2021 May 08
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -798,18 +798,20 @@ three lines: >
798798
3:d<CR> is translated into: .,.+2d<CR>
799799
<
800800

801-
Visual Mode and Range *v_:*
802-
*:star-visual-range*
801+
Visual Mode and Range
802+
*v_:*
803803
{Visual}: Starts a command-line with the Visual selected lines as a
804804
range. The code `:'<,'>` is used for this range, which makes
805805
it possible to select a similar line from the command-line
806806
history for repeating a command on different Visually selected
807807
lines.
808+
809+
:* *:star* *:star-visual-range*
808810
When Visual mode was already ended, a short way to use the
809811
Visual area for a range is `:*`. This requires that "*" does
810812
not appear in 'cpo', see |cpo-star|. Otherwise you will have
811813
to type `:'<,'>`
812-
814+
For when "*" is in 'cpo' see |:star-compatible|.
813815

814816
==============================================================================
815817
5. Ex command-line flags *ex-flags*

runtime/doc/eval.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 8.2. Last change: 2021 Apr 24
1+
*eval.txt* For Vim version 8.2. Last change: 2021 May 07
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -7603,6 +7603,9 @@ matchfuzzy({list}, {str} [, {dict}]) *matchfuzzy()*
76037603
empty list is returned. If length of {str} is greater than
76047604
256, then returns an empty list.
76057605

7606+
Refer to |fuzzy-match| for more information about fuzzy
7607+
matching strings.
7608+
76067609
Example: >
76077610
:echo matchfuzzy(["clay", "crow"], "cay")
76087611
< results in ["clay"]. >
@@ -9200,6 +9203,8 @@ searchpair({start}, {middle}, {end} [, {flags} [, {skip}
92009203
and -1 returned.
92019204
{skip} can be a string, a lambda, a funcref or a partial.
92029205
Anything else makes the function fail.
9206+
In a `:def` function when the {skip} argument is a string
9207+
constant it is compiled into instructions.
92039208

92049209
For {stopline} and {timeout} see |search()|.
92059210

runtime/doc/map.txt

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*map.txt* For Vim version 8.2. Last change: 2021 Apr 23
1+
*map.txt* For Vim version 8.2. Last change: 2021 May 16
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -389,6 +389,22 @@ Overview of which map command works in which mode. More details below.
389389
:cmap :cnoremap :cunmap Command-line
390390
:tmap :tnoremap :tunmap Terminal-Job
391391

392+
Same information in a table:
393+
*map-table*
394+
Mode | Norm | Ins | Cmd | Vis | Sel | Opr | Term | Lang | ~
395+
Command +------+-----+-----+-----+-----+-----+------+------+ ~
396+
[nore]map | yes | - | - | yes | yes | yes | - | - |
397+
n[nore]map | yes | - | - | - | - | - | - | - |
398+
[nore]map! | - | yes | yes | - | - | - | - | - |
399+
i[nore]map | - | yes | - | - | - | - | - | - |
400+
c[nore]map | - | - | yes | - | - | - | - | - |
401+
v[nore]map | - | - | - | yes | yes | - | - | - |
402+
x[nore]map | - | - | - | yes | - | - | - | - |
403+
s[nore]map | - | - | - | - | yes | - | - | - |
404+
o[nore]map | - | - | - | - | - | yes | - | - |
405+
t[nore]map | - | - | - | - | - | - | yes | - |
406+
l[nore]map | - | yes | yes | - | - | - | - | yes |
407+
392408

393409
COMMANDS MODES ~
394410
Normal Visual+Select Operator-pending ~

runtime/doc/options.txt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 8.2. Last change: 2021 Apr 28
1+
*options.txt* For Vim version 8.2. Last change: 2021 May 15
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -7471,6 +7471,18 @@ A jump table for the options with a short description can be found at |Q_op|.
74717471
Note that there is no '%' before the closing '}'. The
74727472
expression cannot contain a '}' character, call a function to
74737473
work around that. See |stl-%{| below.
7474+
{% - This is almost same as { except the result of the expression is
7475+
re-evaluated as a statusline format string. Thus if the
7476+
return value of expr contains % items they will get expanded.
7477+
The expression can contain the } character, the end of
7478+
expression is denoted by %}.
7479+
The For example: >
7480+
func! Stl_filename() abort
7481+
return "%t"
7482+
endfunc
7483+
< `stl=%{Stl_filename()}` results in `"%t"`
7484+
`stl=%{%Stl_filename()%}` results in `"Name of current file"`
7485+
} - End of `{%` expression
74747486
( - Start of item group. Can be used for setting the width and
74757487
alignment of a section. Must be followed by %) somewhere.
74767488
) - End of item group. No width fields allowed.

runtime/doc/pattern.txt

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*pattern.txt* For Vim version 8.2. Last change: 2021 Feb 16
1+
*pattern.txt* For Vim version 8.2. Last change: 2021 May 02
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -19,6 +19,7 @@ explanations are in chapter 27 |usr_27.txt|.
1919
8. Composing characters |patterns-composing|
2020
9. Compare with Perl patterns |perl-patterns|
2121
10. Highlighting matches |match-highlight|
22+
11. Fuzzy matching |fuzzy-match|
2223

2324
==============================================================================
2425
1. Search commands *search-commands*
@@ -1431,5 +1432,38 @@ Finally, these constructs are unique to Perl:
14311432
are suggested to use ":match" for manual matching and
14321433
":2match" for another plugin.
14331434

1435+
==============================================================================
1436+
11. Fuzzy matching *fuzzy-match*
1437+
1438+
Fuzzy matching refers to matching strings using a non-exact search string.
1439+
Fuzzy matching will match a string, if all the characters in the search string
1440+
are present anywhere in the string in the same order. Case is ignored. In a
1441+
matched string, other characters can be present between two consecutive
1442+
characters in the search string. If the search string has multiple words, then
1443+
each word is matched separately. So the words in the search string can be
1444+
present in any order in a string.
1445+
1446+
Fuzzy matching assigns a score for each matched string based on the following
1447+
criteria:
1448+
- The number of sequentially matching characters.
1449+
- The number of characters (distance) between two consecutive matching
1450+
characters.
1451+
- Matches at the beginning of a word
1452+
- Matches after a camel case character or a path separator or a hyphen.
1453+
- The number of unmatched characters in a string.
1454+
The matching string with the highest score is returned first.
1455+
1456+
For example, when you search for the "get pat" string using fuzzy matching, it
1457+
will match the strings "GetPattern", "PatternGet", "getPattern", "patGetter",
1458+
"getSomePattern", "MatchpatternGet" etc.
1459+
1460+
The functions |matchfuzzy()| and |matchfuzzypos()| can be used to fuzzy search
1461+
a string in a List of strings. The matchfuzzy() function returns a List of
1462+
matching strings. The matchfuzzypos() functions returns the List of matches,
1463+
the matching positions and the fuzzy match scores.
1464+
1465+
The "f" flag of `:vimgrep` enables fuzzy matching.
1466+
1467+
14341468

14351469
vim:tw=78:ts=8:noet:ft=help:norl:

runtime/doc/quickfix.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*quickfix.txt* For Vim version 8.2. Last change: 2021 Apr 30
1+
*quickfix.txt* For Vim version 8.2. Last change: 2021 May 02
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1037,8 +1037,8 @@ commands can be combined to create a NewGrep command: >
10371037
matching is used to find matching lines. In this
10381038
case, {pattern} is treated as a literal string
10391039
instead of a regular expression. See
1040-
|matchfuzzy()| for more info about fuzzy
1041-
matching.
1040+
|fuzzy-match| for more information about fuzzy
1041+
matching strings.
10421042

10431043
|QuickFixCmdPre| and |QuickFixCmdPost| are triggered.
10441044
A file that is opened for matching may use a buffer

runtime/doc/repeat.txt

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*repeat.txt* For Vim version 8.2. Last change: 2021 Feb 13
1+
*repeat.txt* For Vim version 8.2. Last change: 2021 May 08
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -59,6 +59,11 @@ of area is used, see |visual-repeat|.
5959
:[range]v[global]/{pattern}/[cmd]
6060
Same as :g!.
6161

62+
Example: >
63+
:g/^Obsolete/d _
64+
Using the underscore after `:d` avoids clobbering registers or the clipboard.
65+
This also makes it faster.
66+
6267
Instead of the '/' which surrounds the {pattern}, you can use any other
6368
single byte character, but not an alphabetic character, '\', '"' or '|'.
6469
This is useful if you want to include a '/' in the search pattern or
@@ -150,15 +155,12 @@ q Stops recording. (Implementation note: The 'q' that
150155
*@@* *E748*
151156
@@ Repeat the previous @{0-9a-z":*} [count] times.
152157

153-
:[addr]*{0-9a-z".=+} *:@* *:star*
158+
*:@*
154159
:[addr]@{0-9a-z".=*+} Execute the contents of register {0-9a-z".=*+} as an Ex
155160
command. First set cursor at line [addr] (default is
156161
current line). When the last line in the register does
157162
not have a <CR> it will be added automatically when
158163
the 'e' flag is present in 'cpoptions'.
159-
Note that the ":*" command is only recognized when the
160-
'*' flag is present in 'cpoptions'. This is NOT the
161-
default when 'nocompatible' is used.
162164
For ":@=" the last used expression is used. The
163165
result of evaluating the expression is executed as an
164166
Ex command.
@@ -171,6 +173,13 @@ q Stops recording. (Implementation note: The 'q' that
171173
Future: Will execute the register for each line in the
172174
address range.
173175

176+
:[addr]*{0-9a-z".=+} *:star-compatible*
177+
When '*' is present in 'cpoptions' |cpo-star|, use
178+
":*" in the same way as ":@". This is NOT the default
179+
when 'nocompatible' is used. When the '*' flag is not
180+
present in 'cpoptions', ":*" is an alias for ":'<,'>",
181+
select the Visual area |:star|.
182+
174183
*:@:*
175184
:[addr]@: Repeat last command-line. First set cursor at line
176185
[addr] (default is current line).

runtime/doc/starting.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*starting.txt* For Vim version 8.2. Last change: 2021 Feb 10
1+
*starting.txt* For Vim version 8.2. Last change: 2021 May 08
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1593,7 +1593,7 @@ VIMINFO FILE NAME *viminfo-file-name*
15931593
file name given is "NONE" (all uppercase), no viminfo file is ever read or
15941594
written. Also not for the commands below!
15951595
- The 'viminfofile' option can be used like the "-i" argument. In fact, the
1596-
value form the "-i" argument is stored in the 'viminfofile' option.
1596+
value from the "-i" argument is stored in the 'viminfofile' option.
15971597
- For the commands below, another file name can be given, overriding the
15981598
default and the name given with 'viminfo' or "-i" (unless it's NONE).
15991599

runtime/doc/tags

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3211,7 +3211,8 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
32113211
:st starting.txt /*:st*
32123212
:sta windows.txt /*:sta*
32133213
:stag windows.txt /*:stag*
3214-
:star repeat.txt /*:star*
3214+
:star cmdline.txt /*:star*
3215+
:star-compatible repeat.txt /*:star-compatible*
32153216
:star-visual-range cmdline.txt /*:star-visual-range*
32163217
:start insert.txt /*:start*
32173218
:startgreplace insert.txt /*:startgreplace*
@@ -6780,6 +6781,7 @@ function-range-example eval.txt /*function-range-example*
67806781
function-search-undo eval.txt /*function-search-undo*
67816782
function_key intro.txt /*function_key*
67826783
functions eval.txt /*functions*
6784+
fuzzy-match pattern.txt /*fuzzy-match*
67836785
fvwm.vim syntax.txt /*fvwm.vim*
67846786
fvwm2rc syntax.txt /*fvwm2rc*
67856787
fvwmrc syntax.txt /*fvwmrc*
@@ -7933,6 +7935,7 @@ map-return map.txt /*map-return*
79337935
map-self-destroy tips.txt /*map-self-destroy*
79347936
map-space_in_lhs map.txt /*map-space_in_lhs*
79357937
map-space_in_rhs map.txt /*map-space_in_rhs*
7938+
map-table map.txt /*map-table*
79367939
map-typing map.txt /*map-typing*
79377940
map-which-keys map.txt /*map-which-keys*
79387941
map.txt map.txt /*map.txt*

0 commit comments

Comments
 (0)