Skip to content

Commit b7e7ad9

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 1be6353 + caf73dc commit b7e7ad9

143 files changed

Lines changed: 1333 additions & 863 deletions

Some content is hidden

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

runtime/autoload/zip.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" zip.vim: Handles browsing zipfiles
22
" AUTOLOAD PORTION
33
" Date: Jan 07, 2020
4-
" Version: 30
4+
" Version: 31
55
" Maintainer: Charles E Campbell <[email protected]>
66
" License: Vim License (see vim's :help license)
77
" Copyright: Copyright (C) 2005-2019 Charles E. Campbell {{{1
@@ -20,7 +20,7 @@
2020
if &cp || exists("g:loaded_zip")
2121
finish
2222
endif
23-
let g:loaded_zip= "v30"
23+
let g:loaded_zip= "v31"
2424
if v:version < 702
2525
echohl WarningMsg
2626
echo "***warning*** this version of zip needs vim 7.2 or later"
@@ -65,7 +65,7 @@ endif
6565
" zip#Browse: {{{2
6666
fun! zip#Browse(zipfile)
6767
" call Dfunc("zip#Browse(zipfile<".a:zipfile.">)")
68-
" sanity check: ensure that the zipfile has "PK" as its first two letters
68+
" sanity check: insure that the zipfile has "PK" as its first two letters
6969
" (zipped files have a leading PK as a "magic cookie")
7070
if !filereadable(a:zipfile) || readfile(a:zipfile, "", 1)[0] !~ '^PK'
7171
exe "noswapfile noautocmd noswapfile e ".fnameescape(a:zipfile)

runtime/doc/autocmd.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim version 8.2. Last change: 2020 Sep 25
1+
*autocmd.txt* For Vim version 8.2. Last change: 2020 Oct 26
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -278,7 +278,7 @@ Name triggered by ~
278278
|BufWinLeave| before a buffer is removed from a window
279279

280280
|BufUnload| before unloading a buffer
281-
|BufHidden| just after a buffer has become hidden
281+
|BufHidden| just before a buffer becomes hidden
282282
|BufNew| just after creating a new buffer
283283

284284
|SwapExists| detected an existing swap file
@@ -885,7 +885,7 @@ InsertEnter Just before starting Insert mode. Also for
885885
string.
886886
*InsertLeavePre*
887887
InsertLeavePre Just before leaving Insert mode. Also when
888-
using CTRL-O |i_CTRL-O|. Be caseful not to
888+
using CTRL-O |i_CTRL-O|. Be careful not to
889889
change mode or use `:normal`, it will likely
890890
cause trouble.
891891
*InsertLeave*

runtime/doc/channel.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*channel.txt* For Vim version 8.2. Last change: 2020 Sep 03
1+
*channel.txt* For Vim version 8.2. Last change: 2020 Oct 17
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -965,6 +965,10 @@ job_status({job}) *job_status()* *E916*
965965
"fail", because a fork happens before the failure can be
966966
detected.
967967

968+
If in Vim9 script a variable is declared with type "job" but
969+
never assigned to, passing that variable to job_status()
970+
returns "fail".
971+
968972
If an exit callback was set with the "exit_cb" option and the
969973
job is now detected to be "dead" the callback will be invoked.
970974

@@ -1288,7 +1292,7 @@ prompt. >
12881292
" Send the text to a shell with Enter appended.
12891293
call ch_sendraw(g:shell_job, a:text .. "\n")
12901294
endfunc
1291-
1295+
12921296
" Function handling output from the shell: Added above the prompt.
12931297
func GotOutput(channel, msg)
12941298
call append(line("$") - 1, "- " . a:msg)

runtime/doc/editing.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*editing.txt* For Vim version 8.2. Last change: 2020 Aug 17
1+
*editing.txt* For Vim version 8.2. Last change: 2020 Oct 23
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -73,10 +73,14 @@ g CTRL-G Prints the current position of the cursor in five
7373
ways: Column, Line, Word, Character and Byte. If the
7474
number of Characters and Bytes is the same then the
7575
Character position is omitted.
76+
7677
If there are characters in the line that take more
7778
than one position on the screen (<Tab> or special
78-
character), both the "real" column and the screen
79-
column are shown, separated with a dash.
79+
character), or characters using more than one byte per
80+
column (characters above 0x7F when 'encoding' is
81+
utf-8), both the byte column and the screen column are
82+
shown, separated by a dash.
83+
8084
Also see the 'ruler' option and the |wordcount()|
8185
function.
8286

runtime/doc/eval.txt

Lines changed: 30 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 8.2. Last change: 2020 Oct 05
1+
*eval.txt* For Vim version 8.2. Last change: 2020 Oct 23
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -120,7 +120,7 @@ base, use |str2nr()|.
120120

121121
*TRUE* *FALSE* *Boolean*
122122
For boolean operators Numbers are used. Zero is FALSE, non-zero is TRUE.
123-
You can also use |v:false| and |v:true|. In Vim9 script |false| and |true|.
123+
You can also use |v:false| and |v:true|. In Vim9 script |false| and |true|.
124124
When TRUE is returned from a function it is the Number one, FALSE is the
125125
number zero.
126126

@@ -2758,7 +2758,7 @@ prop_type_change({name}, {props})
27582758
none change an existing property type
27592759
prop_type_delete({name} [, {props}])
27602760
none delete a property type
2761-
prop_type_get([{name} [, {props}]])
2761+
prop_type_get({name} [, {props}])
27622762
Dict get property type values
27632763
prop_type_list([{props}]) List get list of property types
27642764
pum_getpos() Dict position and size of pum if visible
@@ -3138,7 +3138,7 @@ appendbufline({expr}, {lnum}, {text}) *appendbufline()*
31383138
error message is given. Example: >
31393139
:let failed = appendbufline(13, 0, "# THE START")
31403140
<
3141-
< Can also be used as a |method| after a List, the base is
3141+
Can also be used as a |method| after a List, the base is
31423142
passed as the second argument: >
31433143
mylist->appendbufline(buf, lnum)
31443144

@@ -7379,8 +7379,15 @@ matchfuzzy({list}, {str} [, {dict}]) *matchfuzzy()*
73797379
the strings in {list} that fuzzy match {str}. The strings in
73807380
the returned list are sorted based on the matching score.
73817381

7382+
The optional {dict} argument always supports the following
7383+
items:
7384+
matchseq When this item is present and {str} contains
7385+
multiple words separated by white space, then
7386+
returns only matches that contain the words in
7387+
the given sequence.
7388+
73827389
If {list} is a list of dictionaries, then the optional {dict}
7383-
argument supports the following items:
7390+
argument supports the following additional items:
73847391
key key of the item which is fuzzy matched against
73857392
{str}. The value of this item should be a
73867393
string.
@@ -7394,6 +7401,9 @@ matchfuzzy({list}, {str} [, {dict}]) *matchfuzzy()*
73947401
matching is NOT supported. The maximum supported {str} length
73957402
is 256.
73967403

7404+
When {str} has multiple words each separated by white space,
7405+
then the list of strings that have all the words is returned.
7406+
73977407
If there are no matching strings or there is an error, then an
73987408
empty list is returned. If length of {str} is greater than
73997409
256, then returns an empty list.
@@ -7413,7 +7423,12 @@ matchfuzzy({list}, {str} [, {dict}]) *matchfuzzy()*
74137423
:echo v:oldfiles->matchfuzzy("test")
74147424
< results in a list of file names fuzzy matching "test". >
74157425
:let l = readfile("buffer.c")->matchfuzzy("str")
7416-
< results in a list of lines in "buffer.c" fuzzy matching "str".
7426+
< results in a list of lines in "buffer.c" fuzzy matching "str". >
7427+
:echo ['one two', 'two one']->matchfuzzy('two one')
7428+
< results in ['two one', 'one two']. >
7429+
:echo ['one two', 'two one']->matchfuzzy('two one',
7430+
\ {'matchseq': 1})
7431+
< results in ['two one'].
74177432

74187433
matchfuzzypos({list}, {str} [, {dict}]) *matchfuzzypos()*
74197434
Same as |matchfuzzy()|, but returns the list of matched
@@ -7969,8 +7984,8 @@ printf({fmt}, {expr1} ...) *printf()*
79697984

79707985

79717986
prompt_getprompt({buf}) *prompt_getprompt()*
7972-
Returns the effective prompt text for buffer {buf}. {buf} can
7973-
be a buffer name or number. |prompt-buffer|.
7987+
Returns the effective prompt text for buffer {buf}. {buf} can
7988+
be a buffer name or number. See |prompt-buffer|.
79747989

79757990
If the buffer doesn't exist or isn't a prompt buffer, an empty
79767991
string is returned.
@@ -10706,8 +10721,8 @@ terminalprops() *terminalprops()*
1070610721
detected from the response to |t_RV| request. See
1070710722
|v:termresponse| for the response itself. If |v:termresponse|
1070810723
is empty most values here will be 'u' for unknown.
10709-
cursor_style wether sending |t_RS| works **
10710-
cursor_blink_mode wether sending |t_RC| works **
10724+
cursor_style whether sending |t_RS| works **
10725+
cursor_blink_mode whether sending |t_RC| works **
1071110726
underline_rgb whether |t_8u| works **
1071210727
mouse mouse type supported
1071310728

@@ -11363,7 +11378,8 @@ winsaveview() Returns a |Dictionary| that contains information to restore
1136311378
curswant column for vertical movement
1136411379
topline first line in the window
1136511380
topfill filler lines, only in diff mode
11366-
leftcol first column displayed
11381+
leftcol first column displayed; only used when
11382+
'wrap' is off
1136711383
skipcol columns skipped
1136811384
Note that no option values are saved.
1136911385

@@ -12142,8 +12158,9 @@ be used to pass settings to the autoload script before it's loaded: >
1214212158

1214312159
Note that when you make a mistake and call a function that is supposed to be
1214412160
defined in an autoload script, but the script doesn't actually define the
12145-
function, the script will be sourced every time you try to call the function.
12146-
And you will get an error message every time.
12161+
function, you will get an error message for the missing function. If you fix
12162+
the autoload script it won't be automatically loaded again. Either restart
12163+
Vim or manually source the script.
1214712164

1214812165
Also note that if you have two script files, and one calls a function in the
1214912166
other and vice versa, before the used function is defined, it won't work.

runtime/doc/if_mzsch.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*if_mzsch.txt* For Vim version 8.2. Last change: 2019 Dec 07
1+
*if_mzsch.txt* For Vim version 8.2. Last change: 2020 Oct 14
22

33

44
VIM REFERENCE MANUAL by Sergey Khorev
@@ -43,7 +43,7 @@ To speed up the process, you might also want to use --disable-gracket and
4343
{script}
4444
{endmarker}
4545
Execute inlined MzScheme script {script}.
46-
Note: This command doesn't work if the MzScheme
46+
Note: This command doesn't work when the MzScheme
4747
feature wasn't compiled in. To avoid errors, see
4848
|script-here|.
4949

runtime/doc/insert.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*insert.txt* For Vim version 8.2. Last change: 2020 Sep 19
1+
*insert.txt* For Vim version 8.2. Last change: 2020 Oct 16
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -312,6 +312,7 @@ If you enter a value of 10, it will end up in the file as a 0. The 10 is a
312312
the buffer to a file, the <NL> character is translated into <Nul>. The <NL>
313313
character is written at the end of each line. Thus if you want to insert a
314314
<NL> character in a file you will have to make a line break.
315+
Also see 'fileformat'.
315316

316317
*i_CTRL-X* *insert_expand*
317318
CTRL-X enters a sub-mode where several commands can be used. Most of these

runtime/doc/motion.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*motion.txt* For Vim version 8.2. Last change: 2020 Aug 24
1+
*motion.txt* For Vim version 8.2. Last change: 2020 Oct 18
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -190,11 +190,14 @@ l or *l*
190190

191191
*^*
192192
^ To the first non-blank character of the line.
193-
|exclusive| motion.
193+
|exclusive| motion. Any count is ignored.
194194

195195
*$* *<End>* *<kEnd>*
196196
$ or <End> To the end of the line. When a count is given also go
197-
[count - 1] lines downward. |inclusive| motion.
197+
[count - 1] lines downward, or as far is possible.
198+
|inclusive| motion. If a count of 2 of larger is
199+
given and the cursor is on the last line, that is an
200+
error an the cursor doesn't move.
198201
In Visual mode the cursor goes to just after the last
199202
character in the line.
200203
When 'virtualedit' is active, "$" may move the cursor

runtime/doc/options.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7365,7 +7365,7 @@ A jump table for the options with a short description can be found at |Q_op|.
73657365
normal text. Each status line item is of the form:
73667366
%-0{minwid}.{maxwid}{item}
73677367
All fields except the {item} are optional. A single percent sign can
7368-
be given as "%%". Up to 80 items can be specified. *E541*
7368+
be given as "%%".
73697369

73707370
When the option starts with "%!" then it is used as an expression,
73717371
evaluated and the result is used as the option value. Example: >

runtime/doc/pi_zip.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,4 @@ Copyright: Copyright (C) 2005-2015 Charles E Campbell *zip-copyright*
154154
v1 Sep 15, 2005 * Initial release, had browsing, reading, and writing
155155

156156
==============================================================================
157-
vim:tw=78:ts=8:noet:ft=help:fdm=marker
157+
vim:tw=78:ts=8:ft=help:noet:norl:fdm=marker

0 commit comments

Comments
 (0)