Skip to content

Commit 21f99c1

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents ed3fd67 + 39902a0 commit 21f99c1

83 files changed

Lines changed: 1048 additions & 504 deletions

Some content is hidden

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

runtime/colors/tools/check_colors.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func! Test_check_colors()
9090
let err['background'] = 'Should not issue :syn on'
9191
endif
9292

93-
" 7) Does not define filetype specfic groups like vimCommand, htmlTag,
93+
" 7) Does not define filetype specific groups like vimCommand, htmlTag,
9494
let hi_groups = ['vim', 'html', 'python', 'sh', 'ruby']
9595
for group in hi_groups
9696
let pat='\Chi\%[ghlight]\s*\zs'.group.'\w\+\>'

runtime/doc/autocmd.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,10 @@ DirChanged The working directory has changed in response
670670
ExitPre When using `:quit`, `:wq` in a way it makes
671671
Vim exit, or using `:qall`, just after
672672
|QuitPre|. Can be used to close any
673-
non-essential window.
673+
non-essential window. Exiting may still be
674+
cancelled if there is a modified buffer that
675+
isn't automatically saved, use |VimLeavePre|
676+
for really exiting.
674677
*FileChangedShell*
675678
FileChangedShell When Vim notices that the modification time of
676679
a file has changed since editing started.
@@ -1399,7 +1402,7 @@ Careful: '[ and '] change when using commands that change the buffer.
13991402
In commands which expect a file name, you can use "<afile>" for the file name
14001403
that is being read |:<afile>| (you can also use "%" for the current file
14011404
name). "<abuf>" can be used for the buffer number of the currently effective
1402-
buffer. This also works for buffers that doesn't have a name. But it doesn't
1405+
buffer. This also works for buffers that don't have a name. But it doesn't
14031406
work for files without a buffer (e.g., with ":r file").
14041407

14051408
*gzip-example*

runtime/doc/channel.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,8 +806,14 @@ The text of the prompt can be set with the |prompt_setprompt()| function.
806806
The user can go to Normal mode and navigate through the buffer. This can be
807807
useful see older output or copy text.
808808

809+
The CTRL-W key can be used to start a window command, such as CTRL-W w to
810+
switch to the next window. This also works in Insert mode (use Shift-CTRL-W
811+
to delete a word). When leaving the window Insert mode will be stopped. When
812+
coming back to the prompt window Insert mode will be restored.
813+
809814
Any command that starts Insert mode, such as "a", "i", "A" and "I", will move
810-
the cursor to the last line, after the prompt.
815+
the cursor to the last line. "A" will move to the end of the line, "I" to the
816+
start of the line.
811817

812818

813819
vim:tw=78:ts=8:ft=help:norl:

runtime/doc/cmdline.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,8 @@ These modifiers can be given, in this order:
894894
directory.
895895
:. Reduce file name to be relative to current directory, if
896896
possible. File name is unmodified if it is not below the
897-
current directory.
897+
current directory, but on MS-Windows the drive is removed if
898+
it is the current drive.
898899
For maximum shortness, use ":~:.".
899900
:h Head of the file name (the last component and any separators
900901
removed). Cannot be used with :e, :r or :t.

runtime/doc/eval.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2108,6 +2108,7 @@ cscope_connection([{num}, {dbpath} [, {prepend}]])
21082108
cursor({lnum}, {col} [, {off}])
21092109
Number move cursor to {lnum}, {col}, {off}
21102110
cursor({list}) Number move cursor to position in {list}
2111+
debugbreak({pid}) Number interrupt process being debugged
21112112
deepcopy({expr} [, {noref}]) any make a full copy of {expr}
21122113
delete({fname} [, {flags}]) Number delete the file or directory {fname}
21132114
deletebufline({expr}, {first}[, {last}])
@@ -3480,6 +3481,11 @@ cursor({list})
34803481
position within a <Tab> or after the last character.
34813482
Returns 0 when the position could be set, -1 otherwise.
34823483

3484+
debugbreak({pid}) *debugbreak()*
3485+
Specifically used to interrupt a program being debugged. It
3486+
will cause process {pid} to get a SIGTRAP. Behavior for other
3487+
processes is undefined. See |terminal-debugger|.
3488+
{only available on MS-Windows}
34833489

34843490
deepcopy({expr} [, {noref}]) *deepcopy()* *E698*
34853491
Make a copy of {expr}. For Numbers and Strings this isn't
@@ -5488,6 +5494,20 @@ job_start({command} [, {options}]) *job_start()*
54885494
The returned Job object can be used to get the status with
54895495
|job_status()| and stop the job with |job_stop()|.
54905496

5497+
Note that the job object will be deleted if there are no
5498+
references to it. This closes the stdin and stderr, which may
5499+
cause the job to fail with an error. To avoid this keep a
5500+
reference to the job. Thus instead of: >
5501+
call job_start('my-command')
5502+
< use: >
5503+
let myjob = job_start('my-command')
5504+
< and unlet "myjob" once the job is not needed or is past the
5505+
point where it would fail (e.g. when it prints a message on
5506+
startup). Keep in mind that variables local to a function
5507+
will cease to exist if the function returns. Use a
5508+
script-local variable if needed: >
5509+
let s:myjob = job_start('my-command')
5510+
<
54915511
{options} must be a Dictionary. It can contain many optional
54925512
items, see |job-options|.
54935513

runtime/doc/ft_ada.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ g:decada.Make_Command string
249249
External command used for |g:decada.Make()| (|'makeprg'|).
250250

251251
*g:decada.Error_Format*
252-
g:decada.Error_Format| string
252+
g:decada.Error_Format string
253253
Error format (|'errorformat'|).
254254

255255
==============================================================================

runtime/doc/ft_rust.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
*ft_rust.txt* Filetype plugin for Rust
1+
*ft_rust.txt* For Vim version 8.1. Last change: 2017 Nov 02
2+
3+
This is documentation for the Rust filetype plugin.
24

35
==============================================================================
46
CONTENTS *rust*

runtime/doc/insert.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,11 +434,11 @@ An example for using CTRL-G U: >
434434
435435
This makes it possible to use the cursor keys in Insert mode, without breaking
436436
the undo sequence and therefore using |.| (redo) will work as expected.
437-
Also entering a text like (with the "(" mapping from above): >
437+
Also entering a text like (with the "(" mapping from above):
438438

439439
Lorem ipsum (dolor
440440

441-
will be repeatable by the |.|to the expected
441+
will be repeatable by using |.| to the expected
442442

443443
Lorem ipsum (dolor)
444444

runtime/doc/os_beos.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ The default value for $VIM is set at compile time and can be determined with >
144144
:version
145145
146146
The normal value is /boot/home/config/share/vim. If you don't like it you can
147-
set the Vim environment variable to override this, or set 'helpfile' in your
147+
set the VIM environment variable to override this, or set 'helpfile' in your
148148
.vimrc: >
149149
150150
:if version >= 500

runtime/doc/os_win32.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ you will need to get a version older than that.
169169
==============================================================================
170170
6. Running under Windows 3.1 *win32-win3.1*
171171

172-
*win32s* *windows-3.1* *gui-w32s*
172+
*win32s* *windows-3.1* *gui-w32s* *win16*
173173
There was a special version of gvim that runs under Windows 3.1 and 3.11.
174174
Support was removed in patch 7.4.1363.
175175

0 commit comments

Comments
 (0)