Skip to content

Commit 98a9de1

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents d78a756 + 2e6ab18 commit 98a9de1

Some content is hidden

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

42 files changed

+3422
-2307
lines changed

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
<
@@ -8940,7 +8948,7 @@ toolbar Compiled with support for |gui-toolbar|.
89408948
transparency Compiled with 'transparency' support.
89418949
ttyin input is a terminal (tty)
89428950
ttyout output is a terminal (tty)
8943-
unix Unix version of Vim.
8951+
unix Unix version of Vim. *+unix*
89448952
unnamedplus Compiled with support for "unnamedplus" in 'clipboard'
89458953
user_commands User-defined commands.
89468954
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
@@ -785,11 +785,12 @@ In the Win32 and GTK+ GUI, starting a menu name with ']' excludes that menu
785785
from the main menu bar. You must then use the |:popup| or |:tearoff| command
786786
to display it.
787787

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

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

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

807+
When splitting the window the window toolbar is not copied to the new window.
808+
806809
*popup-menu*
807810
In the Win32, GTK+, Motif, Athena and Photon GUI, you can define the
808811
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
@@ -1585,13 +1585,17 @@ tag command action ~
15851585
|:tjump| :tj[ump] like ":tselect", but jump directly when there
15861586
is only one match
15871587
|:tlast| :tl[ast] jump to last matching tag
1588+
|:tmapclear| :tmapc[lear] remove all mappings for Terminal-Job mode
1589+
|:tmap| :tma[p] like ":map" but for Terminal-Job mode
15881590
|:tmenu| :tm[enu] define menu tooltip
15891591
|:tnext| :tn[ext] jump to next matching tag
1592+
|:tnoremap| :tno[remap] like ":noremap" but for Terminal-Job mode
15901593
|:topleft| :to[pleft] make split window appear at top or far left
15911594
|:tprevious| :tp[revious] jump to previous matching tag
15921595
|:trewind| :tr[ewind] jump to first matching tag
15931596
|:try| :try execute commands, abort on error or exception
15941597
|:tselect| :ts[elect] list matching tags and select one
1598+
|:tunmap| :tunma[p] like ":unmap" but for Terminal-Job mode
15951599
|:tunmenu| :tu[nmenu] remove menu tooltip
15961600
|:undo| :u[ndo] undo last change(s)
15971601
|: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, on for MacVim)
@@ -875,11 +886,12 @@ A jump table for the options with a short description can be found at |Q_op|.
875886
< Vim will guess the value. In the GUI this should work correctly,
876887
in other cases Vim might not be able to guess the right value.
877888

878-
When the t_BG option is set, Vim will use it to request the background
889+
When the |t_RB| option is set, Vim will use it to request the background
879890
color from the terminal. If the returned RGB value is dark/light and
880891
'background' is not dark/light, 'background' will be set and the
881892
screen is redrawn. This may have side effects, make t_BG empty in
882-
your .vimrc if you suspect this problem.
893+
your .vimrc if you suspect this problem. The response to |t_RB| can
894+
be found in |v:termrgbresp|.
883895

884896
When starting the GUI, the default value for 'background' will be
885897
"light". When the value is not set in the .gvimrc, and Vim detects
@@ -4487,9 +4499,9 @@ A jump table for the options with a short description can be found at |Q_op|.
44874499
{not in Vi}
44884500
{only available when compiled with |+xim| and
44894501
|+GUI_GTK|}
4490-
This option specifies the input style of Input Method.
4491-
Set to zero if you want to use on-the-spot style.
4492-
Set to one if you want to use over-the-spot style.
4502+
This option specifies the input style of Input Method:
4503+
0 use on-the-spot style
4504+
1 over-the-spot style
44934505
See: |xim-input-style|
44944506

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

5923+
*'perldll'*
5924+
'perldll' string (default depends on the build)
5925+
global
5926+
{not in Vi}
5927+
{only available when compiled with the |+perl/dyn|
5928+
feature}
5929+
Specifies the name of the Perl shared library. The default is
5930+
DYNAMIC_PERL_DLL, which was specified at compile time.
5931+
Environment variables are expanded |:set_env|.
5932+
This option cannot be set from a |modeline| or in the |sandbox|, for
5933+
security reasons.
5934+
59115935
*'preserveindent'* *'pi'* *'nopreserveindent'* *'nopi'*
59125936
'preserveindent' 'pi' boolean (default off)
59135937
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)