Skip to content

Commit a787335

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents ef7eaae + 81bdd6a commit a787335

37 files changed

Lines changed: 365 additions & 215 deletions

runtime/doc/channel.txt

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*channel.txt* For Vim version 8.0. Last change: 2017 Jun 11
1+
*channel.txt* For Vim version 8.0. Last change: 2017 Jul 22
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -611,7 +611,7 @@ See |job_setoptions()| and |ch_setoptions()|.
611611
"close_cb": handler Callback for when the channel is closed. Same as
612612
"close_cb" on |ch_open()|, see |close_cb|.
613613
*job-drop*
614-
"drop" Specifies when to drop messages. Same as "drop" on
614+
"drop": when Specifies when to drop messages. Same as "drop" on
615615
|ch_open()|, see |channel-drop|. For "auto" the
616616
exit_cb is not considered.
617617
*job-exit_cb*
@@ -624,12 +624,12 @@ See |job_setoptions()| and |ch_setoptions()|.
624624
Note that data can be buffered, callbacks may still be
625625
called after the process ends.
626626
*job-timeout*
627-
"timeout" The time to wait for a request when blocking, E.g.
627+
"timeout": time The time to wait for a request when blocking, E.g.
628628
when using ch_evalexpr(). In milliseconds. The
629629
default is 2000 (2 seconds).
630630
*out_timeout* *err_timeout*
631-
"out_timeout" Timeout for stdout. Only when using pipes.
632-
"err_timeout" Timeout for stderr. Only when using pipes.
631+
"out_timeout": time Timeout for stdout. Only when using pipes.
632+
"err_timeout": time Timeout for stderr. Only when using pipes.
633633
Note: when setting "timeout" the part specific mode is
634634
overwritten. Therefore set "timeout" first and the
635635
part specific mode later.
@@ -641,8 +641,9 @@ See |job_setoptions()| and |ch_setoptions()|.
641641
The default is "term".
642642

643643
*job-term*
644-
"term": "open" Start a terminal and connect the job
645-
stdin/stdout/stderr to it.
644+
"term": "open" Start a terminal in a new window and connect the job
645+
stdin/stdout/stderr to it. Similar to using
646+
`:terminal`.
646647
NOTE: Not implemented yet!
647648

648649
"channel": {channel} Use an existing channel instead of creating a new one.
@@ -652,6 +653,11 @@ See |job_setoptions()| and |ch_setoptions()|.
652653
cause I/O errors.
653654
Existing callbacks and other settings remain.
654655

656+
"pty": 1 Use a pty (pseudo-tty) instead of a pipe when
657+
possible. This is most useful in combination with a
658+
terminal window, see |terminal|.
659+
{only on Unix and Unix-like systems}
660+
655661
*job-in_io* *in_top* *in_bot* *in_name* *in_buf*
656662
"in_io": "null" disconnect stdin (read from /dev/null)
657663
"in_io": "pipe" stdin is connected to the channel (default)

runtime/doc/eval.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 8.0. Last change: 2017 Jul 15
1+
*eval.txt* For Vim version 8.0. Last change: 2017 Jul 22
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2179,7 +2179,7 @@ index({list}, {expr} [, {start} [, {ic}]])
21792179
Number index in {list} where {expr} appears
21802180
input({prompt} [, {text} [, {completion}]])
21812181
String get input from the user
2182-
inputdialog({prompt} [, {text} [, {completion}]]])
2182+
inputdialog({prompt} [, {text} [, {completion}]])
21832183
String like input() but in a GUI dialog
21842184
inputlist({textlist}) Number let the user pick from a choice list
21852185
inputrestore() Number restore typeahead

runtime/doc/gui.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*gui.txt* For Vim version 8.0. Last change: 2014 Mar 08
1+
*gui.txt* For Vim version 8.0. Last change: 2017 Jul 15
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -79,7 +79,8 @@ When the GUI starts up initializations are carried out, in this order:
7979
and DOS/Win32 "_gvimrc" is tried first.
8080

8181
NOTE: All but the first one are not carried out if Vim was started with
82-
"-u NONE" and no "-U" argument was given, or when started with "-U NONE".
82+
"-u NONE" or "-u DEFAULTS" and no "-U" argument was given, or when started
83+
with "-U NONE".
8384

8485
All this happens AFTER the normal Vim initializations, like reading your
8586
.vimrc file. See |initialization|.

runtime/doc/index.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*index.txt* For Vim version 8.0. Last change: 2017 Jul 15
1+
*index.txt* For Vim version 8.0. Last change: 2017 Jul 16
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -530,6 +530,7 @@ tag command action in Normal mode ~
530530
|CTRL-W_CTRL-_| CTRL-W CTRL-_ same as "CTRL-W _"
531531
|CTRL-W_+| CTRL-W + increase current window height N lines
532532
|CTRL-W_-| CTRL-W - decrease current window height N lines
533+
|CTRL-W_:| CTRL-W : same as |:|, edit a command line
533534
|CTRL-W_<| CTRL-W < decrease current window width N columns
534535
|CTRL-W_=| CTRL-W = make all windows the same height & width
535536
|CTRL-W_>| CTRL-W > increase current window width N columns

runtime/doc/intro.txt

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*intro.txt* For Vim version 8.0. Last change: 2016 Sep 24
1+
*intro.txt* For Vim version 8.0. Last change: 2017 Jul 17
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -143,9 +143,14 @@ There are two ways to report bugs, both work:
143143

144144
Please be brief; all the time that is spent on answering mail is subtracted
145145
from the time that is spent on improving Vim! Always give a reproducible
146-
example and try to find out which settings or other things influence the
147-
appearance of the bug. Try different machines, if possible. Send me patches
148-
if you can!
146+
example and try to find out which settings or other things trigger the bug.
147+
148+
Preferably start Vim with: >
149+
vim --clean -u reproduce.vim
150+
Where reproduce.vim is a script that reproduces the problem. Try different
151+
machines, if relevant (is this an MS-Windows specific bug perhaps?).
152+
153+
Send me patches if you can!
149154

150155
It will help to include information about the version of Vim you are using and
151156
your setup. You can get the information with this command: >

runtime/doc/options.txt

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 8.0. Last change: 2017 Jul 15
1+
*options.txt* For Vim version 8.0. Last change: 2017 Jul 23
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1332,8 +1332,6 @@ A jump table for the options with a short description can be found at |Q_op|.
13321332
'bufhidden' 'bh' string (default: "")
13331333
local to buffer
13341334
{not in Vi}
1335-
{not available when compiled without the |+quickfix|
1336-
feature}
13371335
This option specifies what happens when a buffer is no longer
13381336
displayed in a window:
13391337
<empty> follow the global 'hidden' option
@@ -1368,8 +1366,6 @@ A jump table for the options with a short description can be found at |Q_op|.
13681366
'buftype' 'bt' string (default: "")
13691367
local to buffer
13701368
{not in Vi}
1371-
{not available when compiled without the |+quickfix|
1372-
feature}
13731369
The value of this option specifies the type of a buffer:
13741370
<empty> normal buffer
13751371
nofile buffer which is not related to a file and will not be
@@ -1382,6 +1378,8 @@ A jump table for the options with a short description can be found at |Q_op|.
13821378
or list of locations |:lwindow|
13831379
help help buffer (you are not supposed to set this
13841380
manually)
1381+
terminal buffer for a |terminal| (you are not supposed to set
1382+
this manually)
13851383

13861384
This option is used together with 'bufhidden' and 'swapfile' to
13871385
specify special kinds of buffers. See |special-buffers|.
@@ -7956,19 +7954,26 @@ A jump table for the options with a short description can be found at |Q_op|.
79567954
{not in Vi}
79577955
The key that precedes a Vim command in a terminal window. Other keys
79587956
are sent to the job running in the window.
7959-
The string must be one key stroke.
7957+
The string must be one key stroke but can be multiple bytes.
79607958
NOT IMPLEMENTED YET
79617959

79627960

7963-
*'thesaurus'* *'tsr'*
7961+
*'termsize'* *'tms'*
79647962
'termsize' 'tms' string (default "")
79657963
local to window
79667964
{not in Vi}
79677965
Size of the |terminal| window. Format: {rows}x{columns}.
79687966
- When empty the terminal gets the size from the window.
7969-
- When set (e.g., "24x80") the terminal size is fixed. If the window
7970-
is smaller only the top-left part is displayed.
7971-
NOT IMPLEMENTED YET
7967+
- When set (e.g., "24x80") the terminal size is not adjusted to the
7968+
window size. If the window is smaller only the top-left part is
7969+
displayed.
7970+
When rows is zero then use the height of the window.
7971+
When columns is zero then use the width of the window.
7972+
For example: "30x0" uses 30 rows with the current window width.
7973+
Using "0x0" is the same as empty.
7974+
Note that the command running in the terminal window may still change
7975+
the size of the terminal. In that case the Vim window will be
7976+
adjusted to that size, if possible.
79727977

79737978
*'terse'* *'noterse'*
79747979
'terse' boolean (default off)

runtime/doc/tags

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,6 +1084,8 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
10841084
'termbidi' options.txt /*'termbidi'*
10851085
'termencoding' options.txt /*'termencoding'*
10861086
'termguicolors' options.txt /*'termguicolors'*
1087+
'termkey' options.txt /*'termkey'*
1088+
'termsize' options.txt /*'termsize'*
10871089
'terse' options.txt /*'terse'*
10881090
'textauto' options.txt /*'textauto'*
10891091
'textmode' options.txt /*'textmode'*
@@ -1099,8 +1101,10 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
10991101
'titlelen' options.txt /*'titlelen'*
11001102
'titleold' options.txt /*'titleold'*
11011103
'titlestring' options.txt /*'titlestring'*
1104+
'tk' options.txt /*'tk'*
11021105
'tl' options.txt /*'tl'*
11031106
'tm' options.txt /*'tm'*
1107+
'tms' options.txt /*'tms'*
11041108
'to' options.txt /*'to'*
11051109
'toolbar' options.txt /*'toolbar'*
11061110
'toolbariconsize' options.txt /*'toolbariconsize'*
@@ -1146,7 +1150,9 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
11461150
'vi' options.txt /*'vi'*
11471151
'viewdir' options.txt /*'viewdir'*
11481152
'viewoptions' options.txt /*'viewoptions'*
1153+
'vif' options.txt /*'vif'*
11491154
'viminfo' options.txt /*'viminfo'*
1155+
'viminfofile' options.txt /*'viminfofile'*
11501156
'virtualedit' options.txt /*'virtualedit'*
11511157
'visualbell' options.txt /*'visualbell'*
11521158
'vop' options.txt /*'vop'*
@@ -1369,6 +1375,7 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
13691375
-+rv gui_x11.txt /*-+rv*
13701376
-- starting.txt /*--*
13711377
--- starting.txt /*---*
1378+
--clean starting.txt /*--clean*
13721379
--cmd starting.txt /*--cmd*
13731380
--echo-wid starting.txt /*--echo-wid*
13741381
--help starting.txt /*--help*
@@ -3576,6 +3583,7 @@ CTRL-V-alternative gui_w32.txt /*CTRL-V-alternative*
35763583
CTRL-W index.txt /*CTRL-W*
35773584
CTRL-W_+ windows.txt /*CTRL-W_+*
35783585
CTRL-W_- windows.txt /*CTRL-W_-*
3586+
CTRL-W_: windows.txt /*CTRL-W_:*
35793587
CTRL-W_< windows.txt /*CTRL-W_<*
35803588
CTRL-W_<BS> windows.txt /*CTRL-W_<BS>*
35813589
CTRL-W_<CR> quickfix.txt /*CTRL-W_<CR>*

runtime/doc/term.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*term.txt* For Vim version 8.0. Last change: 2017 Apr 11
1+
*term.txt* For Vim version 8.0. Last change: 2017 Jul 21
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -315,7 +315,7 @@ Added by Vim (there are no standard codes for these):
315315
t_IE set icon text end *t_IE* *'t_IE'*
316316
t_WP set window position (Y, X) in pixels *t_WP* *'t_WP'*
317317
t_GP get window position (Y, X) in pixels *t_GP* *'t_GP'*
318-
t_WS set window size (height, width) in characters *t_WS* *'t_WS'*
318+
t_WS set window size (height, width in cells) *t_WS* *'t_WS'*
319319
t_SI start insert mode (bar cursor shape) *t_SI* *'t_SI'*
320320
t_SR start replace mode (underline cursor shape) *t_SR* *'t_SR'*
321321
t_EI end insert or replace mode (block cursor shape) *t_EI* *'t_EI'*

runtime/doc/terminal.txt

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*terminal.txt* For Vim version 8.0. Last change: 2017 Jul 15
1+
*terminal.txt* For Vim version 8.0. Last change: 2017 Jul 19
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -9,6 +9,10 @@ Terminal window support *terminal*
99

1010
WARNING: THIS IS ONLY PARTLY IMPLEMENTED, ANYTHING CAN STILL CHANGE
1111

12+
The terminal feature is optional, use this to check if your Vim has it: >
13+
echo has('terminal')
14+
If the result is "1" you have it.
15+
1216

1317
1. Basic use |terminal-use|
1418
2. Remote testing |terminal-testing|
@@ -34,6 +38,7 @@ the job. This uses a pty when possible.
3438

3539
Navigate between windows with CTRL-W commands (and mouse).
3640
E.g. CTRL-W CTRL-W moves focus to the next window.
41+
Use "CTRL-W :" to edit an Ex command.
3742

3843
See option 'termkey' for specifying the key that precedes a Vim command.
3944
Default is CTRL-W.
@@ -62,6 +67,10 @@ Syntax ~
6267
buffer. If there are unsaved changes this fails, use
6368
! to force, as usual.
6469

70+
When the buffer associated with the terminal is wiped out the job is killed,
71+
similar to calling `job_stop(job, "kill")`
72+
73+
6574
Resizing ~
6675

6776
The size of the terminal can be in one of three modes:
@@ -83,6 +92,19 @@ The |term_getsize()| function can be used to get the current size of the
8392
terminal. |term_setsize()| can be used only when in the first or second mode,
8493
not when 'termsize' is "rowsXcols".
8594

95+
96+
Unix ~
97+
98+
On Unix a pty is used to make it possible to run all kinds of commands. You
99+
can even run Vim in the terminal! That's used for debugging, see below.
100+
101+
102+
MS-Windows ~
103+
104+
On MS-Windows a hidden console is used to run the command in. This should
105+
work well for all kind of commands. Obviously, they must be commands that run
106+
in a terminal, not open their own window.
107+
86108
==============================================================================
87109
2. Remote testing *terminal-testing*
88110

0 commit comments

Comments
 (0)