Skip to content

Commit 60dc026

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 6a7ac2d + 99c48fe commit 60dc026

79 files changed

Lines changed: 2604 additions & 2622 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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,16 @@ runtime/tutor/tutor.fr @dpelle
309309
runtime/tutor/tutor.fr.utf-8 @dpelle
310310
src/iscygpty.* @k-takata
311311
src/libvterm/ @leonerd
312+
src/po/ca.po @nfdisco
312313
src/po/de.po @chrisbra
313314
src/po/eo.po @dpelle
315+
src/po/es.po @victorhck
316+
src/po/fi.po @flammie
314317
src/po/fr.po @dpelle
315318
src/po/ga.po @kscanne
319+
src/po/it.po @azc100
320+
src/po/ja.po @k-takata
321+
src/po/sr.po @eevan78
322+
src/po/tr.po @bitigchi
323+
src/po/uk.po @sakhnik
316324
src/xxd/ @jnweiger

runtime/doc/autocmd.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim version 8.2. Last change: 2022 Apr 17
1+
*autocmd.txt* For Vim version 8.2. Last change: 2022 May 24
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -50,7 +50,7 @@ effects. Be careful not to destroy your text.
5050
Recommended use:
5151
- Always use a group, so that it's easy to delete the autocommand.
5252
- Keep the command itself short, call a function to do more work.
53-
- Make it so that the script it is defined it can be sourced several times
53+
- Make it so that the script it is defined in can be sourced several times
5454
without the autocommand being repeated.
5555

5656
Example in Vim9 script: >

runtime/doc/builtin.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim version 8.2. Last change: 2022 May 21
1+
*builtin.txt* For Vim version 8.2. Last change: 2022 May 27
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar

runtime/doc/change.txt

Lines changed: 2 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: 2022 May 07
1+
*change.txt* For Vim version 8.2. Last change: 2022 May 26
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1272,7 +1272,7 @@ to their previous contents. When the '>' flag is present in 'cpoptions' then
12721272
a line break is inserted before the appended text.
12731273

12741274
5. Read-only registers ":, ". and "%
1275-
These are '%', '#', ':' and '.'. You can use them only with the "p", "P",
1275+
These are '%', ':' and '.'. You can use them only with the "p", "P",
12761276
and ":put" commands and with CTRL-R.
12771277
*quote_.* *quote.* *E29*
12781278
". Contains the last inserted text (the same as what is inserted

runtime/doc/channel.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -628,15 +628,18 @@ ch_logfile({fname} [, {mode}]) *ch_logfile()*
628628
Start logging channel activity to {fname}.
629629
When {fname} is an empty string: stop logging.
630630

631-
When {mode} is omitted or "a" append to the file.
632-
When {mode} is "w" start with an empty file.
631+
When {mode} is omitted or contains "a" or is "o" then append
632+
to the file.
633+
When {mode} contains "w" and not "a" start with an empty file.
634+
When {mode} contains "o" then log all terminal output.
635+
Otherwise only some interesting terminal output is logged.
633636

634637
Use |ch_log()| to write log messages. The file is flushed
635638
after every message, on Unix you can use "tail -f" to see what
636639
is going on in real time.
637640

638641
To enable the log very early, to see what is received from a
639-
terminal during startup, use |--log|: >
642+
terminal during startup, use |--log| (this uses mode "ao"): >
640643
vim --log logfile
641644
<
642645
This function is not available in the |sandbox|.

runtime/doc/eval.txt

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 8.2. Last change: 2022 May 13
1+
*eval.txt* For Vim version 8.2. Last change: 2022 Jun 03
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -183,10 +183,15 @@ You will not get an error if you try to change the type of a variable.
183183
1.2 Function references ~
184184
*Funcref* *E695* *E718* *E1192*
185185
A Funcref variable is obtained with the |function()| function, the |funcref()|
186-
function or created with the lambda expression |expr-lambda|. It can be used
187-
in an expression in the place of a function name, before the parenthesis
188-
around the arguments, to invoke the function it refers to. Example: >
186+
function, (in |Vim9| script) the name of a function, or created with the
187+
lambda expression |expr-lambda|. It can be used in an expression in the place
188+
of a function name, before the parenthesis around the arguments, to invoke the
189+
function it refers to. Example in |Vim9| script: >
189190
191+
:var Fn = MyFunc
192+
:echo Fn()
193+
194+
Legacy script: >
190195
:let Fn = function("MyFunc")
191196
:echo Fn()
192197
< *E704* *E705* *E707*
@@ -1544,7 +1549,7 @@ to be doubled. These two commands are equivalent: >
15441549
if a =~ '\s*'
15451550
15461551
1547-
interpolated-string *interp-string* *E256*
1552+
interpolated-string *$quote* *interp-string* *E256*
15481553
--------------------
15491554
$"string" interpolated string constant *expr-$quote*
15501555
$'string' interpolated literal string constant *expr-$'*
@@ -3010,7 +3015,7 @@ The file "~/vim/bufnetfuncs.vim" should then define functions that start with
30103015

30113016
Using an autoload script ~
30123017
*autoload* *E746*
3013-
This is introduced in the user manual, section |51.5|.
3018+
This is introduced in the user manual, section |52.2|.
30143019

30153020
Using a script in the "autoload" directory is simpler, but requires using
30163021
exactly the right file name. A function that can be autoloaded has a name

runtime/doc/map.txt

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*map.txt* For Vim version 8.2. Last change: 2022 May 16
1+
*map.txt* For Vim version 8.2. Last change: 2022 Jun 02
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -63,6 +63,7 @@ modes.
6363
allows for nested and recursive use of mappings.
6464
Note: Trailing spaces are included in the {rhs},
6565
because space is a valid Normal mode command.
66+
See |map-trailing-white|.
6667

6768
*:nore* *:norem*
6869
:no[remap] {lhs} {rhs} |mapmode-nvo| *:no* *:noremap* *:nor*
@@ -100,10 +101,8 @@ modes.
100101
for other modes where it applies.
101102
It also works when {lhs} matches the {rhs} of a
102103
mapping. This is for when an abbreviation applied.
103-
Note: Trailing spaces are included in the {lhs}. This
104-
unmap does NOT work: >
105-
:map @@ foo
106-
:unmap @@ | print
104+
Note: Trailing spaces are included in the {lhs}.
105+
See |map-trailing-white|.
107106

108107
:mapc[lear] |mapmode-nvo| *:mapc* *:mapclear*
109108
:nmapc[lear] |mapmode-n| *:nmapc* *:nmapclear*
@@ -168,6 +167,27 @@ that mapping won't get expanded yet, Vim is waiting for another character.
168167
If you type a space, then "foo" will get inserted, plus the space. If you
169168
type "a", then "bar" will get inserted.
170169

170+
Trailing white space ~
171+
*map-trailing-white*
172+
This unmap command does NOT work: >
173+
:map @@ foo
174+
:unmap @@ | print
175+
176+
Because it tries to unmap "@@ ", including the white space before the command
177+
separator "|". Other examples with trailing white space: >
178+
unmap @@
179+
unmap @@ # Vim9 script comment
180+
unmap @@ " legacy comment
181+
182+
An error will be issued, which is very hard to identify, because the ending
183+
whitespace character in `unmap @@ ` is not visible.
184+
185+
A generic solution is to put the command separator "|" right after the mapped
186+
keys. After that white space and a comment may follow: >
187+
188+
unmap @@| # Vim9 scriptcomment
189+
unmap @@| " legacy scriptcomment
190+
171191
172192
1.2 SPECIAL ARGUMENTS *:map-arguments*
173193

runtime/doc/options.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 8.2. Last change: 2022 May 21
1+
*options.txt* For Vim version 8.2. Last change: 2022 Jun 02
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -4359,7 +4359,8 @@ A jump table for the options with a short description can be found at |Q_op|.
43594359
The type of highlighting used can be set with the 'l' occasion in the
43604360
'highlight' option. This uses the "Search" highlight group by
43614361
default. Note that only the matching text is highlighted, any offsets
4362-
are not applied.
4362+
are not applied. If the "CurSearch" highlight group is set then the
4363+
current match is highlighted with that.
43634364
See also: 'incsearch' and |:match|.
43644365
When you get bored looking at the highlighted matches, you can turn it
43654366
off with |:nohlsearch|. This does not change the option value, as
@@ -7756,10 +7757,9 @@ A jump table for the options with a short description can be found at |Q_op|.
77567757

77577758
If the statusline is not updated when you want it (e.g., after setting
77587759
a variable that's used in an expression), you can force an update by
7759-
setting an option without changing its value. Example: >
7760-
:let &ro = &ro
7760+
using `:redrawstatus`.
77617761

7762-
< A result of all digits is regarded a number for display purposes.
7762+
A result of all digits is regarded a number for display purposes.
77637763
Otherwise the result is taken as flag text and applied to the rules
77647764
described above.
77657765

runtime/doc/os_win32.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*os_win32.txt* For Vim version 8.2. Last change: 2022 May 22
1+
*os_win32.txt* For Vim version 8.2. Last change: 2022 May 24
22

33

44
VIM REFERENCE MANUAL by George Reilly
@@ -7,7 +7,7 @@
77
*win32* *Win32* *MS-Windows*
88
This file documents the idiosyncrasies of the Win32 version of Vim.
99

10-
The Win32 version of Vim works on Windows XP, Vista, 7, 8 and 10. There are
10+
The Win32 version of Vim works on Windows XP, Vista, 7, 8, 10 and 11. There are
1111
both console and GUI versions.
1212

1313
The 32 bit version also runs on 64 bit MS-Windows systems.

runtime/doc/popup.txt

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*popup.txt* For Vim version 8.2. Last change: 2022 Apr 04
1+
*popup.txt* For Vim version 8.2. Last change: 2022 May 29
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -147,7 +147,8 @@ A special case is running a terminal in a popup window. Many rules are then
147147
different: *E863*
148148
- The popup window always has focus, it is not possible to switch to another
149149
window.
150-
- When the job ends, the popup window closes.
150+
- When the job ends, the popup window shows the buffer in Terminal-Normal
151+
mode. Use `:q` to close it or use "term_finish" value "close".
151152
- The popup window can be closed with `popup_close()`, the terminal buffer
152153
then becomes hidden.
153154
- It is not possible to open a second popup window with a terminal. *E861*
@@ -998,20 +999,23 @@ To make the four corners transparent:
998999
==============================================================================
9991000
4. Examples *popup-examples*
10001001

1002+
These examplese use |Vim9| script.
1003+
10011004
TODO: more interesting examples
1005+
10021006
*popup_dialog-example*
10031007
Prompt the user to press y/Y or n/N: >
10041008
1005-
func MyDialogHandler(id, result)
1006-
if a:result
1007-
" ... 'y' or 'Y' was pressed
1008-
endif
1009-
endfunc
1010-
1011-
call popup_dialog('Continue? y/n', #{
1012-
\ filter: 'popup_filter_yesno',
1013-
\ callback: 'MyDialogHandler',
1014-
\ })
1009+
popup_dialog('Continue? y/n', {
1010+
filter: 'popup_filter_yesno',
1011+
callback: (id, result) => {
1012+
if result == 1
1013+
echomsg "'y' or 'Y' was pressed"
1014+
else
1015+
echomsg "'y' or 'Y' was NOT pressed"
1016+
endif
1017+
},
1018+
})
10151019
<
10161020
*popup_menu-shortcut-example*
10171021
Extend popup_filter_menu() with shortcut keys: >

0 commit comments

Comments
 (0)