Skip to content

Commit ebdf3c9

Browse files
committed
Update runtime files.
1 parent c2adc00 commit ebdf3c9

14 files changed

Lines changed: 113 additions & 69 deletions

File tree

runtime/doc/change.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*change.txt* For Vim version 8.2. Last change: 2019 Sep 28
1+
*change.txt* For Vim version 8.2. Last change: 2020 Feb 09
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -636,6 +636,8 @@ For other systems the tmpnam() library function is used.
636636
|cmdline-ranges|.
637637

638638
See |:s_flags| for [flags].
639+
The delimiter doesn't need to be /, see
640+
|pattern-delimiter|.
639641

640642
:[range]s[ubstitute] [flags] [count]
641643
:[range]&[&][flags] [count] *:&*
@@ -775,7 +777,7 @@ This deletes "TESTING" from all lines, but only one per line.
775777
For compatibility with Vi these two exceptions are allowed:
776778
"\/{string}/" and "\?{string}?" do the same as "//{string}/r".
777779
"\&{string}&" does the same as "//{string}/".
778-
*E146*
780+
*pattern-delimiter* *E146*
779781
Instead of the '/' which surrounds the pattern and replacement string, you
780782
can use any other single-byte character, but not an alphanumeric character,
781783
'\', '"' or '|'. This is useful if you want to include a '/' in the search

runtime/doc/options.txt

Lines changed: 2 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: 2020 Jan 24
1+
*options.txt* For Vim version 8.2. Last change: 2020 Feb 14
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1380,6 +1380,7 @@ A jump table for the options with a short description can be found at |Q_op|.
13801380

13811381
This option is used together with 'bufhidden' and 'swapfile' to
13821382
specify special kinds of buffers. See |special-buffers|.
1383+
Also see |win_gettype()|, which returns the type of the window.
13831384

13841385
Be careful with changing this option, it can have many side effects!
13851386

runtime/doc/popup.txt

Lines changed: 2 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: 2020 Feb 03
1+
*popup.txt* For Vim version 8.2. Last change: 2020 Feb 05
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -402,6 +402,7 @@ popup_hide({id}) *popup_hide()*
402402
hidden.
403403
If window {id} does not exist nothing happens. If window {id}
404404
exists but is not a popup window an error is given. *E993*
405+
If popup window {id} contains a terminal an error is given.
405406

406407
Can also be used as a |method|: >
407408
GetPopup()->popup_hide()

runtime/doc/starting.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*starting.txt* For Vim version 8.2. Last change: 2020 Jan 20
1+
*starting.txt* For Vim version 8.2. Last change: 2020 Feb 04
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -58,10 +58,12 @@ filename One or more file names. The first one will be the current
5858
that is read from stdin. The commands that would normally be
5959
read from stdin will now be read from stderr. Example: >
6060
find . -name "*.c" -print | vim -
61-
< The buffer will not be marked as modified, so that it's easy
62-
to exit. Be careful to mark it as modified if you don't want
63-
to accidentally lose it. Example: >
64-
ls | view -
61+
62+
< The buffer will be marked as modified, so that you are
63+
reminded to save the text when trying to exit. If you don't
64+
like that, put this these lines in your vimrc: >
65+
" Don't set 'modified' when reading from stdin
66+
au StdinReadPost * set nomodified
6567
<
6668
Starting in Ex mode: >
6769
ex -

runtime/doc/tabpage.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*tabpage.txt* For Vim version 8.2. Last change: 2019 May 05
1+
*tabpage.txt* For Vim version 8.2. Last change: 2020 Feb 06
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -138,7 +138,7 @@ something else.
138138
:+tabclose " close the next tab page
139139
:1tabclose " close the first tab page
140140
:$tabclose " close the last tab page
141-
:tabclose -2 " close the two previous tab page
141+
:tabclose -2 " close the 2nd previous tab page
142142
:tabclose + " close the next tab page
143143
:tabclose 3 " close the third tab page
144144
:tabclose $ " close the last tab page

runtime/doc/tags

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2341,6 +2341,8 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
23412341
:diffupdate diff.txt /*:diffupdate*
23422342
:dig digraph.txt /*:dig*
23432343
:digraphs digraph.txt /*:digraphs*
2344+
:disa vim9.txt /*:disa*
2345+
:disassemble vim9.txt /*:disassemble*
23442346
:display change.txt /*:display*
23452347
:dj tagsrch.txt /*:dj*
23462348
:djump tagsrch.txt /*:djump*
@@ -6108,6 +6110,7 @@ dtd2vim insert.txt /*dtd2vim*
61086110
dying-variable eval.txt /*dying-variable*
61096111
e motion.txt /*e*
61106112
easy starting.txt /*easy*
6113+
echoraw() eval.txt /*echoraw()*
61116114
echospace-variable eval.txt /*echospace-variable*
61126115
edit-a-file editing.txt /*edit-a-file*
61136116
edit-binary editing.txt /*edit-binary*
@@ -8244,6 +8247,7 @@ patches-8.2 version8.txt /*patches-8.2*
82448247
pathshorten() eval.txt /*pathshorten()*
82458248
pattern pattern.txt /*pattern*
82468249
pattern-atoms pattern.txt /*pattern-atoms*
8250+
pattern-delimiter change.txt /*pattern-delimiter*
82478251
pattern-multi-byte pattern.txt /*pattern-multi-byte*
82488252
pattern-multi-items pattern.txt /*pattern-multi-items*
82498253
pattern-overview pattern.txt /*pattern-overview*
@@ -9485,6 +9489,7 @@ test_refcount() testing.txt /*test_refcount()*
94859489
test_scrollbar() testing.txt /*test_scrollbar()*
94869490
test_setmouse() testing.txt /*test_setmouse()*
94879491
test_settime() testing.txt /*test_settime()*
9492+
test_srand_seed() testing.txt /*test_srand_seed()*
94889493
testing testing.txt /*testing*
94899494
testing-support testing.txt /*testing-support*
94909495
testing-variable eval.txt /*testing-variable*
@@ -10050,6 +10055,7 @@ win32s os_win32.txt /*win32s*
1005010055
win_execute() eval.txt /*win_execute()*
1005110056
win_findbuf() eval.txt /*win_findbuf()*
1005210057
win_getid() eval.txt /*win_getid()*
10058+
win_gettype() eval.txt /*win_gettype()*
1005310059
win_gotoid() eval.txt /*win_gotoid()*
1005410060
win_id2tabwin() eval.txt /*win_id2tabwin()*
1005510061
win_id2win() eval.txt /*win_id2win()*

runtime/doc/testing.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*testing.txt* For Vim version 8.2. Last change: 2019 Sep 08
1+
*testing.txt* For Vim version 8.2. Last change: 2020 Feb 08
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar

runtime/doc/todo.txt

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

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -40,15 +40,15 @@ 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?
43+
Avoid modifyOtherKeys temporarily:
44+
call modify_other_keys(v:false) " disable modifyOtherKeys
45+
Should fix #5617.
4446

4547
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?
48+
- "echo Func()" is an error if Func() does not return anything.
5049
- Disallow unlet for local/script/imported vars
5150
- :func inside vim9script must still use a:arg
51+
- Make "++nr" work.
5252
- Check that import in legacy script works and puts item in s:
5353
- Error in any command in "vim9script" aborts sourcing.
5454
- Find a way to test expressions in legacy and Vim9 script without duplication
@@ -58,6 +58,7 @@ Vim9 script:
5858
Test return inside try/finally jumps to finally and then returns.
5959
- call autoload function.
6060
- Type checking arguments when calling :def function
61+
- Implement more expressions, e.g. [a:b]
6162
- can use func as reference:
6263
def SomeFunc() ...
6364
map(list, SomeFunc)
@@ -164,6 +165,10 @@ Patch to move duplicated code to a function. (Yegappan Lakshmanan, #5330)
164165

165166
Patch to use more FOR_ALL_ macros and use them. (Yegappan Lakshmanan, #5339)
166167

168+
Patch to explain use of "%" in :!. (#5591)
169+
170+
Patch to add "-d" to xxd. (#5616)
171+
167172
Running test_gui and test_gui_init with Motif sometimes kills the window
168173
manager. Problem with Motif? Now test_gui crashes in submenu_change().
169174
Athena is OK.
@@ -175,6 +180,8 @@ Flag in 'formatoptions' is not used in the tests.
175180
Patch to add 'vtp' option. (#5344)
176181
Needs better docs. Is there a better name?
177182

183+
Patch for Haiku support. (Emir Sarı, #5605)
184+
178185
undo result wrong: Masato Nishihata, #4798
179186

180187
When 'lazyredraw' is set sometimes the title is not updated.
@@ -186,11 +193,21 @@ Patch to add function to return the text used in the quickfix window.
186193
Patch for Template string: #4491. New pull: #4634
187194
Implementation is too inefficient, avoid using lambda.
188195

196+
Patch to add readdirex() (Ken Takata, #5619)
197+
198+
Request to support <Cmd> in mappings, similar to how Neovim does this.
199+
(Daniel Hahler, #4784)
200+
189201
Undo puts cursor in wrong line after "cG<Esc>" undo.
190202

191203
:unmap <c-n> gives error but does remove the mapping. (Antony Scriven, 2019
192204
Dec 19)
193205

206+
Dos uninstal may delete vim.bat from the wrong directory (e.g., when someone
207+
makes his own wrapper). Add a magic string with the version number to the
208+
.bat file and check for it in the uninstaller. E.g.
209+
# uninstall key: vim8.1*
210+
194211
Patch to fix session file when using multiple tab pages. (Jason Franklin, 2019
195212
May 20)
196213
Also put :argadd commands at the start for all buffers, so that their order
@@ -216,6 +233,11 @@ ex_next() should pass flag to do_argfile(), then to do_ecmd().
216233
Adding "10" to 'spellsuggest' causes spell suggestions to become very slow.
217234
(#4087)
218235

236+
FR: add search_status(), the current values displayed for search (current
237+
match, total matches). (#5631)
238+
Patch to provide search stats in a variable, so that it can be used in the
239+
statusline. (Fujiwara Takuya, #4446)
240+
219241
":helptags ALL" should skip directories where "tags" cannot be written.
220242
(Matěj Cepl, #5026)
221243

@@ -225,8 +247,7 @@ unlisted. (#4478)
225247

226248
Patch to include reduce() function. (#5481)
227249

228-
Patch to provide search stats in a variable, so that it can be used in the
229-
statusline. (Fujiwara Takuya, #4446)
250+
Statusline highlighting error, off by one. (#5599)
230251

231252
Enable 'termbidi' if $VTE_VERSION >= 5703 ?
232253

@@ -1109,11 +1130,9 @@ Make a function to check for function-like type?
11091130
Screen updated delayed when using CTRL-O u in Insert mode.
11101131
(Barlik, #1191) Perhaps because status message?
11111132

1112-
Implement optional arguments for functions.
1133+
Implement named arguments for functions:
11131134
func Foo(start, count = 1 all = 1)
1114-
call Foo(12)
11151135
call Foo(12, all = 0)
1116-
call Foo(12, 15, 0)
11171136

11181137
Add a command to take a range of lines, filter them and put the output
11191138
somewhere else. :{range}copy {dest} !cmd
@@ -2758,11 +2777,6 @@ argument list or opening each file in a separate tab.
27582777
Windows installer: licence text should not use indent, causes bad word wrap.
27592778
(Benjamin Fritz, 2010 Aug 16)
27602779

2761-
Dos uninstal may delete vim.bat from the wrong directory (e.g., when someone
2762-
makes his own wrapper). Add a magic string with the version number to the
2763-
.bat file and check for it in the uninstaller. E.g.
2764-
# uninstall key: vim8.1*
2765-
27662780
Changes for Win32 makefile. (Mike Williams, 2007 Jan 22, Alexei Alexandrov,
27672781
2007 Feb 8)
27682782

@@ -4491,8 +4505,6 @@ Vim script language:
44914505
8 Pass the command line arguments to Vim scripts in some way. As v:args
44924506
List? Or extra parameter to argv()?
44934507
8 Add command arguments with three dashes, passed on to Vim scripts.
4494-
9 Add optional arguments to user functions:
4495-
:func myFunc(arg1, arg2, arg3 = "blah", arg4 = 17)
44964508
6 User functions: Functions local to buffer "b:func()"?
44974509
8 For Strings add ":let var[{expr}] = {expr}". When past the end of "var"
44984510
just ignore.

runtime/doc/vim9.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*vim9.txt* For Vim version 8.2. Last change: 2020 Jan 30
1+
*vim9.txt* For Vim version 8.2. Last change: 2020 Feb 13
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -231,11 +231,8 @@ THIS IS STILL UNDER DEVELOPMENT - ANYTHING CAN BREAK - ANYTHING CAN CHANGE
231231
the function follows in the next lines, until the
232232
matching `:enddef`.
233233

234-
When {return-type} is omitted the return type will be
235-
decided upon by the first encountered `return`
236-
statement in the function. E.g., for: >
237-
return 'message'
238-
< The return type will be "string".
234+
When {return-type} is omitted the function is not
235+
expected to return anything.
239236

240237
{arguments} is a sequence of zero or more argument
241238
declarations. There are three forms:
@@ -257,6 +254,10 @@ THIS IS STILL UNDER DEVELOPMENT - ANYTHING CAN BREAK - ANYTHING CAN CHANGE
257254
:enddef End of a function defined with `:def`.
258255

259256

257+
*:disa* *:disassemble*
258+
:disa[ssemble] {func} Show the instructions generated for {func}.
259+
This is for debugging and testing.
260+
260261
==============================================================================
261262

262263
4. Types *vim9-types*

runtime/filetype.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
22
"
33
" Maintainer: Bram Moolenaar <[email protected]>
4-
" Last Change: 2020 Jan 22
4+
" Last Change: 2020 Jan 31
55

66
" Listen very carefully, I will say this only once
77
if exists("did_load_filetypes")

0 commit comments

Comments
 (0)