Skip to content

Commit 560979e

Browse files
committed
Update runtime files.
1 parent 80147dd commit 560979e

16 files changed

Lines changed: 177 additions & 61 deletions

runtime/doc/autocmd.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim version 8.2. Last change: 2020 Jan 17
1+
*autocmd.txt* For Vim version 8.2. Last change: 2020 Jan 26
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar

runtime/doc/eval.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 8.2. Last change: 2020 Jan 19
1+
*eval.txt* For Vim version 8.2. Last change: 2020 Feb 03
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1808,7 +1808,9 @@ v:errors Errors found by assert functions, such as |assert_true()|.
18081808

18091809
*v:event* *event-variable*
18101810
v:event Dictionary containing information about the current
1811-
|autocommand|. The dictionary is emptied when the |autocommand|
1811+
|autocommand|. See the specific event for what it puts in
1812+
this dictionary.
1813+
The dictionary is emptied when the |autocommand|
18121814
finishes, please refer to |dict-identity| for how to get an
18131815
independent copy of it.
18141816

@@ -3455,6 +3457,7 @@ chdir({dir}) *chdir()*
34553457
directory (|:tcd|) then changes the tabpage local
34563458
directory.
34573459
- Otherwise, changes the global directory.
3460+
{dir} must be a String.
34583461
If successful, returns the previous working directory. Pass
34593462
this to another chdir() to restore the directory.
34603463
On failure, returns an empty string.
@@ -5664,7 +5667,7 @@ getwininfo([{winid}]) *getwininfo()*
56645667
GetWinnr()->getwininfo()
56655668
56665669
getwinpos([{timeout}]) *getwinpos()*
5667-
The result is a list with two numbers, the result of
5670+
The result is a List with two numbers, the result of
56685671
|getwinposx()| and |getwinposy()| combined:
56695672
[x-pos, y-pos]
56705673
{timeout} can be used to specify how long to wait in msec for
@@ -10461,6 +10464,7 @@ winline() The result is a Number, which is the screen line of the cursor
1046110464
*winnr()*
1046210465
winnr([{arg}]) The result is a Number, which is the number of the current
1046310466
window. The top window has number 1.
10467+
Returns zero for a popup window.
1046410468

1046510469
The optional argument {arg} supports the following values:
1046610470
$ the number of the last window (the window

runtime/doc/insert.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*insert.txt* For Vim version 8.2. Last change: 2020 Jan 04
1+
*insert.txt* For Vim version 8.2. Last change: 2020 Jan 26
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1079,7 +1079,8 @@ If you want to suppress the warning message for an empty result, return
10791079

10801080
Other items are ignored.
10811081

1082-
For acting upon end of completion, see the |CompleteDone| autocommand event.
1082+
For acting upon end of completion, see the |CompleteDonePre| and
1083+
|CompleteDone| autocommand event.
10831084

10841085
For example, the function can contain this: >
10851086
let matches = ... list of words ...

runtime/doc/popup.txt

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*popup.txt* For Vim version 8.2. Last change: 2019 Nov 30
1+
*popup.txt* For Vim version 8.2. Last change: 2020 Feb 03
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -11,6 +11,7 @@ Displaying text in a floating window. *popup* *popup-window* *popupwin*
1111
Window position and size |popup-position|
1212
Closing the popup window |popup-close|
1313
Popup buffer and window |popup-buffer|
14+
Terminal in popup window |popup-terminal|
1415
2. Functions |popup-functions|
1516
Details |popup-function-details|
1617
3. Usage |popup-usage|
@@ -140,6 +141,22 @@ And options can be set on the buffer with `setbufvar()`, e.g.: >
140141
You can also use `win_execute()` with a ":setlocal" command.
141142

142143

144+
TERMINAL IN POPUP WINDOW *popup-terminal*
145+
146+
A special case is running a terminal in a popup window. Many rules are then
147+
different: *E863*
148+
- The popup window always has focus, it is not possible to switch to another
149+
window.
150+
- When the job ends, the popup window closes.
151+
- The default Pmenu color is only used for the border and padding. To change
152+
the color of the terminal itself set 'wincolor'.
153+
154+
To run a terminal in a popup window, first create the terminal hidden. Then
155+
pass the buffer number to popup_create(). Example: >
156+
let buf = term_start(['picker', 'Something'], #{hidden: 1, term_finish: 'close'})
157+
let winid = popup_create(buf, #{minwidth: 50, minheight: 20})
158+
set wincolor=Search
159+
143160
==============================================================================
144161
2. Functions *popup-functions*
145162

runtime/doc/tags

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2313,6 +2313,7 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
23132313
:debug-name repeat.txt /*:debug-name*
23142314
:debugg repeat.txt /*:debugg*
23152315
:debuggreedy repeat.txt /*:debuggreedy*
2316+
:def vim9.txt /*:def*
23162317
:del change.txt /*:del*
23172318
:delc map.txt /*:delc*
23182319
:delcommand map.txt /*:delcommand*
@@ -2384,6 +2385,7 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
23842385
:emenu gui.txt /*:emenu*
23852386
:en eval.txt /*:en*
23862387
:end eval.txt /*:end*
2388+
:enddef vim9.txt /*:enddef*
23872389
:endf eval.txt /*:endf*
23882390
:endfo eval.txt /*:endfo*
23892391
:endfor eval.txt /*:endfor*
@@ -2404,6 +2406,8 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
24042406
:execute eval.txt /*:execute*
24052407
:exi editing.txt /*:exi*
24062408
:exit editing.txt /*:exit*
2409+
:exp vim9.txt /*:exp*
2410+
:export vim9.txt /*:export*
24072411
:exu helphelp.txt /*:exu*
24082412
:exusage helphelp.txt /*:exusage*
24092413
:f editing.txt /*:f*
@@ -2506,6 +2510,9 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
25062510
:imapclear map.txt /*:imapclear*
25072511
:ime gui.txt /*:ime*
25082512
:imenu gui.txt /*:imenu*
2513+
:imp vim9.txt /*:imp*
2514+
:import vim9.txt /*:import*
2515+
:import-cycle vim9.txt /*:import-cycle*
25092516
:in insert.txt /*:in*
25102517
:index index.txt /*:index*
25112518
:ino map.txt /*:ino*
@@ -3354,6 +3361,8 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
33543361
:vie editing.txt /*:vie*
33553362
:view editing.txt /*:view*
33563363
:vim quickfix.txt /*:vim*
3364+
:vim9 vim9.txt /*:vim9*
3365+
:vim9script vim9.txt /*:vim9script*
33573366
:vimgrep quickfix.txt /*:vimgrep*
33583367
:vimgrepa quickfix.txt /*:vimgrepa*
33593368
:vimgrepadd quickfix.txt /*:vimgrepadd*
@@ -3834,6 +3843,7 @@ Command-line cmdline.txt /*Command-line*
38343843
Command-line-mode cmdline.txt /*Command-line-mode*
38353844
CompleteChanged autocmd.txt /*CompleteChanged*
38363845
CompleteDone autocmd.txt /*CompleteDone*
3846+
CompleteDonePre autocmd.txt /*CompleteDonePre*
38373847
ConPTY terminal.txt /*ConPTY*
38383848
Contents quickref.txt /*Contents*
38393849
Cscope if_cscop.txt /*Cscope*
@@ -4661,6 +4671,7 @@ E858 eval.txt /*E858*
46614671
E859 eval.txt /*E859*
46624672
E86 windows.txt /*E86*
46634673
E862 eval.txt /*E862*
4674+
E863 popup.txt /*E863*
46644675
E864 pattern.txt /*E864*
46654676
E865 pattern.txt /*E865*
46664677
E866 pattern.txt /*E866*
@@ -6276,6 +6287,7 @@ faq intro.txt /*faq*
62766287
farsi farsi.txt /*farsi*
62776288
farsi.txt farsi.txt /*farsi.txt*
62786289
fasm.vim syntax.txt /*fasm.vim*
6290+
fast-functions vim9.txt /*fast-functions*
62796291
fcs_choice-variable eval.txt /*fcs_choice-variable*
62806292
fcs_reason-variable eval.txt /*fcs_reason-variable*
62816293
feature-list eval.txt /*feature-list*
@@ -8315,6 +8327,7 @@ popup-menu-added version5.txt /*popup-menu-added*
83158327
popup-position popup.txt /*popup-position*
83168328
popup-props popup.txt /*popup-props*
83178329
popup-scrollbar popup.txt /*popup-scrollbar*
8330+
popup-terminal popup.txt /*popup-terminal*
83188331
popup-textprop-pos popup.txt /*popup-textprop-pos*
83198332
popup-usage popup.txt /*popup-usage*
83208333
popup-window popup.txt /*popup-window*
@@ -9544,6 +9557,7 @@ tutor usr_01.txt /*tutor*
95449557
twice if_cscop.txt /*twice*
95459558
two-engines pattern.txt /*two-engines*
95469559
type() eval.txt /*type()*
9560+
type-inference vim9.txt /*type-inference*
95479561
type-mistakes tips.txt /*type-mistakes*
95489562
typecorr-settings usr_41.txt /*typecorr-settings*
95499563
typecorr.txt usr_41.txt /*typecorr.txt*
@@ -9907,6 +9921,14 @@ vim-variable eval.txt /*vim-variable*
99079921
vim.vim syntax.txt /*vim.vim*
99089922
vim7 version7.txt /*vim7*
99099923
vim8 version8.txt /*vim8*
9924+
vim9-differences vim9.txt /*vim9-differences*
9925+
vim9-export vim9.txt /*vim9-export*
9926+
vim9-import vim9.txt /*vim9-import*
9927+
vim9-rationale vim9.txt /*vim9-rationale*
9928+
vim9-script vim9.txt /*vim9-script*
9929+
vim9-types vim9.txt /*vim9-types*
9930+
vim9.txt vim9.txt /*vim9.txt*
9931+
vim9script vim9.txt /*vim9script*
99109932
vim: options.txt /*vim:*
99119933
vim_announce intro.txt /*vim_announce*
99129934
vim_dev intro.txt /*vim_dev*

runtime/doc/tagsrch.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*tagsrch.txt* For Vim version 8.2. Last change: 2019 Dec 27
1+
*tagsrch.txt* For Vim version 8.2. Last change: 2020 Jan 30
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -903,8 +903,8 @@ The following is a hypothetical example of a function used for 'tagfunc'. It
903903
uses the output of |taglist()| to generate the result: a list of tags in the
904904
inverse order of file names.
905905
>
906-
function! TagFunc(pattern, flags, info)
907-
function! CompareFilenames(item1, item2)
906+
function TagFunc(pattern, flags, info)
907+
function CompareFilenames(item1, item2)
908908
let f1 = a:item1['filename']
909909
let f2 = a:item2['filename']
910910
return f1 >=# f2 ?

runtime/doc/terminal.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*terminal.txt* For Vim version 8.2. Last change: 2020 Jan 04
1+
*terminal.txt* For Vim version 8.2. Last change: 2020 Jan 30
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1025,7 +1025,7 @@ Writing a screen dump test for Vim ~
10251025
For an example see the Test_syntax_c() function in
10261026
src/testdir/test_syntax.vim. The main parts are:
10271027
- Write a file you want to test with. This is useful for testing syntax
1028-
highlighting. You can also start Vim with en empty buffer.
1028+
highlighting. You can also start Vim with an empty buffer.
10291029
- Run Vim in a terminal with a specific size. The default is 20 lines of 75
10301030
characters. This makes sure the dump is always this size. The function
10311031
RunVimInTerminal() takes care of this. Pass it the arguments for the Vim

runtime/doc/todo.txt

Lines changed: 52 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*todo.txt* For Vim version 8.2. Last change: 2020 Jan 23
1+
*todo.txt* For Vim version 8.2. Last change: 2020 Feb 04
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -40,10 +40,44 @@ browser use: https://github.com/vim/vim/issues/1234
4040

4141
Include ipv6 syntax changes? (DJ Lucas, #5360)
4242

43+
Add win_type(), which "popup" and "cmdline" as values?
44+
45+
Vim9 script:
46+
- test s:var += 'some'
47+
test exported += 'some'
48+
- implement default values for optional arguments
49+
Generate instructions at start of function, skip over if argument provided?
50+
- Disallow unlet for local/script/imported vars
51+
- :func inside vim9script must still use a:arg
52+
- Check that import in legacy script works and puts item in s:
53+
- Error in any command in "vim9script" aborts sourcing.
54+
- Find a way to test expressions in legacy and Vim9 script without duplication
55+
- Test each level of expressions properly, with type checking
56+
- Test the
57+
- Test try/catch and throw better, also nested.
58+
Test return inside try/finally jumps to finally and then returns.
59+
- call autoload function.
60+
- Type checking arguments when calling :def function
61+
- can use func as reference:
62+
def SomeFunc() ...
63+
map(list, SomeFunc)
64+
- define function and create funcref in one step:
65+
let ref = def(arg: type): rettype
66+
Also extends lambda
67+
- Test: Function declared inside a :def function is local, disappears at the
68+
end of the function. Unless g: is used, just like with variables.
69+
- Can we omit \ for line continuation inside (), {}, ?
70+
Requires parsing while reading a function. Like fgetline in do_one_cmd()?
71+
- implement :type
72+
- implement class
73+
- implement interface
74+
- predefined class: Promise<T>
75+
- import statement for type declaration?
76+
- Make accessing varargs faster: arg[expr]
77+
EVAL expr
78+
LOADVARARG (varags idx)
79+
4380
Popup windows:
44-
- Make it possible to put a terminal window in a popup. Would always grab key
45-
input? Sort-of possible by creating a hidden terminal and opening a popup
46-
with that buffer: #4063.
4781
- Use popup (or popup menu) for command line completion
4882
- When using a popup for the info of a completion menu, and there is not
4983
enough space, let the popup overlap with the menu. (#4544)
@@ -55,6 +89,8 @@ Popup windows:
5589
- Figure out the size and position better if wrapping inserts indent
5690

5791
Text properties:
92+
- Combining text property with 'cursorline' does not always work (Billie
93+
Cleek, #5533)
5894
- Text properties spanning more than one line
5995
- See remarks at top of src/textprop.c
6096

@@ -121,9 +157,8 @@ Terminal emulator window:
121157
conversions.
122158

123159
Error numbers available:
124-
E450, E451, E452,
125-
E453, E454, E460, E489, E491, E565, E578, E610, E611, E653,
126-
E654, E856, E857, E860, E861, E863, E889, E900
160+
E451, E452, E453, E454, E460, E489, E491, E565, E578, E610, E611, E653,
161+
E654, E856, E857, E860, E861, E900
127162

128163
Patch to move duplicated code to a function. (Yegappan Lakshmanan, #5330)
129164

@@ -142,16 +177,20 @@ Needs better docs. Is there a better name?
142177

143178
undo result wrong: Masato Nishihata, #4798
144179

180+
When 'lazyredraw' is set sometimes the title is not updated.
181+
(Jason Franklin, 2020 Feb 3) Looks like a race condition.
182+
145183
Patch to add function to return the text used in the quickfix window.
146184
(Yegappan, #5465)
147185

186+
Patch for Template string: #4491. New pull: #4634
187+
Implementation is too inefficient, avoid using lambda.
188+
148189
Undo puts cursor in wrong line after "cG<Esc>" undo.
149190

150191
:unmap <c-n> gives error but does remove the mapping. (Antony Scriven, 2019
151192
Dec 19)
152193

153-
Sound: support on Mac? Or does libcanberra work there?
154-
155194
Patch to fix session file when using multiple tab pages. (Jason Franklin, 2019
156195
May 20)
157196
Also put :argadd commands at the start for all buffers, so that their order
@@ -194,6 +233,8 @@ Enable 'termbidi' if $VTE_VERSION >= 5703 ?
194233
Universal solution to detect if t_RS is working, using cursor position.
195234
Koichi Iwamoto, #2126
196235

236+
Sound: support on Mac? Or does libcanberra work there?
237+
197238
Python 3.8 doesn't work. (Antonios Hadjigeorgalis, #5509)
198239

199240
The :syntax cchar value can only be a single character. It would be useful to
@@ -204,6 +245,8 @@ It can replace the BeOS code, which is likely not used anymore.
204245
Now on github: #1856. Updated Oct 2017
205246
Got permission to include this under the Vim license.
206247

248+
"--cleanFOO" does not result in an error. (#5537)
249+
207250
Add "t" action to settagstack(): truncate and add new entries. (#5405)
208251

209252
Result of synID() sometimes wrong in help files. (#5252)
@@ -269,9 +312,6 @@ Patch by Alex Dobrynin, 2007 Jun 3. Also fixes other scroll wheel problems.
269312
Add a WindowScrolled event. Trigger around the same time as CursorMoved.
270313
Can be used to update highlighting. #3127 #5181
271314

272-
Patch for Template string: #4491. New pull: #4634
273-
Implementation is too inefficient, avoid using lambda.
274-
275315
Incorrect formatting with autoindent. (Sebastian Gniazdowski, #4909)
276316

277317
Patch to add the :bvimgrep command. (Christian Brabandt, 2014 Nov 12)
@@ -812,9 +852,6 @@ option_save({list}) *option_save()*
812852
directory (Paulo Marcel Coelho Arabic, 2017 Oct 30, #2266)
813853
Also see #1689.
814854

815-
crash when removing an element while inside map(). (Nikolai Pavlov, 2018 Feb
816-
17, #2652)
817-
818855
When 'virtualedit' is "all" and 'cursorcolumn' is set, the wrong column may be
819856
highlighted. (van-de-bugger, 2018 Jan 23, #2576)
820857

runtime/doc/version8.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*version8.txt* For Vim version 8.2. Last change: 2019 Dec 29
1+
*version8.txt* For Vim version 8.2. Last change: 2020 Feb 04
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -306,7 +306,6 @@ New and extended functions: ~
306306
|systemlist()| get the result of a shell command as a list
307307
|test_alloc_fail()| make memory allocation fail
308308
|test_autochdir()| test 'autochdir' functionality
309-
test_disable_char_avail() test without typeahead (removed later)
310309
|test_garbagecollect_now()| free memory right now
311310
|test_null_channel()| return a null Channel
312311
|test_null_dict()| return a null Dict

0 commit comments

Comments
 (0)