Skip to content

Commit 5d9c7eb

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents dae7a89 + def7b1d commit 5d9c7eb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+981
-503
lines changed

runtime/doc/autocmd.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ DirChanged The working directory has changed in response
661661
to the |:cd| or |:lcd| commands, or as a
662662
result of the 'autochdir' option.
663663
The pattern can be:
664-
"window" to trigger on `:lcd
664+
"window" to trigger on `:lcd`
665665
"global" to trigger on `:cd`
666666
"auto" to trigger on 'autochdir'.
667667
"drop" to trigger on editing a file

runtime/doc/change.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,7 @@ to the name of an external program for Vim to use for text formatting. The
14471447
program.
14481448

14491449
*format-formatexpr*
1450-
The 'formatexpr' option can be set to a Vim Script function that performs
1450+
The 'formatexpr' option can be set to a Vim script function that performs
14511451
reformatting of the buffer. This should usually happen in an |ftplugin|,
14521452
since formatting is highly dependent on the type of file. It makes
14531453
sense to use an |autoload| script, so the corresponding script is only loaded
@@ -1481,7 +1481,7 @@ text. Put it in your autoload directory, e.g. ~/.vim/autoload/format.vim: >
14811481
14821482
You can then enable the formatting by executing: >
14831483
setlocal formatexpr=format#Format()
1484-
>
1484+
14851485
Note: this function explicitly returns non-zero when called from insert mode
14861486
(which basically means, text is inserted beyond the 'textwidth' limit). This
14871487
causes Vim to fall back to reformat the text by using the internal formatter.

runtime/doc/diff.txt

+4
Original file line numberDiff line numberDiff line change
@@ -384,12 +384,16 @@ Example (this does almost the same as 'diffexpr' being empty): >
384384
endif
385385
silent execute "!diff -a --binary " . opt . v:fname_in . " " . v:fname_new .
386386
\ " > " . v:fname_out
387+
redraw!
387388
endfunction
388389
389390
The "-a" argument is used to force comparing the files as text, comparing as
390391
binaries isn't useful. The "--binary" argument makes the files read in binary
391392
mode, so that a CTRL-Z doesn't end the text on DOS.
392393

394+
The `redraw!` command may not be needed, depending on whether executing a
395+
shell command shows something on the display or not.
396+
393397
*E810* *E97*
394398
Vim will do a test if the diff output looks alright. If it doesn't, you will
395399
get an error message. Possible causes:

runtime/doc/eval.txt

+7-8
Original file line numberDiff line numberDiff line change
@@ -2111,7 +2111,7 @@ cursor({list}) Number move cursor to position in {list}
21112111
debugbreak({pid}) Number interrupt process being debugged
21122112
deepcopy({expr} [, {noref}]) any make a full copy of {expr}
21132113
delete({fname} [, {flags}]) Number delete the file or directory {fname}
2114-
deletebufline({expr}, {first}[, {last}])
2114+
deletebufline({expr}, {first} [, {last}])
21152115
Number delete lines from buffer {expr}
21162116
did_filetype() Number |TRUE| if FileType autocmd event used
21172117
diff_filler({lnum}) Number diff filler lines about {lnum}
@@ -2477,7 +2477,7 @@ tolower({expr}) String the String {expr} switched to lowercase
24772477
toupper({expr}) String the String {expr} switched to uppercase
24782478
tr({src}, {fromstr}, {tostr}) String translate chars of {src} in {fromstr}
24792479
to chars in {tostr}
2480-
trim({text}[, {mask}]) String trim characters in {mask} from {text}
2480+
trim({text} [, {mask}]) String trim characters in {mask} from {text}
24812481
trunc({expr}) Float truncate Float {expr}
24822482
type({name}) Number type of variable {name}
24832483
undofile({name}) String undo file name for {name}
@@ -3529,7 +3529,7 @@ delete({fname} [, {flags}]) *delete()*
35293529
To delete a line from the buffer use |:delete| or
35303530
|deletebufline()|.
35313531

3532-
deletebufline({expr}, {first}[, {last}]) *deletebufline()*
3532+
deletebufline({expr}, {first} [, {last}]) *deletebufline()*
35333533
Delete lines {first} to {last} (inclusive) from buffer {expr}.
35343534
If {last} is omitted then delete line {first} only.
35353535
On success 0 is returned, on failure 1 is returned.
@@ -4307,7 +4307,7 @@ getbufinfo([{dict}])
43074307
endfor
43084308
<
43094309
To get buffer-local options use: >
4310-
getbufvar({bufnr}, '&')
4310+
getbufvar({bufnr}, '&option_name')
43114311
43124312
<
43134313
*getbufline()*
@@ -8591,9 +8591,8 @@ term_start({cmd}, {options}) *term_start()*
85918591
|job-options|. However, not all options can be used. These
85928592
are supported:
85938593
all timeout options
8594-
"stoponexit"
8595-
"callback", "out_cb", "err_cb"
8596-
"exit_cb", "close_cb"
8594+
"stoponexit", "cwd", "env"
8595+
"callback", "out_cb", "err_cb", "exit_cb", "close_cb"
85978596
"in_io", "in_top", "in_bot", "in_name", "in_buf"
85988597
"out_io", "out_name", "out_buf", "out_modifiable", "out_msg"
85998598
"err_io", "err_name", "err_buf", "err_modifiable", "err_msg"
@@ -8837,7 +8836,7 @@ tr({src}, {fromstr}, {tostr}) *tr()*
88378836
echo tr("<blob>", "<>", "{}")
88388837
< returns "{blob}"
88398838

8840-
trim({text}[, {mask}]) *trim()*
8839+
trim({text} [, {mask}]) *trim()*
88418840
Return {text} as a String where any character in {mask} is
88428841
removed from the beginning and end of {text}.
88438842
If {mask} is not given, {mask} is all characters up to 0x20,

runtime/doc/ft_rust.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,4 +236,4 @@ It also has a few other mappings:
236236
Note: This binding is only available in MacVim.
237237

238238
==============================================================================
239-
vim:tw=78:sw=4:noet:ts=8:ft=help:norl:
239+
vim:tw=78:sw=4:ts=8:noet:ft=help:norl:

runtime/doc/intro.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -595,9 +595,9 @@ Virtual Replace mode Virtual Replace mode is similar to Replace mode, but
595595
If the 'showmode' option is on "-- VREPLACE --" is
596596
shown at the bottom of the window.
597597

598-
Insert Normal mode Entered when CTRL-O given in Insert mode. This is
599-
like Normal mode, but after executing one command Vim
600-
returns to Insert mode.
598+
Insert Normal mode Entered when CTRL-O is typed in Insert mode (see
599+
|i_CTRL-O|). This is like Normal mode, but after
600+
executing one command Vim returns to Insert mode.
601601
If the 'showmode' option is on "-- (insert) --" is
602602
shown at the bottom of the window.
603603

runtime/doc/options.txt

+9-7
Original file line numberDiff line numberDiff line change
@@ -4496,7 +4496,7 @@ A jump table for the options with a short description can be found at |Q_op|.
44964496
methods. Use 'imdisable' to disable XIM then.
44974497

44984498
You can set 'imactivatefunc' and 'imstatusfunc' to handle IME/XIM
4499-
via external command if vim is not compiled with the |+xim|,
4499+
via external command if Vim is not compiled with the |+xim|,
45004500
|+multi_byte_ime| or |global-ime|.
45014501

45024502
*'imsearch'* *'ims'*
@@ -4603,6 +4603,7 @@ A jump table for the options with a short description can be found at |Q_op|.
46034603
so far, matches. The matched string is highlighted. If the pattern
46044604
is invalid or not found, nothing is shown. The screen will be updated
46054605
often, this is only useful on fast terminals.
4606+
Also applies to the `:s`, `:g` and `:v` commands.
46064607
Note that the match will be shown, but the cursor will return to its
46074608
original position when no match is found and when pressing <Esc>. You
46084609
still need to finish the search command with <Enter> to move the
@@ -4616,9 +4617,9 @@ A jump table for the options with a short description can be found at |Q_op|.
46164617
The highlighting can be set with the 'i' flag in 'highlight'.
46174618
When 'hlsearch' is on, all matched strings are highlighted too while
46184619
typing a search command. See also: 'hlsearch'.
4619-
If you don't want turn 'hlsearch' on, but want to highlight all matches
4620-
while searching, you can turn on and off 'hlsearch' with autocmd.
4621-
Example: >
4620+
If you don't want to turn 'hlsearch' on, but want to highlight all
4621+
matches while searching, you can turn on and off 'hlsearch' with
4622+
autocmd. Example: >
46224623
augroup vimrc-incsearch-highlight
46234624
autocmd!
46244625
autocmd CmdlineEnter /,\? :set hlsearch
@@ -6811,7 +6812,8 @@ A jump table for the options with a short description can be found at |Q_op|.
68116812
tabpages all tab pages; without this only the current tab page
68126813
is restored, so that you can make a session for each
68136814
tab page separately
6814-
terminal include terminal windows where the command can be restored
6815+
terminal include terminal windows where the command can be
6816+
restored
68156817
unix with Unix end-of-line format (single <NL>), even when
68166818
on Windows or DOS
68176819
winpos position of the whole Vim window
@@ -6847,7 +6849,7 @@ A jump table for the options with a short description can be found at |Q_op|.
68476849
Example with escaped space (Vim will do this when initializing the
68486850
option from $SHELL): >
68496851
:set shell=/bin/with\\\ space/sh
6850-
< The resulting value of 'shell' is "/bin/with\ space/sh", two
6852+
< The resulting value of 'shell' is "/bin/with\ space/sh", two
68516853
backslashes are consumed by `:set`.
68526854

68536855
Under MS-Windows, when the executable ends in ".com" it must be
@@ -7673,7 +7675,7 @@ A jump table for the options with a short description can be found at |Q_op|.
76737675
line is displayed. The current buffer and current window will be set
76747676
temporarily to that of the window (and buffer) whose statusline is
76757677
currently being drawn. The expression will evaluate in this context.
7676-
The variable "actual_curbuf" is set to the 'bufnr()' number of the
7678+
The variable "g:actual_curbuf" is set to the `bufnr()` number of the
76777679
real current buffer.
76787680

76797681
The 'statusline' option will be evaluated in the |sandbox| if set from

runtime/doc/os_qnx.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,4 @@ Todo:
135135
- Replace usage of fork() with spawn() when launching external
136136
programs.
137137

138-
vim:tw=78:sw=4:ts=8:noet:ts=8:ft=help:norl:
138+
vim:tw=78:sw=4:ts=8:noet:ft=help:norl:

runtime/doc/print.txt

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ Note: If you have problems printing with |:hardcopy|, an alternative is to use
4646
'printexpr' through |v:cmdarg|. Otherwise [arguments]
4747
is ignored. 'printoptions' can be used to specify
4848
paper size, duplex, etc.
49+
Note: If you want PDF, there are tools such as
50+
"ps2pdf" that can convert the PostScript to PDF.
4951

5052
:[range]ha[rdcopy][!] >{filename}
5153
As above, but write the resulting PostScript in file

runtime/doc/quickfix.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ compiler (see |errorformat| below).
4646

4747
*quickfix-ID*
4848
Each quickfix list has a unique identifier called the quickfix ID and this
49-
number will not change within a Vim session. The getqflist() function can be
49+
number will not change within a Vim session. The |getqflist()| function can be
5050
used to get the identifier assigned to a list. There is also a quickfix list
5151
number which may change whenever more than ten lists are added to a quickfix
5252
stack.
@@ -68,7 +68,7 @@ the location list is destroyed.
6868
Every quickfix and location list has a read-only changedtick variable that
6969
tracks the total number of changes made to the list. Every time the quickfix
7070
list is modified, this count is incremented. This can be used to perform an
71-
action only when the list has changed. The getqflist() and getloclist()
71+
action only when the list has changed. The |getqflist()| and |getloclist()|
7272
functions can be used to query the current value of changedtick. You cannot
7373
change the changedtick variable.
7474

@@ -602,7 +602,7 @@ present). Examples: >
602602
echo getloclist(2, {'winid' : 1}).winid
603603
<
604604
*getqflist-examples*
605-
The getqflist() and getloclist() functions can be used to get the various
605+
The |getqflist()| and |getloclist()| functions can be used to get the various
606606
attributes of a quickfix and location list respectively. Some examples for
607607
using these functions are below:
608608
>
@@ -659,7 +659,7 @@ using these functions are below:
659659
:echo getloclist(3, {'winid' : 0}).winid
660660
<
661661
*setqflist-examples*
662-
The setqflist() and setloclist() functions can be used to set the various
662+
The |setqflist()| and |setloclist()| functions can be used to set the various
663663
attributes of a quickfix and location list respectively. Some examples for
664664
using these functions are below:
665665
>

runtime/doc/starting.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,8 @@ a slash. Thus "-R" means recovery and "-/R" readonly.
487487

488488
When {vimrc} is equal to "DEFAULTS" (all uppercase), this has
489489
the same effect as "NONE", but the |defaults.vim| script is
490-
loaded, which will also set 'nocompatible'.
490+
loaded, which will also set 'nocompatible'. Also see
491+
|--clean|.
491492

492493
Using the "-u" argument with another argument than DEFAULTS
493494
has the side effect that the 'compatible' option will be on by
@@ -520,7 +521,7 @@ a slash. Thus "-R" means recovery and "-/R" readonly.
520521
'nocompatible': use Vim defaults
521522
- no |gvimrc| script is loaded
522523
- no viminfo file is read or written
523-
- the home directory is excluded from 'runtimepath'
524+
524525
*-x*
525526
-x Use encryption to read/write files. Will prompt for a key,
526527
which is then stored in the 'key' option. All writes will

runtime/doc/tabpage.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,10 @@ REORDERING TAB PAGES:
241241
:tabm[ove] [N] *:tabm* *:tabmove*
242242
:[N]tabm[ove]
243243
Move the current tab page to after tab page N. Use zero to
244-
make the current tab page the first one. Without N the tab
245-
page is made the last one. >
244+
make the current tab page the first one. N is counted before
245+
the move, thus if the second tab is the current one,
246+
`:tabmove 1`` and `:tabmove 2` have no effect.
247+
Without N the tab page is made the last one. >
246248
:.tabmove " do nothing
247249
:-tabmove " move the tab page to the left
248250
:+tabmove " move the tab page to the right

runtime/doc/tags

+8
Original file line numberDiff line numberDiff line change
@@ -1009,13 +1009,17 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
10091009
't_RF' term.txt /*'t_RF'*
10101010
't_RI' term.txt /*'t_RI'*
10111011
't_RS' term.txt /*'t_RS'*
1012+
't_RT' term.txt /*'t_RT'*
10121013
't_RV' term.txt /*'t_RV'*
1014+
't_Ri' term.txt /*'t_Ri'*
10131015
't_SC' term.txt /*'t_SC'*
10141016
't_SH' term.txt /*'t_SH'*
10151017
't_SI' term.txt /*'t_SI'*
10161018
't_SR' term.txt /*'t_SR'*
1019+
't_ST' term.txt /*'t_ST'*
10171020
't_Sb' term.txt /*'t_Sb'*
10181021
't_Sf' term.txt /*'t_Sf'*
1022+
't_Si' term.txt /*'t_Si'*
10191023
't_Te' term.txt /*'t_Te'*
10201024
't_Ts' term.txt /*'t_Ts'*
10211025
't_VS' term.txt /*'t_VS'*
@@ -8844,13 +8848,17 @@ t_RC term.txt /*t_RC*
88448848
t_RF term.txt /*t_RF*
88458849
t_RI term.txt /*t_RI*
88468850
t_RS term.txt /*t_RS*
8851+
t_RT term.txt /*t_RT*
88478852
t_RV term.txt /*t_RV*
8853+
t_Ri term.txt /*t_Ri*
88488854
t_SC term.txt /*t_SC*
88498855
t_SH term.txt /*t_SH*
88508856
t_SI term.txt /*t_SI*
88518857
t_SR term.txt /*t_SR*
8858+
t_ST term.txt /*t_ST*
88528859
t_Sb term.txt /*t_Sb*
88538860
t_Sf term.txt /*t_Sf*
8861+
t_Si term.txt /*t_Si*
88548862
t_Te term.txt /*t_Te*
88558863
t_Ts term.txt /*t_Ts*
88568864
t_VS term.txt /*t_VS*

runtime/doc/terminal.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ Starting ~
635635
Load the plugin with this command: >
636636
packadd termdebug
637637
< *:Termdebug*
638-
To start debugging use `:Termdebug` or `:TermdebugCommand`` followed by the
638+
To start debugging use `:Termdebug` or `:TermdebugCommand` followed by the
639639
command name, for example: >
640640
:Termdebug vim
641641

0 commit comments

Comments
 (0)