Skip to content

Commit 8b2dcf4

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 6bfafd9 + 2bc152a commit 8b2dcf4

36 files changed

+535
-171
lines changed

READMEdir/README_os390.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
README_zOS.txt for version 8.1 of Vim: Vi IMproved.
1+
README_os390.txt for version 8.1 of Vim: Vi IMproved.
22

33
This readme explains how to build Vim on z/OS. Formerly called OS/390.
44
See "README.txt" for general information about Vim.

runtime/doc/autocmd.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,9 @@ OptionSet After setting an option. The pattern is
864864
plugin. You can always use `:noa` to prevent
865865
triggering this autocommand.
866866

867+
When using |:set| in the autocommand the event
868+
is not triggered again.
869+
867870
*QuickFixCmdPre*
868871
QuickFixCmdPre Before a quickfix command is run (|:make|,
869872
|:lmake|, |:grep|, |:lgrep|, |:grepadd|,

runtime/doc/change.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,7 @@ The flags that you can use for the substitute commands:
708708
search pattern.
709709
{not in Vi: highlighting of the match, other responses than 'y' or 'n'}
710710

711+
*:s_e*
711712
[e] When the search pattern fails, do not issue an error message and, in
712713
particular, continue in maps as if no error occurred. This is most
713714
useful to prevent the "No match" error from breaking a mapping. Vim
@@ -719,33 +720,38 @@ The flags that you can use for the substitute commands:
719720
Interrupted
720721
{not in Vi}
721722

723+
*:s_g*
722724
[g] Replace all occurrences in the line. Without this argument,
723725
replacement occurs only for the first occurrence in each line. If
724726
the 'edcompatible' option is on, Vim remembers this flag and toggles
725727
it each time you use it, but resets it when you give a new search
726728
pattern. If the 'gdefault' option is on, this flag is on by default
727729
and the [g] argument switches it off.
728730

731+
*:s_i*
729732
[i] Ignore case for the pattern. The 'ignorecase' and 'smartcase' options
730733
are not used.
731734
{not in Vi}
732735

736+
*:s_I*
733737
[I] Don't ignore case for the pattern. The 'ignorecase' and 'smartcase'
734738
options are not used.
735739
{not in Vi}
736740

741+
*:s_n*
737742
[n] Report the number of matches, do not actually substitute. The [c]
738743
flag is ignored. The matches are reported as if 'report' is zero.
739744
Useful to |count-items|.
740745
If \= |sub-replace-expression| is used, the expression will be
741746
evaluated in the |sandbox| at every match.
742747

743-
[p] Print the line containing the last substitute.
748+
[p] Print the line containing the last substitute. *:s_p*
744749

745-
[#] Like [p] and prepend the line number.
750+
[#] Like [p] and prepend the line number. *:s_#*
746751

747-
[l] Like [p] but print the text like |:list|.
752+
[l] Like [p] but print the text like |:list|. *:s_l*
748753

754+
*:s_r*
749755
[r] Only useful in combination with `:&` or `:s` without arguments. `:&r`
750756
works the same way as `:~`: When the search pattern is empty, use the
751757
previously used search pattern instead of the search pattern from the

runtime/doc/eval.txt

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2022,8 +2022,10 @@ abs({expr}) Float or Number absolute value of {expr}
20222022
acos({expr}) Float arc cosine of {expr}
20232023
add({list}, {item}) List append {item} to |List| {list}
20242024
and({expr}, {expr}) Number bitwise AND
2025-
append({lnum}, {string}) Number append {string} below line {lnum}
2026-
append({lnum}, {list}) Number append lines {list} below line {lnum}
2025+
append({lnum}, {text}) Number append {text} below line {lnum}
2026+
appendbufline({expr}, {lnum}, {text})
2027+
Number append {text} below line {lnum}
2028+
in buffer {expr}
20272029
argc() Number number of files in the argument list
20282030
argidx() Number current index in the argument list
20292031
arglistid([{winnr} [, {tabnr}]]) Number argument list id
@@ -2108,8 +2110,8 @@ confirm({msg} [, {choices} [, {default} [, {type}]]])
21082110
copy({expr}) any make a shallow copy of {expr}
21092111
cos({expr}) Float cosine of {expr}
21102112
cosh({expr}) Float hyperbolic cosine of {expr}
2111-
count({list}, {expr} [, {ic} [, {start}]])
2112-
Number count how many {expr} are in {list}
2113+
count({comp}, {expr} [, {ic} [, {start}]])
2114+
Number count how many {expr} are in {comp}
21132115
cscope_connection([{num}, {dbpath} [, {prepend}]])
21142116
Number checks existence of cscope connection
21152117
cursor({lnum}, {col} [, {off}])
@@ -2331,7 +2333,6 @@ remote_read({serverid} [, {timeout}])
23312333
remote_send({server}, {string} [, {idvar}])
23322334
String send key sequence
23332335
remote_startserver({name}) none become server {name}
2334-
String send key sequence
23352336
remove({list}, {idx} [, {end}]) any remove items {idx}-{end} from {list}
23362337
remove({dict}, {key}) any remove entry {key} from {dict}
23372338
rename({from}, {to}) Number rename (move) file from {from} to {to}
@@ -2356,8 +2357,8 @@ searchpos({pattern} [, {flags} [, {stopline} [, {timeout}]]])
23562357
server2client({clientid}, {string})
23572358
Number send reply string
23582359
serverlist() String get a list of available servers
2359-
setbufline({expr}, {lnum}, {line})
2360-
Number set line {lnum} to {line} in buffer
2360+
setbufline({expr}, {lnum}, {text})
2361+
Number set line {lnum} to {text} in buffer
23612362
{expr}
23622363
setbufvar({expr}, {varname}, {val})
23632364
none set {varname} in buffer {expr} to {val}
@@ -2465,7 +2466,7 @@ term_wait({buf} [, {time}]) Number wait for screen to be updated
24652466
test_alloc_fail({id}, {countdown}, {repeat})
24662467
none make memory allocation fail
24672468
test_autochdir() none enable 'autochdir' during startup
2468-
test_feedinput() none add key sequence to input buffer
2469+
test_feedinput({string}) none add key sequence to input buffer
24692470
test_garbagecollect_now() none free memory right now for testing
24702471
test_ignore_error({expr}) none ignore a specific error
24712472
test_null_channel() Channel null value for testing
@@ -2567,10 +2568,10 @@ and({expr}, {expr}) *and()*
25672568
:let flag = and(bits, 0x80)
25682569
25692570
2570-
append({lnum}, {expr}) *append()*
2571-
When {expr} is a |List|: Append each item of the |List| as a
2571+
append({lnum}, {text}) *append()*
2572+
When {text} is a |List|: Append each item of the |List| as a
25722573
text line below line {lnum} in the current buffer.
2573-
Otherwise append {expr} as one text line below line {lnum} in
2574+
Otherwise append {text} as one text line below line {lnum} in
25742575
the current buffer.
25752576
{lnum} can be zero to insert a line before the first one.
25762577
Returns 1 for failure ({lnum} out of range or out of memory),
@@ -2800,15 +2801,15 @@ balloon_show({expr}) *balloon_show()*
28002801

28012802
When showing a balloon is not possible nothing happens, no
28022803
error message.
2803-
{only available when compiled with the +balloon_eval or
2804-
+balloon_eval_term feature}
2804+
{only available when compiled with the |+balloon_eval| or
2805+
|+balloon_eval_term| feature}
28052806

28062807
balloon_split({msg}) *balloon_split()*
28072808
Split {msg} into lines to be displayed in a balloon. The
28082809
splits are made for the current window size and optimize to
28092810
show debugger output.
28102811
Returns a |List| with the split lines.
2811-
{only available when compiled with the +balloon_eval_term
2812+
{only available when compiled with the |+balloon_eval_term|
28122813
feature}
28132814

28142815
*browse()*
@@ -3549,7 +3550,7 @@ deletebufline({expr}, {first} [, {last}]) *deletebufline()*
35493550

35503551
For the use of {expr}, see |bufname()| above.
35513552

3552-
{first} and {last} are used like with |setline()|. Note that
3553+
{first} and {last} are used like with |getline()|. Note that
35533554
when using |line()| this refers to the current buffer. Use "$"
35543555
to refer to the last line in buffer {expr}.
35553556

@@ -4504,6 +4505,8 @@ getcmdline() *getcmdline()*
45044505
Example: >
45054506
:cmap <F7> <C-\>eescape(getcmdline(), ' \')<CR>
45064507
< Also see |getcmdtype()|, |getcmdpos()| and |setcmdpos()|.
4508+
Returns an empty string when entering a password or using
4509+
|inputsecret()|.
45074510

45084511
getcmdpos() *getcmdpos()*
45094512
Return the position of the cursor in the command line as a
@@ -8027,11 +8030,11 @@ substitute({expr}, {pat}, {sub}, {flags}) *substitute()*
80278030
swapinfo({fname}) *swapinfo()*
80288031
The result is a dictionary, which holds information about the
80298032
swapfile {fname}. The available fields are:
8030-
version VIM version
8033+
version Vim version
80318034
user user name
80328035
host host name
80338036
fname original file name
8034-
pid PID of the VIM process that created the swap
8037+
pid PID of the Vim process that created the swap
80358038
file
80368039
mtime last modification time in seconds
80378040
inode Optional: INODE number of the file
@@ -8131,7 +8134,7 @@ synconcealed({lnum}, {col}) *synconcealed()*
81318134
concealable region if there are two consecutive regions
81328135
with the same replacement character. For an example, if
81338136
the text is "123456" and both "23" and "45" are concealed
8134-
and replace by the character "X", then:
8137+
and replaced by the character "X", then:
81358138
call returns ~
81368139
synconcealed(lnum, 1) [0, '', 0]
81378140
synconcealed(lnum, 2) [1, 'X', 1]
@@ -8359,7 +8362,7 @@ term_dumpdiff({filename}, {filename} [, {options}])
83598362
The top part of the buffer contains the contents of the first
83608363
file, the bottom part of the buffer contains the contents of
83618364
the second file. The middle part shows the differences.
8362-
The parts are separated by a line of dashes.
8365+
The parts are separated by a line of equals.
83638366

83648367
If the {options} argument is present, it must be a Dict with
83658368
these possible members:
@@ -8452,8 +8455,8 @@ term_getcursor({buf}) *term_getcursor()*
84528455
"dict" can have these members:
84538456
"visible" one when the cursor is visible, zero when it
84548457
is hidden.
8455-
"blink" one when the cursor is visible, zero when it
8456-
is hidden.
8458+
"blink" one when the cursor is blinking, zero when it
8459+
is not blinking.
84578460
"shape" 1 for a block cursor, 2 for underline and 3
84588461
for a vertical bar.
84598462

@@ -8485,7 +8488,7 @@ term_getscrolled({buf}) *term_getscrolled()*
84858488
used for |term_getline()| and |getline()|, so that: >
84868489
term_getline(buf, N)
84878490
< is equal to: >
8488-
`getline(N + term_getscrolled(buf))
8491+
getline(N + term_getscrolled(buf))
84898492
< (if that line exists).
84908493

84918494
{buf} is used as with |term_getsize()|.

runtime/doc/if_pyth.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ Example: >
6060
endfunction
6161
6262
To see what version of Python you have: >
63-
:python import sys
6463
:python print(sys.version)
6564
65+
There is no need to import sys, it's done by default.
66+
6667
Note: Python is very sensitive to the indenting. Make sure the "class" line
6768
and "EOF" do not have any indent.
6869

@@ -110,7 +111,6 @@ Python commands cannot be used in the |sandbox|.
110111

111112
To pass arguments you need to set sys.argv[] explicitly. Example: >
112113
113-
:python import sys
114114
:python sys.argv = ["foo", "bar"]
115115
:pyfile myscript.py
116116

runtime/doc/map.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,9 @@ job running in the terminal. See |terminal-typing|.
371371

372372
*omap-info*
373373
Operator-pending mappings can be used to define a movement command that can be
374-
used with any operator. Simple example: ":omap { w" makes "y{" work like "yw"
375-
and "d{" like "dw".
374+
used with any operator. Simple example: >
375+
:omap { w
376+
makes "y{" work like "yw" and "d{" like "dw".
376377

377378
To ignore the starting cursor position and select different text, you can have
378379
the omap start Visual mode to select the text to be operated upon. Example
@@ -383,9 +384,11 @@ Normal mode commands find the first '(' character and select the first word
383384
before it. That usually is the function name.
384385

385386
To enter a mapping for Normal and Visual mode, but not Operator-pending mode,
386-
first define it for all three modes, then unmap it for Operator-pending mode:
387+
first define it for all three modes, then unmap it for
388+
Operator-pending mode: >
387389
:map xx something-difficult
388390
:ounmap xx
391+
389392
Likewise for a mapping for Visual and Operator-pending mode or Normal and
390393
Operator-pending mode.
391394

runtime/doc/options.txt

Lines changed: 35 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ and the following arguments will be ignored.
120120
When 'verbose' is non-zero, displaying an option value will also tell where it
121121
was last set. Example: >
122122
:verbose set shiftwidth cindent?
123-
< shiftwidth=4 ~
124-
Last set from modeline ~
125-
cindent ~
126-
Last set from /usr/local/share/vim/vim60/ftplugin/c.vim ~
123+
< shiftwidth=4 ~
124+
Last set from modeline line 1 ~
125+
cindent ~
126+
Last set from /usr/local/share/vim/vim60/ftplugin/c.vim line 30 ~
127127
This is only done when specific option values are requested, not for ":verbose
128128
set all" or ":verbose set" without an argument.
129129
When the option was set by hand there is no "Last set" message.
@@ -132,7 +132,7 @@ autocommand, the script in which it was defined is reported.
132132
Note that an option may also have been set as a side effect of setting
133133
'compatible'.
134134
A few special texts:
135-
Last set from modeline ~
135+
Last set from modeline line 1 ~
136136
Option was set in a |modeline|.
137137
Last set from --cmd argument ~
138138
Option was set with command line argument |--cmd| or +.
@@ -2022,8 +2022,8 @@ A jump table for the options with a short description can be found at |Q_op|.
20222022
displayed. E.g., when moving vertically it may change column.
20232023

20242024

2025-
'conceallevel' 'cole' *'conceallevel'* *'cole'*
2026-
number (default 0)
2025+
*'conceallevel'* *'cole'*
2026+
'conceallevel' 'cole' number (default 0)
20272027
local to window
20282028
{not in Vi}
20292029
{not available when compiled without the |+conceal|
@@ -2657,6 +2657,15 @@ A jump table for the options with a short description can be found at |Q_op|.
26572657
When omitted a context of six lines is used.
26582658
See |fold-diff|.
26592659

2660+
iblank Ignore changes where lines are all blank. Adds
2661+
the "-B" flag to the "diff" command if
2662+
'diffexpr' is empty. Check the documentation
2663+
of the "diff" command for what this does
2664+
exactly.
2665+
NOTE: the diff windows will get out of sync,
2666+
because no differences between blank lines are
2667+
taken into account.
2668+
26602669
icase Ignore changes in case of text. "a" and "A"
26612670
are considered the same. Adds the "-i" flag
26622671
to the "diff" command if 'diffexpr' is empty.
@@ -2668,6 +2677,18 @@ A jump table for the options with a short description can be found at |Q_op|.
26682677
exactly. It should ignore adding trailing
26692678
white space, but not leading white space.
26702679

2680+
iwhiteall Ignore all white space changes. Adds
2681+
the "-w" flag to the "diff" command if
2682+
'diffexpr' is empty. Check the documentation
2683+
of the "diff" command for what this does
2684+
exactly.
2685+
2686+
iwhiteeol Ignore white space changes at end of line.
2687+
Adds the "-Z" flag to the "diff" command if
2688+
'diffexpr' is empty. Check the documentation
2689+
of the "diff" command for what this does
2690+
exactly.
2691+
26712692
horizontal Start diff mode with horizontal splits (unless
26722693
explicitly specified otherwise).
26732694

@@ -4821,7 +4842,7 @@ A jump table for the options with a short description can be found at |Q_op|.
48214842
Identifiers are used in recognizing environment variables and after a
48224843
match of the 'define' option. It is also used for "\i" in a
48234844
|pattern|. See 'isfname' for a description of the format of this
4824-
option.
4845+
option. For '@' only characters up to 255 are used.
48254846
Careful: If you change this option, it might break expanding
48264847
environment variables. E.g., when '/' is included and Vim tries to
48274848
expand "$HOME/.viminfo". Maybe you should change 'iskeyword' instead.
@@ -4835,8 +4856,9 @@ A jump table for the options with a short description can be found at |Q_op|.
48354856
{not in Vi}
48364857
Keywords are used in searching and recognizing with many commands:
48374858
"w", "*", "[i", etc. It is also used for "\k" in a |pattern|. See
4838-
'isfname' for a description of the format of this option. For C
4839-
programs you could use "a-z,A-Z,48-57,_,.,-,>".
4859+
'isfname' for a description of the format of this option. For '@'
4860+
characters above 255 check the "word" character class.
4861+
For C programs you could use "a-z,A-Z,48-57,_,.,-,>".
48404862
For a help file it is set to all non-blank printable characters except
48414863
'*', '"' and '|' (so that CTRL-] on a command finds the help for that
48424864
command).
@@ -5585,7 +5607,7 @@ A jump table for the options with a short description can be found at |Q_op|.
55855607
h all previous modes when editing a help file
55865608
a all previous modes
55875609
r for |hit-enter| and |more-prompt| prompt
5588-
Normally you would enable the mouse in all four modes with: >
5610+
Normally you would enable the mouse in all five modes with: >
55895611
:set mouse=a
55905612
< When the mouse is not enabled, the GUI will still use the mouse for
55915613
modeless selection. This doesn't move the text cursor.
@@ -6107,7 +6129,7 @@ A jump table for the options with a short description can be found at |Q_op|.
61076129
security reasons.
61086130

61096131
*'printencoding'* *'penc'*
6110-
'printencoding' 'penc' String (default empty, except for some systems)
6132+
'printencoding' 'penc' string (default empty, except for some systems)
61116133
global
61126134
{not in Vi}
61136135
{only available when compiled with the |+printer|
@@ -6116,7 +6138,7 @@ A jump table for the options with a short description can be found at |Q_op|.
61166138
See |penc-option|.
61176139

61186140
*'printexpr'* *'pexpr'*
6119-
'printexpr' 'pexpr' String (default: see below)
6141+
'printexpr' 'pexpr' string (default: see below)
61206142
global
61216143
{not in Vi}
61226144
{only available when compiled with the |+printer|

runtime/doc/quickfix.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1551,7 +1551,7 @@ The backslashes before the pipe character are required to avoid it to be
15511551
recognized as a command separator. The backslash before each space is
15521552
required for the set command.
15531553

1554-
*cfilter-plugin*
1554+
*cfilter-plugin* *Cfilter* *Lfilter*
15551555
If you have too many matching messages, you can use the cfilter plugin to
15561556
reduce the number of entries. Load the plugin with: >
15571557
packadd cfilter

0 commit comments

Comments
 (0)