Skip to content

Commit 0d6868f

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 99ec748 + 50ba526 commit 0d6868f

14 files changed

Lines changed: 90 additions & 38 deletions

File tree

READMEdir/README_dos.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ These are the normal steps to install Vim from the .zip archives:
4141
located. Check the $VIM setting to see where it points to:
4242
set VIM
4343
For example, if you have
44-
C:\vim\vim74
44+
C:\vim\vim80
4545
do
4646
cd C:\
4747
Binary and runtime Vim archives are normally unpacked in the same location,

runtime/doc/autocmd.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim version 8.0. Last change: 2016 Sep 03
1+
*autocmd.txt* For Vim version 8.0. Last change: 2016 Sep 21
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -983,7 +983,7 @@ WinLeave Before leaving a window. If the window to be
983983

984984
*WinNew*
985985
WinNew When a new window was created. Not done for
986-
the fist window, when Vim has just started.
986+
the first window, when Vim has just started.
987987
Before a WinEnter event.
988988

989989
==============================================================================

runtime/doc/channel.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*channel.txt* For Vim version 8.0. Last change: 2016 Sep 11
1+
*channel.txt* For Vim version 8.0. Last change: 2016 Sep 20
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -33,7 +33,7 @@ The Netbeans interface also uses a channel. |netbeans|
3333
1. Overview *job-channel-overview*
3434

3535
There are four main types of jobs:
36-
1. A deamon, serving several Vim instances.
36+
1. A daemon, serving several Vim instances.
3737
Vim connects to it with a socket.
3838
2. One job working with one Vim instance, asynchronously.
3939
Uses a socket or pipes.

runtime/doc/eval.txt

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

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -125,7 +125,8 @@ cleared. A List, Dictionary or Float is not a Number or String, thus
125125
evaluates to FALSE.
126126

127127
*E745* *E728* *E703* *E729* *E730* *E731* *E908* *E910* *E913*
128-
List, Dictionary, Funcref and Job types are not automatically converted.
128+
List, Dictionary, Funcref, Job and Channel types are not automatically
129+
converted.
129130

130131
*E805* *E806* *E808*
131132
When mixing Number and Float the Number is converted to Float. Otherwise
@@ -643,7 +644,7 @@ It's possible to form a variable name with curly braces, see
643644

644645
Expression syntax summary, from least to most significant:
645646

646-
|expr1| expr2
647+
|expr1| expr2
647648
expr2 ? expr1 : expr1 if-then-else
648649

649650
|expr2| expr3
@@ -691,7 +692,7 @@ Expression syntax summary, from least to most significant:
691692
expr8.name entry in a |Dictionary|
692693
expr8(expr1, ...) function call with |Funcref| variable
693694

694-
|expr9| number number constant
695+
|expr9| number number constant
695696
"string" string constant, backslash is special
696697
'string' string constant, ' is doubled
697698
[expr1, ...] |List|
@@ -957,7 +958,7 @@ expr8[expr1] item of String or |List| *expr-[]* *E111*
957958
*E909* *subscript*
958959
If expr8 is a Number or String this results in a String that contains the
959960
expr1'th single byte from expr8. expr8 is used as a String, expr1 as a
960-
Number. This doesn't recognize multi-byte encodings, see |byteidx()| for
961+
Number. This doesn't recognize multi-byte encodings, see `byteidx()` for
961962
an alternative, or use `split()` to turn the string into a list of characters.
962963

963964
Index zero gives the first byte. This is like it works in C. Careful:
@@ -1244,7 +1245,7 @@ The arguments are optional. Example: >
12441245
< error function
12451246
*closure*
12461247
Lambda expressions can access outer scope variables and arguments. This is
1247-
often called a closure. Example where "i" a and "a:arg" are used in a lambda
1248+
often called a closure. Example where "i" and "a:arg" are used in a lambda
12481249
while they exist in the function scope. They remain valid even after the
12491250
function returns: >
12501251
:function Foo(arg)
@@ -2072,8 +2073,8 @@ expand({expr} [, {nosuf} [, {list}]])
20722073
feedkeys({string} [, {mode}]) Number add key sequence to typeahead buffer
20732074
filereadable({file}) Number |TRUE| if {file} is a readable file
20742075
filewritable({file}) Number |TRUE| if {file} is a writable file
2075-
filter({expr}, {string}) List/Dict remove items from {expr} where
2076-
{string} is 0
2076+
filter({expr1}, {expr2}) List/Dict remove items from {expr1} where
2077+
{expr2} is 0
20772078
finddir({name}[, {path}[, {count}]])
20782079
String find directory {name} in {path}
20792080
findfile({name}[, {path}[, {count}]])
@@ -2097,7 +2098,7 @@ garbagecollect([{atexit}]) none free memory, breaking cyclic references
20972098
get({list}, {idx} [, {def}]) any get item {idx} from {list} or {def}
20982099
get({dict}, {key} [, {def}]) any get item {key} from {dict} or {def}
20992100
get({func}, {what}) any get property of funcref/partial {func}
2100-
getbufinfo([{expr}]) List information about buffers
2101+
getbufinfo([{expr}]) List information about buffers
21012102
getbufline({expr}, {lnum} [, {end}])
21022103
List lines {lnum} to {end} of buffer {expr}
21032104
getbufvar({expr}, {varname} [, {def}])
@@ -2128,12 +2129,12 @@ getqflist([{what}]) List list of quickfix items
21282129
getreg([{regname} [, 1 [, {list}]]])
21292130
String or List contents of register
21302131
getregtype([{regname}]) String type of register
2131-
gettabinfo([{expr}]) List list of tab pages
2132+
gettabinfo([{expr}]) List list of tab pages
21322133
gettabvar({nr}, {varname} [, {def}])
21332134
any variable {varname} in tab {nr} or {def}
21342135
gettabwinvar({tabnr}, {winnr}, {name} [, {def}])
21352136
any {name} in {winnr} in tab page {tabnr}
2136-
getwininfo([{winid}]) List list of windows
2137+
getwininfo([{winid}]) List list of windows
21372138
getwinposx() Number X coord in pixels of GUI Vim window
21382139
getwinposy() Number Y coord in pixels of GUI Vim window
21392140
getwinvar({nr}, {varname} [, {def}])
@@ -2197,7 +2198,7 @@ localtime() Number current time
21972198
log({expr}) Float natural logarithm (base e) of {expr}
21982199
log10({expr}) Float logarithm of Float {expr} to base 10
21992200
luaeval({expr}[, {expr}]) any evaluate |Lua| expression
2200-
map({expr}, {string}) List/Dict change each item in {expr} to {expr}
2201+
map({expr1}, {expr2}) List/Dict change each item in {expr1} to {expr}
22012202
maparg({name}[, {mode} [, {abbr} [, {dict}]]])
22022203
String or Dict
22032204
rhs of mapping {name} in mode {mode}
@@ -3701,9 +3702,10 @@ filter({expr1}, {expr2}) *filter()*
37013702
is zero remove the item from the |List| or |Dictionary|.
37023703
{expr2} must be a |string| or |Funcref|.
37033704

3704-
if {expr2} is a |string|, inside {expr2} |v:val| has the value
3705+
If {expr2} is a |string|, inside {expr2} |v:val| has the value
37053706
of the current item. For a |Dictionary| |v:key| has the key
3706-
of the current item.
3707+
of the current item and for a |List| |v:key| has the index of
3708+
the current item.
37073709
Examples: >
37083710
call filter(mylist, 'v:val !~ "OLD"')
37093711
< Removes the items where "OLD" appears. >
@@ -3725,7 +3727,11 @@ filter({expr1}, {expr2}) *filter()*
37253727
return a:idx % 2 == 1
37263728
endfunc
37273729
call filter(mylist, function('Odd'))
3728-
<
3730+
< It is shorter when using a |lambda|: >
3731+
call filter(myList, {idx, val -> idx * val <= 42})
3732+
< If you do not use "val" you can leave it out: >
3733+
call filter(myList, {idx -> idx % 2 == 1})
3734+
37293735
The operation is done in-place. If you want a |List| or
37303736
|Dictionary| to remain unmodified make a copy first: >
37313737
:let l = filter(copy(mylist), 'v:val =~ "KEEP"')
@@ -5439,6 +5445,10 @@ map({expr1}, {expr2}) *map()*
54395445
return a:key . '-' . a:val
54405446
endfunc
54415447
call map(myDict, function('KeyValue'))
5448+
< It is shorter when using a |lambda|: >
5449+
call map(myDict, {key, val -> key . '-' . val})
5450+
< If you do not use "val" you can leave it out: >
5451+
call map(myDict, {key -> 'item: ' . key})
54425452
<
54435453
The operation is done in-place. If you want a |List| or
54445454
|Dictionary| to remain unmodified make a copy first: >

runtime/doc/if_pyth.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*if_pyth.txt* For Vim version 8.0. Last change: 2016 Sep 01
1+
*if_pyth.txt* For Vim version 8.0. Last change: 2016 Sep 17
22

33

44
VIM REFERENCE MANUAL by Paul Moore
@@ -748,11 +748,11 @@ match the Python 2.x or Python 3 version Vim was compiled with.
748748
The `:py3` and `:python3` commands work similar to `:python`. A simple check
749749
if the `:py3` command is working: >
750750
:py3 print("Hello")
751-
< *:py3file*
751+
752752
To see what version of Python you have: >
753753
:py3 import sys
754754
:py3 print(sys.version)
755-
755+
< *:py3file*
756756
The `:py3file` command works similar to `:pyfile`.
757757
*:py3do*
758758
The `:py3do` command works similar to `:pydo`.

runtime/doc/options.txt

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

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -6337,7 +6337,7 @@ A jump table for the options with a short description can be found at |Q_op|.
63376337
NOTE: This option is set to 1 when 'compatible' is set.
63386338

63396339
*'scrolloff'* *'so'*
6340-
'scrolloff' 'so' number (default 0)
6340+
'scrolloff' 'so' number (default 0, set to 5 in |defaults.vim|)
63416341
global
63426342
{not in Vi}
63436343
Minimal number of screen lines to keep above and below the cursor.
@@ -7842,7 +7842,7 @@ A jump table for the options with a short description can be found at |Q_op|.
78427842
'timeout' 'to' boolean (default on)
78437843
global
78447844
*'ttimeout'* *'nottimeout'*
7845-
'ttimeout' boolean (default off)
7845+
'ttimeout' boolean (default off, set in |defaults.vim|))
78467846
global
78477847
{not in Vi}
78487848
These two options together determine the behavior when part of a
@@ -7877,7 +7877,7 @@ A jump table for the options with a short description can be found at |Q_op|.
78777877
global
78787878
{not in all versions of Vi}
78797879
*'ttimeoutlen'* *'ttm'*
7880-
'ttimeoutlen' 'ttm' number (default -1)
7880+
'ttimeoutlen' 'ttm' number (default -1, set to 100 in |defaults.vim|))
78817881
global
78827882
{not in Vi}
78837883
The time in milliseconds that is waited for a key code or mapped key

runtime/doc/tags

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6428,6 +6428,8 @@ g:vimsyn_maxlines syntax.txt /*g:vimsyn_maxlines*
64286428
g:vimsyn_minlines syntax.txt /*g:vimsyn_minlines*
64296429
g:vimsyn_noerror syntax.txt /*g:vimsyn_noerror*
64306430
g:yaml_schema syntax.txt /*g:yaml_schema*
6431+
g:zipPlugin_ext pi_zip.txt /*g:zipPlugin_ext*
6432+
g:zip_extractcmd pi_zip.txt /*g:zip_extractcmd*
64316433
g:zip_nomax pi_zip.txt /*g:zip_nomax*
64326434
g:zip_shq pi_zip.txt /*g:zip_shq*
64336435
g:zip_unzipcmd pi_zip.txt /*g:zip_unzipcmd*
@@ -9483,6 +9485,7 @@ zip-extension pi_zip.txt /*zip-extension*
94839485
zip-history pi_zip.txt /*zip-history*
94849486
zip-manual pi_zip.txt /*zip-manual*
94859487
zip-usage pi_zip.txt /*zip-usage*
9488+
zip-x pi_zip.txt /*zip-x*
94869489
zj fold.txt /*zj*
94879490
zk fold.txt /*zk*
94889491
zl scroll.txt /*zl*

runtime/doc/tagsrch.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*tagsrch.txt* For Vim version 8.0. Last change: 2016 Aug 20
1+
*tagsrch.txt* For Vim version 8.0. Last change: 2016 Sep 20
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -91,7 +91,7 @@ The ignore-case matches are not found for a ":tag" command when:
9191
- 'tagcase' is "followscs" and 'smartcase' option is on and the pattern
9292
contains an upper case character.
9393

94-
The gnore-case matches are found when:
94+
The ignore-case matches are found when:
9595
- a pattern is used (starting with a "/")
9696
- for ":tselect"
9797
- when 'tagcase' is "followic" and 'ignorecase' is off

runtime/doc/todo.txt

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*todo.txt* For Vim version 8.0. Last change: 2016 Sep 16
1+
*todo.txt* For Vim version 8.0. Last change: 2016 Sep 22
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -34,10 +34,25 @@ not be repeated below, unless there is extra information.
3434
*known-bugs*
3535
-------------------- Known bugs and current work -----------------------
3636

37+
Ukrainian translations (Anatolii Sakhnik, 2016 Sep 15)
38+
3739
Netbeans test fails with Python 3. (jonathon, 2016 Sep 13, #1070)
3840

3941
Revert 7.4.990? (Christian Brabandt, 2016 Sep 16)
4042

43+
Update for ratpoison (Magnus Woldrich, 2016 Sep 15)
44+
45+
Crash when editing file with only encryption header. (igor2x, 2016 Sep 18,
46+
#1096) Patch by Christian, Sep 22.
47+
48+
Idea from Sven: record sequence of keys. Useful to show others what they are
49+
doing (look over the shoulder), and also to see what happened.
50+
Probably list of keystrokes, with some annotations for mode changes.
51+
Could store in logfile to be able to analyise it with an external command.
52+
E.g. to see when's the last time a plugin command was used.
53+
54+
Patch for typos. (Matthew Brener, 2016 Sep 16, #1088)
55+
4156
After 8.0 is released:
4257
- Drop support for older MS-Windows systems, before XP.
4358
Patch from Ken Takata, updated 2016 Sep 12.
@@ -110,6 +125,11 @@ Regexp problems:
110125
matches the empty string. (Dominique Pelle, 2015 Oct 2, Nov 24)
111126
had_endbrace[] is set but not initialized or used.
112127

128+
Strang syntax highlighting problem. (Brett Stahlman, 2016 Sep 17)
129+
130+
Patch to convert test_command_count into new style. (Naruhiko Nishino, 2016
131+
Sep 17)
132+
113133
json_encode(): should convert to utf-8. (Nikolai Pavlov, 2016 Jan 23)
114134
What if there is an invalid character?
115135

@@ -135,6 +155,7 @@ Use ADDR_OTHER instead of ADDR_LINES for many more commands.
135155
Add tests for using number larger than number of lines in buffer.
136156

137157
Invalid behavior with NULL list. (Nikolai Pavlov, #768)
158+
E.g. deepcopy(test_null_list())
138159

139160
min() and max() spawn lots of error messages if sorted list/dictionary
140161
contains invalid data (Nikolay Pavlov, 2016 Sep 4, #1039)
@@ -148,12 +169,20 @@ sort() is not stable when using numeric/float sort (Nikolay Pavlov, 2016 Sep
148169

149170
cmap using execute() has side effects. (Killthemule, 2016 Aug 17, #983)
150171

172+
Patch to change order of compiler flags. (Yousong Zhou, 2016 Sep 19, #1100)
173+
174+
Patch for :pyx, run python commands depending on the supported version.
175+
(Marc Weber, update from Ken Takata, 2016 Sep 19)
176+
151177
When using ":diffput" through a mapping, undo in the target buffer isn't
152178
synced. (Ryan Carney, 2016 Sep 14)
153179

154180
Syntax highlighting for messages with RFC3339 timestamp (#946)
155181
Did maintainer reply?
156182

183+
Patch to avoid problem with special characters in file name.
184+
(Shougo, 2016 Sept 19, #1099) Not finished?
185+
157186
ml_get errors when reloading file. (Chris Desjardins, 2016 Apr 19)
158187
Also with latest version.
159188

@@ -183,6 +212,9 @@ This does not work: :set cscopequickfix=a-
183212

184213
Possibly wrong value for seq_cur. (Florent Fayolle, 2016 May 15, #806)
185214

215+
Patch to add separate highlighting for quickfix current line.
216+
(anishsane, 2016 Sep 16, #1080)
217+
186218
Filetype plugin for awk. (Doug Kearns, 2016 Sep 5)
187219

188220
Patch to improve map documentation. Issue #799.

runtime/filetype.vim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim support file to detect file types
22
"
33
" Maintainer: Bram Moolenaar <[email protected]>
4-
" Last Change: 2016 Sep 15
4+
" Last Change: 2016 Sep 22
55

66
" Listen very carefully, I will say this only once
77
if exists("did_load_filetypes")
@@ -809,6 +809,10 @@ au BufNewFile,BufRead *.gp,.gprc setf gp
809809
au BufNewFile,BufRead */.gnupg/options setf gpg
810810
au BufNewFile,BufRead */.gnupg/gpg.conf setf gpg
811811
au BufNewFile,BufRead */usr/*/gnupg/options.skel setf gpg
812+
if !empty($GNUPGHOME)
813+
au BufNewFile,BufRead $GNUPGHOME/options setf gpg
814+
au BufNewFile,BufRead $GNUPGHOME/gpg.conf setf gpg
815+
endif
812816

813817
" gnash(1) configuration files
814818
au BufNewFile,BufRead gnashrc,.gnashrc,gnashpluginrc,.gnashpluginrc setf gnash

0 commit comments

Comments
 (0)