Skip to content

Commit b17893a

Browse files
committed
Update runtime files
1 parent 965fd8d commit b17893a

14 files changed

Lines changed: 253 additions & 119 deletions

File tree

runtime/doc/eval.txt

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 8.2. Last change: 2020 Feb 22
1+
*eval.txt* For Vim version 8.2. Last change: 2020 Mar 14
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -4357,6 +4357,8 @@ feedkeys({string} [, {mode}]) *feedkeys()*
43574357
'L' Lowlevel input. Only works for Unix or when using the
43584358
GUI. Keys are used as if they were coming from the
43594359
terminal. Other flags are not used. *E980*
4360+
When a CTRL-C interrupts it sets the internal
4361+
"got_int" flag.
43604362
'i' Insert the string instead of appending (see above).
43614363
'x' Execute commands until typeahead is empty. This is
43624364
similar to using ":normal!". You can call feedkeys()
@@ -5829,6 +5831,15 @@ has({feature}) The result is a Number, which is 1 if the feature {feature} is
58295831
supported, zero otherwise. The {feature} argument is a
58305832
string. See |feature-list| below.
58315833
Also see |exists()|.
5834+
Note that to skip code that has a syntax error when the
5835+
feature is not available, Vim may skip the rest of the line
5836+
and miss a following `endif`. Therfore put the `endif` on a
5837+
separate line: >
5838+
if has('feature')
5839+
let x = this->breaks->without->the->feature
5840+
endif
5841+
< If the `endif` would be in the second line it would not be
5842+
found.
58325843

58335844

58345845
has_key({dict}, {key}) *has_key()*
@@ -8612,7 +8623,12 @@ setpos({expr}, {list})
86128623
setqflist({list} [, {action} [, {what}]]) *setqflist()*
86138624
Create or replace or add to the quickfix list.
86148625

8615-
When {what} is not present, use the items in {list}. Each
8626+
If the optional {what} dictionary argument is supplied, then
8627+
only the items listed in {what} are set. The first {list}
8628+
argument is ignored. See below for the supported items in
8629+
{what}.
8630+
8631+
When {what} is not present, the items in {list} or used. Each
86168632
item must be a dictionary. Non-dictionary items in {list} are
86178633
ignored. Each dictionary item can contain the following
86188634
entries:
@@ -8667,10 +8683,7 @@ setqflist({list} [, {action} [, {what}]]) *setqflist()*
86678683
freed. To add a new quickfix list at the end of the stack,
86688684
set "nr" in {what} to "$".
86698685

8670-
If the optional {what} dictionary argument is supplied, then
8671-
only the items listed in {what} are set. The first {list}
8672-
argument is ignored. The following items can be specified in
8673-
{what}:
8686+
The following items can be specified in dictionary {what}:
86748687
context quickfix list context. See |quickfix-context|
86758688
efm errorformat to use when parsing text from
86768689
"lines". If this is not present, then the
@@ -10486,11 +10499,12 @@ winlayout([{tabnr}]) *winlayout()*
1048610499
" Two horizontally split windows
1048710500
:echo winlayout()
1048810501
['col', [['leaf', 1000], ['leaf', 1001]]]
10489-
" Three horizontally split windows, with two
10490-
" vertically split windows in the middle window
10502+
" The second tab page, with three horizontally split
10503+
" windows, with two vertically split windows in the
10504+
" middle window
1049110505
:echo winlayout(2)
10492-
['col', [['leaf', 1002], ['row', ['leaf', 1003],
10493-
['leaf', 1001]]], ['leaf', 1000]]
10506+
['col', [['leaf', 1002], ['row', [['leaf', 1003],
10507+
['leaf', 1001]]], ['leaf', 1000]]]
1049410508
<
1049510509
Can also be used as a |method|: >
1049610510
GetTabnr()->winlayout()

runtime/doc/options.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 8.2. Last change: 2020 Feb 14
1+
*options.txt* For Vim version 8.2. Last change: 2020 Mar 02
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -4646,8 +4646,8 @@ A jump table for the options with a short description can be found at |Q_op|.
46464646
be able to execute Normal mode commands.
46474647
This is the opposite of the 'keymap' option, where characters are
46484648
mapped in Insert mode.
4649-
Also consider resetting 'langremap' to avoid 'langmap' applies to
4650-
characters resulting from a mapping.
4649+
Also consider setting 'langremap' to off, to prevent 'langmap' from
4650+
applying to characters resulting from a mapping.
46514651
This option cannot be set from a |modeline| or in the |sandbox|, for
46524652
security reasons.
46534653

@@ -4712,7 +4712,7 @@ A jump table for the options with a short description can be found at |Q_op|.
47124712
'langnoremap' is set to the inverted value, and the other way around.
47134713

47144714
*'langremap'* *'lrm'* *'nolangremap'* *'nolrm'*
4715-
'langremap' 'lrm' boolean (default on, reset in |defaults.vim|)
4715+
'langremap' 'lrm' boolean (default on, set to off in |defaults.vim|)
47164716
global
47174717
{only available when compiled with the |+langmap|
47184718
feature}

runtime/doc/textprop.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*textprop.txt* For Vim version 8.2. Last change: 2020 Feb 22
1+
*textprop.txt* For Vim version 8.2. Last change: 2020 Mar 05
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -133,8 +133,8 @@ prop_add({lnum}, {col}, {props})
133133
to {lnum}, this is a zero-width text property
134134
bufnr buffer to add the property to; when omitted
135135
the current buffer is used
136-
id user defined ID for the property; when omitted
137-
zero is used
136+
id user defined ID for the property; must be a
137+
number; when omitted zero is used
138138
type name of the text property type
139139
All fields except "type" are optional.
140140

runtime/doc/todo.txt

Lines changed: 43 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*todo.txt* For Vim version 8.2. Last change: 2020 Mar 01
1+
*todo.txt* For Vim version 8.2. Last change: 2020 Mar 13
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -38,10 +38,23 @@ browser use: https://github.com/vim/vim/issues/1234
3838
*known-bugs*
3939
-------------------- Known bugs and current work -----------------------
4040

41+
When starting a terminal popup the size defaults to nothing. Should have a
42+
sensible default, e.g. four lines of 30 chars.
43+
call popup_create(term_start(&shell, #{hidden: 1}), #{})
44+
45+
Test_terminal_in_popup() still sometimes fails with "All" instead of "Top".
46+
47+
Patch to fix vimtutor problems on Windows (Wu Yongwei, #5774)
48+
49+
Additional tests for menu. (Yegappan, #5760)
50+
Introduces menu_info(), check that out.
51+
4152
Vim9 script:
42-
- better implementation for partial and tests.
53+
- Add vim9 commands to index, so that vim.vim will get them automatically.
54+
See email from Charles March 11 2020.
4355
- "func" inside "vim9script" doesn't work? (Ben Jackson, #5670)
4456
- "echo Func()" is an error if Func() does not return anything.
57+
- better implementation for partial and tests for that.
4558
- Make "g:imported = Export.exported" work in Vim9 script.
4659
- Make Foo.Bar() work to call the dict function. (#5676)
4760
- make "let var: string" work in a vim9script.
@@ -80,7 +93,14 @@ Vim9 script:
8093
LOADVARARG (varags idx)
8194

8295
Popup windows:
96+
- popup_clear() and popup_close() should close the terminal popup, and
97+
make the buffer hidden. #5745
8398
- With terminal in popup, allow for popup_hide() to temporarily hide it.?
99+
- With some sequence get get hidden finished terminal buffer. (#5768)
100+
- Fire some autocommand event after a new popup window was created and
101+
positioned? PopupNew? Could be used to set some options or move it out of
102+
the way. (#5737)
103+
However, it may also cause trouble, changing the popup of another plugin.
84104
- Use popup (or popup menu) for command line completion
85105
- When using a popup for the info of a completion menu, and there is not
86106
enough space, let the popup overlap with the menu. (#4544)
@@ -94,7 +114,7 @@ Popup windows:
94114
- Figure out the size and position better if wrapping inserts indent
95115

96116
Text properties:
97-
- prop_find() may not find text property at start of the line. (#5663)
117+
- "cc" does not call inserted_bytes(). (Axel Forsman, #5763)
98118
- Get E685 with a sequence of commands. (#5674)
99119
- Combining text property with 'cursorline' does not always work (Billie
100120
Cleek, #5533)
@@ -165,7 +185,7 @@ Terminal emulator window:
165185

166186
Error numbers available:
167187
E451, E452, E453, E454, E460, E489, E491, E565, E578, E610, E611, E653,
168-
E654, E856, E857, E860, E861, E900
188+
E654, E856, E857, E861, E900
169189

170190
Patch to fix drawing error with DirectX. (James Grant, #5688)
171191
Causes flicker on resizing.
@@ -174,10 +194,15 @@ Patch to use more FOR_ALL_ macros and use them. (Yegappan Lakshmanan, #5339)
174194

175195
Patch to explain use of "%" in :!. (David Briscoe, #5591)
176196

197+
Patch to improve Windows terminal support. (Nobuhiro Takasaki, #5546)
198+
Ready to include.
199+
177200
Patch to add "-d" to xxd. (#5616)
178201

179202
Patch to add Turkish manual. (Emir Sarı, #5641)
180203

204+
File marks merging has duplicates since 7.4.1925. (Ingo Karkat, #5733)
205+
181206
Running test_gui and test_gui_init with Motif sometimes kills the window
182207
manager. Problem with Motif? Now test_gui crashes in submenu_change().
183208
Athena is OK.
@@ -191,21 +216,25 @@ Needs better docs. Is there a better name?
191216

192217
undo result wrong: Masato Nishihata, #4798
193218

219+
Patch for Template string: #4491. New pull: #4634
220+
Ready to include? Review the code.
221+
194222
When 'lazyredraw' is set sometimes the title is not updated.
195223
(Jason Franklin, 2020 Feb 3) Looks like a race condition.
196224

197225
Strange sequence of BufWipeout and BufNew events while doing omni-complete.
198226
(Paul Jolly, #5656)
199227
Get BufDelete without preceding BufNew. (Paul Jolly, #5694)
228+
Later more requests for what to track.
229+
Should we add new events that don't allow any buffer manipulation?
230+
Really only for dealing with appearing and disappearing buffers, load and
231+
unload.
200232
BufWinenter event not fired when saving unnamed buffer. (Paul Jolly, #5655)
201233
Another spurious BufDelete. (Dani Dickstein, #5701)
202234

203235
Patch to add function to return the text used in the quickfix window.
204236
(Yegappan, #5465)
205237

206-
Patch for Template string: #4491. New pull: #4634
207-
Implementation is too inefficient, avoid using lambda.
208-
209238
Patch to add readdirex() (Ken Takata, #5619)
210239

211240
Request to support <Cmd> in mappings, similar to how Neovim does this.
@@ -248,6 +277,12 @@ match, total matches). (#5631)
248277
Patch to provide search stats in a variable, so that it can be used in the
249278
statusline. (Fujiwara Takuya, #4446)
250279

280+
Patch for ambiguous width characters in libvterm on MS-Windows 10.
281+
(Nobuhiro Takasaki, #4411)
282+
283+
behavior of i_CTRl-R_CTRL-R differs from documentation. (Paul Desmond Parker,
284+
#5771)
285+
251286
":bnext" in a help buffer is supposed to go to the next help buffer, but it
252287
goes to any buffer, and then :bnext skips help buffers, since they are
253288
unlisted. (#4478)
@@ -305,6 +340,7 @@ Patch to add per-tabpage and per-window previous directory: "lcd -" and "tcd
305340
Does not build with MinGW out of the box:
306341
- _stat64 is not defined, need to use "struct stat" in vim.h
307342
- WINVER conflict, should use 0x0600 by default?
343+
- INT_MAX not defined: need to include <limits.h> in vim.h
308344

309345
Crash when mixing matchadd and substitute()? (Max Christian Pohle, 2018 May
310346
13, #2910) Can't reproduce?
@@ -431,9 +467,6 @@ with the first character (like what happens with a last line that doesn't
431467
fit). Display "<<<" at the start of the first visible line (like "@@@" is
432468
displayed in the last line). (Arseny Nasokin, #5154)
433469

434-
Patch for ambiguous width characters in libvterm on MS-Windows 10.
435-
(Nobuhiro Takasaki, #4411)
436-
437470
Window size changes after closing a tab. (#4741)
438471

439472
Problem with colors in terminal window. (Jason Franklin, 2019 May 12)

runtime/doc/vim9.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*vim9.txt* For Vim version 8.2. Last change: 2020 Feb 29
1+
*vim9.txt* For Vim version 8.2. Last change: 2020 Mar 01
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -213,7 +213,7 @@ few exceptions.
213213
blob non-empty
214214
list non-empty (different from JavaScript)
215215
dictionary non-empty (different from JavaScript)
216-
funcref when not NULL
216+
func when not NULL
217217
partial when not NULL
218218
special v:true
219219
job when not NULL
@@ -301,6 +301,8 @@ The following builtin types are supported:
301301
(a: type, b: type): type
302302
job
303303
channel
304+
func
305+
partial
304306

305307
Not supported yet:
306308
tuple<a: type, b: type, ...>

runtime/ftplugin/yaml.vim

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim filetype plugin file
22
" Language: YAML (YAML Ain't Markup Language)
3-
" Previous Maintainer: Nikolai Weibull <[email protected]>
4-
" Latest Revision: 2008-07-09
3+
" Previous Maintainer: Nikolai Weibull <[email protected]> (inactive)
4+
" Last Change: 2020 Mar 02
55

66
if exists("b:did_ftplugin")
77
finish
@@ -16,5 +16,10 @@ let b:undo_ftplugin = "setl com< cms< et< fo<"
1616
setlocal comments=:# commentstring=#\ %s expandtab
1717
setlocal formatoptions-=t formatoptions+=croql
1818

19+
if !exists("g:yaml_recommended_style") || g:yaml_recommended_style != 0
20+
let b:undo_ftplugin ..= " sw< sts<"
21+
setlocal shiftwidth=2 softtabstop=2
22+
endif
23+
1924
let &cpo = s:cpo_save
2025
unlet s:cpo_save

runtime/ftplugin/zsh.vim

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
" Language: Zsh shell script
33
" Maintainer: Christian Brabandt <[email protected]>
44
" Previous Maintainer: Nikolai Weibull <[email protected]>
5-
" Latest Revision: 2017-11-22
5+
" Latest Revision: 2020-01-10
66
" License: Vim (see :h license)
77
" Repository: https://github.com/chrisbra/vim-zsh
88

@@ -14,10 +14,24 @@ let b:did_ftplugin = 1
1414
let s:cpo_save = &cpo
1515
set cpo&vim
1616

17-
let b:undo_ftplugin = "setl com< cms< fo<"
18-
1917
setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql
2018

19+
let b:undo_ftplugin = "setl com< cms< fo< "
20+
21+
if executable('zsh')
22+
if !has('gui_running') && executable('less')
23+
command! -buffer -nargs=1 RunHelp silent exe '!zsh -ic "autoload -Uz run-help; run-help <args> 2>/dev/null | LESS= less"' | redraw!
24+
elseif has('terminal')
25+
command! -buffer -nargs=1 RunHelp silent exe ':term zsh -ic "autoload -Uz run-help; run-help <args>"'
26+
else
27+
command! -buffer -nargs=1 RunHelp echo system('zsh -ic "autoload -Uz run-help; run-help <args> 2>/dev/null"')
28+
endif
29+
setlocal keywordprg=:RunHelp
30+
setlocal makeprg=zsh\ -n\ --\ %:S
31+
setlocal errorformat=%f:\ line\ %l:\ %m
32+
let b:undo_ftplugin .= 'keywordprg< errorformat< makeprg<'
33+
endif
34+
2135
let b:match_words = ',\<if\>:\<elif\>:\<else\>:\<fi\>'
2236
\ . ',\<case\>:^\s*([^)]*):\<esac\>'
2337
\ . ',\<\%(select\|while\|until\|repeat\|for\%(each\)\=\)\>:\<done\>'

runtime/indent/php.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Author: John Wellesz <John.wellesz (AT) gmail (DOT) com>
44
" URL: https://www.2072productions.com/vim/indent/php.vim
55
" Home: https://github.com/2072/PHP-Indenting-for-VIm
6-
" Last Change: 2019 Jully 21st
6+
" Last Change: 2020 Mar 05
77
" Version: 1.70
88
"
99
"

runtime/scripts.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim support file to detect file types in scripts
22
"
33
" Maintainer: Bram Moolenaar <[email protected]>
4-
" Last change: 2019 Jun 25
4+
" Last change: 2020 Mar 06
55

66
" This file is called by an autocommand for every file that has just been
77
" loaded into a buffer. It checks if the type of file can be recognized by

runtime/syntax/help.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim syntax file
22
" Language: Vim help file
33
" Maintainer: Bram Moolenaar ([email protected])
4-
" Last Change: 2019 Nov 26
4+
" Last Change: 2020 Mar 06
55

66
" Quit when a (custom) syntax file was already loaded
77
if exists("b:current_syntax")
@@ -11,7 +11,7 @@ endif
1111
let s:cpo_save = &cpo
1212
set cpo&vim
1313

14-
syn match helpHeadline "^[-A-Z .][-A-Z0-9 .()_]*[ \t]\+\*"me=e-1
14+
syn match helpHeadline "^[-A-Z .][-A-Z0-9 .()_]*\ze\(\s\+\*\|$\)"
1515
syn match helpSectionDelim "^===.*===$"
1616
syn match helpSectionDelim "^---.*--$"
1717
if has("conceal")

0 commit comments

Comments
 (0)