Skip to content

Commit 37c64c7

Browse files
committed
Update runtime files.
1 parent e22bbf6 commit 37c64c7

39 files changed

Lines changed: 3402 additions & 5961 deletions

runtime/autoload/paste.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
" Vim support file to help with paste mappings and menus
22
" Maintainer: Bram Moolenaar <[email protected]>
3-
" Last Change: 2006 Jun 23
3+
" Last Change: 2017 Aug 30
44

55
" Define the string to use for items that are present both in Edit, Popup and
66
" Toolbar menu. Also used in mswin.vim and macmap.vim.
@@ -12,7 +12,7 @@
1212
if has("virtualedit")
1313
let paste#paste_cmd = {'n': ":call paste#Paste()<CR>"}
1414
let paste#paste_cmd['v'] = '"-c<Esc>' . paste#paste_cmd['n']
15-
let paste#paste_cmd['i'] = 'x<BS><Esc>' . paste#paste_cmd['n'] . 'gi'
15+
let paste#paste_cmd['i'] = "\<c-\>\<c-o>\"+gP"
1616

1717
func! paste#Paste()
1818
let ove = &ve

runtime/doc/cmdline.txt

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

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -826,6 +826,7 @@ Also see |`=|.
826826
*:<cword>* *:<cWORD>* *:<cfile>* *<cfile>*
827827
*:<sfile>* *<sfile>* *:<afile>* *<afile>*
828828
*:<abuf>* *<abuf>* *:<amatch>* *<amatch>*
829+
*:<cexpr>* *<cexpr>*
829830
*<slnum>* *E495* *E496* *E497* *E499* *E500*
830831
Note: these are typed literally, they are not special keys!
831832
<cword> is replaced with the word under the cursor (like |star|)

runtime/doc/diff.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*diff.txt* For Vim version 8.0. Last change: 2017 Feb 03
1+
*diff.txt* For Vim version 8.0. Last change: 2017 Sep 02
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -226,8 +226,8 @@ The diffs are highlighted with these groups:
226226
(searching from the end of the line). The
227227
text in between is highlighted. This means
228228
that parts in the middle that are still the
229-
same are highlighted anyway. Only "iwhite" of
230-
'diffopt' is used here.
229+
same are highlighted anyway. The 'diffopt'
230+
flags "iwhite" and "icase" are used here.
231231
|hl-DiffDelete| DiffDelete Deleted lines. Also called filler lines,
232232
because they don't really exist in this
233233
buffer.

runtime/doc/eval.txt

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 8.0. Last change: 2017 Sep 11
1+
*eval.txt* For Vim version 8.0. Last change: 2017 Sep 17
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -4787,7 +4787,9 @@ getwininfo([{winid}]) *getwininfo()*
47874787

47884788
Each List item is a Dictionary with the following entries:
47894789
bufnr number of buffer in the window
4790-
height window height
4790+
height window height (excluding winbar)
4791+
winbar 1 if the window has a toolbar, 0
4792+
otherwise
47914793
loclist 1 if showing a location list
47924794
{only with the +quickfix feature}
47934795
quickfix 1 if quickfix or location list window
@@ -5676,6 +5678,7 @@ maparg({name}[, {mode} [, {abbr} [, {dict}]]]) *maparg()*
56765678
"s" Select
56775679
"x" Visual
56785680
"l" langmap |language-mapping|
5681+
"t" Terminal-Job
56795682
"" Normal, Visual and Operator-pending
56805683
When {mode} is omitted, the modes for "" are used.
56815684

@@ -8021,9 +8024,9 @@ term_getattr({attr}, {what}) *term_getattr()*
80218024

80228025
term_getcursor({buf}) *term_getcursor()*
80238026
Get the cursor position of terminal {buf}. Returns a list with
8024-
two numbers and a dictionary: [rows, cols, dict].
8027+
two numbers and a dictionary: [row, col, dict].
80258028

8026-
"rows" and "cols" are one based, the first screen cell is row
8029+
"row" and "col" are one based, the first screen cell is row
80278030
1, column 1. This is the cursor position of the terminal
80288031
itself, not of the Vim window.
80298032

@@ -8138,6 +8141,10 @@ term_sendkeys({buf}, {keys}) *term_sendkeys()*
81388141
means the character CTRL-X.
81398142
{only available when compiled with the |+terminal| feature}
81408143

8144+
term_setsize({buf}, {expr}) *term_setsize()*
8145+
Not implemented yet.
8146+
{only available when compiled with the |+terminal| feature}
8147+
81418148
term_start({cmd}, {options}) *term_start()*
81428149
Open a terminal window and run {cmd} in it.
81438150

@@ -8609,6 +8616,7 @@ winheight({nr}) *winheight()*
86098616
When {nr} is zero, the height of the current window is
86108617
returned. When window {nr} doesn't exist, -1 is returned.
86118618
An existing window always has a height of zero or more.
8619+
This excludes any window toolbar line.
86128620
Examples: >
86138621
:echo "The current window has " . winheight(0) . " lines."
86148622
<
@@ -8936,7 +8944,7 @@ title Compiled with window title support |'title'|.
89368944
toolbar Compiled with support for |gui-toolbar|.
89378945
ttyin input is a terminal (tty)
89388946
ttyout output is a terminal (tty)
8939-
unix Unix version of Vim.
8947+
unix Unix version of Vim. *+unix*
89408948
unnamedplus Compiled with support for "unnamedplus" in 'clipboard'
89418949
user_commands User-defined commands.
89428950
vertsplit Compiled with vertically split windows |:vsplit|.

runtime/doc/gui.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*gui.txt* For Vim version 8.0. Last change: 2017 Sep 16
1+
*gui.txt* For Vim version 8.0. Last change: 2017 Sep 19
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -784,11 +784,12 @@ In the Win32 and GTK+ GUI, starting a menu name with ']' excludes that menu
784784
from the main menu bar. You must then use the |:popup| or |:tearoff| command
785785
to display it.
786786

787-
*window-toolbar*
787+
*window-toolbar* *WinBar*
788788
Each window can have a local toolbar. This uses the first line of the window,
789-
thus reduces the space for the text by one line.
789+
thus reduces the space for the text by one line. The items in the toolbar
790+
must start with "WinBar".
790791

791-
Only text can be used. When using Unicode special characters can be used to
792+
Only text can be used. When using Unicode, special characters can be used to
792793
make the items look like icons.
793794

794795
If the items do not fit then the last ones cannot be used. The toolbar does
@@ -802,6 +803,8 @@ Example for debugger tools: >
802803
<
803804
The window toolbar uses the ToolbarLine and ToolbarButton highlight groups.
804805

806+
When splitting the window the window toolbar is not copied to the new window.
807+
805808
*popup-menu*
806809
In the Win32, GTK+, Motif, Athena and Photon GUI, you can define the
807810
special menu "PopUp". This is the menu that is displayed when the right mouse

runtime/doc/index.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,13 +1583,17 @@ tag command action ~
15831583
|:tjump| :tj[ump] like ":tselect", but jump directly when there
15841584
is only one match
15851585
|:tlast| :tl[ast] jump to last matching tag
1586+
|:tmapclear| :tmapc[lear] remove all mappings for Terminal-Job mode
1587+
|:tmap| :tma[p] like ":map" but for Terminal-Job mode
15861588
|:tmenu| :tm[enu] define menu tooltip
15871589
|:tnext| :tn[ext] jump to next matching tag
1590+
|:tnoremap| :tno[remap] like ":noremap" but for Terminal-Job mode
15881591
|:topleft| :to[pleft] make split window appear at top or far left
15891592
|:tprevious| :tp[revious] jump to previous matching tag
15901593
|:trewind| :tr[ewind] jump to first matching tag
15911594
|:try| :try execute commands, abort on error or exception
15921595
|:tselect| :ts[elect] list matching tags and select one
1596+
|:tunmap| :tunma[p] like ":unmap" but for Terminal-Job mode
15931597
|:tunmenu| :tu[nmenu] remove menu tooltip
15941598
|:undo| :u[ndo] undo last change(s)
15951599
|:undojoin| :undoj[oin] join next change with previous undo block

runtime/doc/intro.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*intro.txt* For Vim version 8.0. Last change: 2017 Aug 24
1+
*intro.txt* For Vim version 8.0. Last change: 2017 Sep 04
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -264,6 +264,10 @@ Vim would never have become what it is now, without the help of these people!
264264
Juergen Weigert Lattice version, AUX improvements, UNIX and
265265
MS-DOS ports, autoconf
266266
Stefan 'Sec' Zehl Maintainer of vim.org
267+
Yasuhiro Matsumoto many MS-Windows improvements
268+
Ken Takata fixes and features
269+
Kazunobu Kuriyama GTK 3
270+
Christian Brabandt many fixes, features, user support, etc.
267271

268272
I wish to thank all the people that sent me bug reports and suggestions. The
269273
list is too long to mention them all here. Vim would not be the same without

runtime/doc/map.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*map.txt* For Vim version 8.0. Last change: 2017 May 30
1+
*map.txt* For Vim version 8.0. Last change: 2017 Sep 17
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -55,7 +55,7 @@ modes.
5555
:im[ap] {lhs} {rhs} |mapmode-i| *:im* *:imap*
5656
:lm[ap] {lhs} {rhs} |mapmode-l| *:lm* *:lmap*
5757
:cm[ap] {lhs} {rhs} |mapmode-c| *:cm* *:cmap*
58-
:tm[ap] {lhs} {rhs} |mapmode-t| *:tma* *:tmap*
58+
:tma[p] {lhs} {rhs} |mapmode-t| *:tma* *:tmap*
5959
Map the key sequence {lhs} to {rhs} for the modes
6060
where the map command applies. The result, including
6161
{rhs}, is then further scanned for mappings. This
@@ -89,7 +89,7 @@ modes.
8989
:iu[nmap] {lhs} |mapmode-i| *:iu* *:iunmap*
9090
:lu[nmap] {lhs} |mapmode-l| *:lu* *:lunmap*
9191
:cu[nmap] {lhs} |mapmode-c| *:cu* *:cunmap*
92-
:tu[nmap] {lhs} |mapmode-t| *:tunma* *:tunmap*
92+
:tunma[p] {lhs} |mapmode-t| *:tunma* *:tunmap*
9393
Remove the mapping of {lhs} for the modes where the
9494
map command applies. The mapping may remain defined
9595
for other modes where it applies.
@@ -125,7 +125,7 @@ modes.
125125
:im[ap] |mapmode-i|
126126
:lm[ap] |mapmode-l|
127127
:cm[ap] |mapmode-c|
128-
:tm[ap] |mapmode-t|
128+
:tma[p] |mapmode-t|
129129
List all key mappings for the modes where the map
130130
command applies. Note that ":map" and ":map!" are
131131
used most often, because they include the other modes.
@@ -140,7 +140,7 @@ modes.
140140
:im[ap] {lhs} |mapmode-i| *:imap_l*
141141
:lm[ap] {lhs} |mapmode-l| *:lmap_l*
142142
:cm[ap] {lhs} |mapmode-c| *:cmap_l*
143-
:tm[ap] {lhs} |mapmode-t| *:tmap_l*
143+
:tma[p] {lhs} |mapmode-t| *:tmap_l*
144144
List the key mappings for the key sequences starting
145145
with {lhs} in the modes where the map command applies.
146146
{not in Vi}
@@ -694,7 +694,7 @@ option). After that it assumes that the 'q' is to be interpreted as such. If
694694
you type slowly, or your system is slow, reset the 'timeout' option. Then you
695695
might want to set the 'ttimeout' option.
696696

697-
*map-precedence*
697+
*map-precedence*
698698
Buffer-local mappings (defined using |:map-<buffer>|) take precedence over
699699
global mappings. When a buffer-local mapping is the same as a global mapping,
700700
Vim will use the buffer-local mapping. In addition, Vim will use a complete

runtime/doc/options.txt

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 8.0. Last change: 2017 Aug 27
1+
*options.txt* For Vim version 8.0. Last change: 2017 Sep 16
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -423,6 +423,16 @@ command, not when assigning a value to an option with ":let".
423423
*$HOME-windows*
424424
On MS-Windows, if $HOME is not defined as an environment variable, then
425425
at runtime Vim will set it to the expansion of $HOMEDRIVE$HOMEPATH.
426+
If $HOMEDRIVE is not set then $USERPROFILE is used.
427+
428+
This expanded value is not exported to the environment, this matters when
429+
running an external command: >
430+
:echo system('set | findstr ^HOME=')
431+
and >
432+
:echo luaeval('os.getenv("HOME")')
433+
should echo nothing (an empty string) despite exists('$HOME') being true.
434+
When setting $HOME to a non-empty string it will be exported to the
435+
subprocesses.
426436

427437

428438
Note the maximum length of an expanded option is limited. How much depends on
@@ -722,7 +732,8 @@ A jump table for the options with a short description can be found at |Q_op|.
722732

723733
Vim may set this option automatically at startup time when Vim is
724734
compiled with the |+termresponse| feature and if |t_u7| is set to the
725-
escape sequence to request cursor position report.
735+
escape sequence to request cursor position report. The response can
736+
be found in |v:termu7resp|.
726737

727738
*'antialias'* *'anti'* *'noantialias'* *'noanti'*
728739
'antialias' 'anti' boolean (default: off)
@@ -870,11 +881,12 @@ A jump table for the options with a short description can be found at |Q_op|.
870881
< Vim will guess the value. In the GUI this should work correctly,
871882
in other cases Vim might not be able to guess the right value.
872883

873-
When the t_BG option is set, Vim will use it to request the background
884+
When the |t_RB| option is set, Vim will use it to request the background
874885
color from the terminal. If the returned RGB value is dark/light and
875886
'background' is not dark/light, 'background' will be set and the
876887
screen is redrawn. This may have side effects, make t_BG empty in
877-
your .vimrc if you suspect this problem.
888+
your .vimrc if you suspect this problem. The response to |t_RB| can
889+
be found in |v:termrgbresp|.
878890

879891
When starting the GUI, the default value for 'background' will be
880892
"light". When the value is not set in the .gvimrc, and Vim detects
@@ -4363,9 +4375,9 @@ A jump table for the options with a short description can be found at |Q_op|.
43634375
{not in Vi}
43644376
{only available when compiled with |+xim| and
43654377
|+GUI_GTK|}
4366-
This option specifies the input style of Input Method.
4367-
Set to zero if you want to use on-the-spot style.
4368-
Set to one if you want to use over-the-spot style.
4378+
This option specifies the input style of Input Method:
4379+
0 use on-the-spot style
4380+
1 over-the-spot style
43694381
See: |xim-input-style|
43704382

43714383
For a long time on-the-spot sytle had been used in GTK version of vim,
@@ -5746,6 +5758,18 @@ A jump table for the options with a short description can be found at |Q_op|.
57465758
< Replace the ';' with a ':' or whatever separator is used. Note that
57475759
this doesn't work when $INCL contains a comma or white space.
57485760

5761+
*'perldll'*
5762+
'perldll' string (default depends on the build)
5763+
global
5764+
{not in Vi}
5765+
{only available when compiled with the |+perl/dyn|
5766+
feature}
5767+
Specifies the name of the Perl shared library. The default is
5768+
DYNAMIC_PERL_DLL, which was specified at compile time.
5769+
Environment variables are expanded |:set_env|.
5770+
This option cannot be set from a |modeline| or in the |sandbox|, for
5771+
security reasons.
5772+
57495773
*'preserveindent'* *'pi'* *'nopreserveindent'* *'nopi'*
57505774
'preserveindent' 'pi' boolean (default off)
57515775
local to buffer

runtime/doc/quickfix.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*quickfix.txt* For Vim version 8.0. Last change: 2017 Jun 13
1+
*quickfix.txt* For Vim version 8.0. Last change: 2017 Sep 13
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -47,11 +47,6 @@ compiler (see |errorformat| below).
4747
*quickfix-ID*
4848
Each quickfix list has a unique identifier called the quickfix ID and this
4949
number will not change within a Vim session. The getqflist() function can be
50-
used to get the identifier assigned to a list.
51-
52-
*quickfix-ID*
53-
Each quickfix list has a unique identifier called the quickfix ID and this
54-
number will not change within a Vim session. The getqflist() function can be
5550
used to get the identifier assigned to a list. There is also a quickfix list
5651
number which may change whenever more than ten lists are added to a quickfix
5752
stack.

0 commit comments

Comments
 (0)