Skip to content

Commit b4bd0d3

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 0ed1f47 + 9172d23 commit b4bd0d3

Some content is hidden

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

97 files changed

+6092
-5688
lines changed

Filelist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ SRC_ALL = \
1414
src/arabic.c \
1515
src/arabic.h \
1616
src/ascii.h \
17+
src/autocmd.c \
1718
src/beval.c \
1819
src/beval.h \
1920
src/blob.c \
@@ -146,6 +147,7 @@ SRC_ALL = \
146147
src/proto.h \
147148
src/protodef.h \
148149
src/proto/arabic.pro \
150+
src/proto/autocmd.pro \
149151
src/proto/beval.pro \
150152
src/proto/blob.pro \
151153
src/proto/blowfish.pro \

runtime/doc/autocmd.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim version 8.1. Last change: 2019 Jan 11
1+
*autocmd.txt* For Vim version 8.1. Last change: 2019 Jan 19
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -311,6 +311,7 @@ Name triggered by ~
311311
|FuncUndefined| a user function is used but it isn't defined
312312
|SpellFileMissing| a spell file is used but it can't be found
313313
|SourcePre| before sourcing a Vim script
314+
|SourcePost| after sourcing a Vim script
314315
|SourceCmd| before sourcing a Vim script |Cmd-event|
315316

316317
|VimResized| after the Vim window size changed

runtime/doc/eval.txt

Lines changed: 42 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 8.1. Last change: 2019 Jan 24
1+
*eval.txt* For Vim version 8.1. Last change: 2019 Jan 29
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -696,7 +696,7 @@ similar to -1. >
696696
:let otherblob = myblob[:] " make a copy of the Blob
697697
698698
If the first index is beyond the last byte of the Blob or the second index is
699-
before the first byte, the result is an empty list. There is no error
699+
before the first index, the result is an empty list. There is no error
700700
message.
701701

702702
If the second index is equal to or greater than the length of the list the
@@ -2511,7 +2511,10 @@ remote_read({serverid} [, {timeout}])
25112511
remote_send({server}, {string} [, {idvar}])
25122512
String send key sequence
25132513
remote_startserver({name}) none become server {name}
2514-
remove({list}, {idx} [, {end}]) any remove items {idx}-{end} from {list}
2514+
remove({list}, {idx} [, {end}]) any/List
2515+
remove items {idx}-{end} from {list}
2516+
remove({blob}, {idx} [, {end}]) Number/Blob
2517+
remove bytes {idx}-{end} from {blob}
25152518
remove({dict}, {key}) any remove entry {key} from {dict}
25162519
rename({from}, {to}) Number rename (move) file from {from} to {to}
25172520
repeat({expr}, {count}) String repeat {expr} {count} times
@@ -6056,13 +6059,9 @@ line({expr}) The result is a Number, which is the line number of the file
60566059
line(".") line number of the cursor
60576060
line("'t") line number of mark t
60586061
line("'" . marker) line number of mark marker
6059-
< *last-position-jump*
6060-
This autocommand jumps to the last known position in a file
6061-
just after opening it, if the '" mark is set: >
6062-
:au BufReadPost *
6063-
\ if line("'\"") > 1 && line("'\"") <= line("$") && &ft !~# 'commit'
6064-
\ | exe "normal! g`\""
6065-
\ | endif
6062+
<
6063+
To jump to the last known position when opening a file see
6064+
|last-position-jump|.
60666065

60676066
line2byte({lnum}) *line2byte()*
60686067
Return the byte count from the start of the buffer for line
@@ -6504,8 +6503,10 @@ min({expr}) Return the minimum value of all items in {expr}.
65046503
*mkdir()* *E739*
65056504
mkdir({name} [, {path} [, {prot}]])
65066505
Create directory {name}.
6506+
65076507
If {path} is "p" then intermediate directories are created as
65086508
necessary. Otherwise it must be "".
6509+
65096510
If {prot} is given it is used to set the protection bits of
65106511
the new directory. The default is 0755 (rwxr-xr-x: r/w for
65116512
the user readable for others). Use 0700 to make it unreadable
@@ -6514,9 +6515,17 @@ mkdir({name} [, {path} [, {prot}]])
65146515
with 0755.
65156516
Example: >
65166517
:call mkdir($HOME . "/tmp/foo/bar", "p", 0700)
6518+
65176519
< This function is not available in the |sandbox|.
6520+
65186521
There is no error if the directory already exists and the "p"
6519-
flag is passed (since patch 8.0.1708).
6522+
flag is passed (since patch 8.0.1708). However, without the
6523+
"p" option the call will fail.
6524+
6525+
The function result is a Number, which is 1 if the call was
6526+
successful or 0 if the directory creation failed or partly
6527+
failed.
6528+
65206529
Not available on all systems. To check use: >
65216530
:if exists("*mkdir")
65226531
<
@@ -7325,6 +7334,9 @@ remove({list}, {idx} [, {end}]) *remove()*
73257334
Example: >
73267335
:echo "last item: " . remove(mylist, -1)
73277336
:call remove(mylist, 0, 9)
7337+
<
7338+
Use |delete()| to remove a file.
7339+
73287340
remove({blob}, {idx} [, {end}])
73297341
Without {end}: Remove the byte at {idx} from |Blob| {blob} and
73307342
return the byte.
@@ -7335,13 +7347,12 @@ remove({blob}, {idx} [, {end}])
73357347
Example: >
73367348
:echo "last byte: " . remove(myblob, -1)
73377349
:call remove(mylist, 0, 9)
7350+
73387351
remove({dict}, {key})
73397352
Remove the entry from {dict} with key {key}. Example: >
73407353
:echo "removed " . remove(dict, "one")
73417354
< If there is no {key} in {dict} this is an error.
73427355

7343-
Use |delete()| to remove a file.
7344-
73457356
rename({from}, {to}) *rename()*
73467357
Rename the file by the name {from} to the name {to}. This
73477358
should also work to move files across file systems. The
@@ -9724,10 +9735,10 @@ type({expr}) The result is a Number representing the type of {expr}.
97249735
Dictionary: 4 |v:t_dict|
97259736
Float: 5 |v:t_float|
97269737
Boolean: 6 |v:t_bool| (v:false and v:true)
9727-
None 7 |v:t_none| (v:null and v:none)
9728-
Job 8 |v:t_job|
9729-
Channel 9 |v:t_channel|
9730-
Blob 10 |v:t_blob|
9738+
None: 7 |v:t_none| (v:null and v:none)
9739+
Job: 8 |v:t_job|
9740+
Channel: 9 |v:t_channel|
9741+
Blob: 10 |v:t_blob|
97319742
For backward compatibility, this method can be used: >
97329743
:if type(myvar) == type(0)
97339744
:if type(myvar) == type("")
@@ -10150,7 +10161,7 @@ all_builtin_terms Compiled with all builtin terminals enabled.
1015010161
amiga Amiga version of Vim.
1015110162
arabic Compiled with Arabic support |Arabic|.
1015210163
arp Compiled with ARP support (Amiga).
10153-
autocmd Compiled with autocommand support. |autocommand|
10164+
autocmd Compiled with autocommand support. (always true)
1015410165
autochdir Compiled with support for 'autochdir'
1015510166
autoservername Automatically enable |clientserver|
1015610167
balloon_eval Compiled with |balloon-eval| support.
@@ -10159,6 +10170,7 @@ beos BeOS version of Vim.
1015910170
browse Compiled with |:browse| support, and browse() will
1016010171
work.
1016110172
browsefilter Compiled with support for |browsefilter|.
10173+
bsd Compiled on an OS in the BSD family (excluding macOS).
1016210174
builtin_terms Compiled with some builtin terminals.
1016310175
byte_offset Compiled with support for 'o' in 'statusline'
1016410176
cindent Compiled with 'cindent' support.
@@ -10171,6 +10183,7 @@ comments Compiled with |'comments'| support.
1017110183
compatible Compiled to be very Vi compatible.
1017210184
cryptv Compiled with encryption support |encryption|.
1017310185
cscope Compiled with |cscope| support.
10186+
cursorbind Compiled with |cursorbind| (always true)
1017410187
debug Compiled with "DEBUG" defined.
1017510188
dialog_con Compiled with console dialog support.
1017610189
dialog_gui Compiled with GUI dialog support.
@@ -10182,7 +10195,7 @@ ebcdic Compiled on a machine with ebcdic character set.
1018210195
emacs_tags Compiled with support for Emacs tags.
1018310196
eval Compiled with expression evaluation support. Always
1018410197
true, of course!
10185-
ex_extra |+ex_extra|, always true now
10198+
ex_extra |+ex_extra| (always true)
1018610199
extra_search Compiled with support for |'incsearch'| and
1018710200
|'hlsearch'|
1018810201
farsi Compiled with Farsi support |farsi|.
@@ -10213,6 +10226,7 @@ gui_running Vim is running in the GUI, or it will start soon.
1021310226
gui_win32 Compiled with MS Windows Win32 GUI.
1021410227
gui_win32s idem, and Win32s system being used (Windows 3.1)
1021510228
hangul_input Compiled with Hangul input support. |hangul|
10229+
hpux HP-UX version of Vim.
1021610230
iconv Can use iconv() for conversion.
1021710231
insert_expand Compiled with support for CTRL-X expansion commands in
1021810232
Insert mode.
@@ -10223,6 +10237,7 @@ langmap Compiled with 'langmap' support.
1022310237
libcall Compiled with |libcall()| support.
1022410238
linebreak Compiled with 'linebreak', 'breakat', 'showbreak' and
1022510239
'breakindent' support.
10240+
linux Linux version of Vim.
1022610241
lispindent Compiled with support for lisp indenting.
1022710242
listcmds Compiled with commands for the buffer list |:files|
1022810243
and the argument list |arglist|.
@@ -10274,14 +10289,15 @@ quickfix Compiled with |quickfix| support.
1027410289
reltime Compiled with |reltime()| support.
1027510290
rightleft Compiled with 'rightleft' support.
1027610291
ruby Compiled with Ruby interface |ruby|.
10277-
scrollbind Compiled with 'scrollbind' support.
10292+
scrollbind Compiled with 'scrollbind' support. (always true)
1027810293
showcmd Compiled with 'showcmd' support.
1027910294
signs Compiled with |:sign| support.
1028010295
smartindent Compiled with 'smartindent' support.
1028110296
spell Compiled with spell checking support |spell|.
1028210297
startuptime Compiled with |--startuptime| support.
1028310298
statusline Compiled with support for 'statusline', 'rulerformat'
1028410299
and special formats of 'titlestring' and 'iconstring'.
10300+
sun SunOS version of Vim.
1028510301
sun_workshop Support for Sun |workshop| has been removed.
1028610302
syntax Compiled with syntax highlighting support |syntax|.
1028710303
syntax_items There are active syntax highlighting items for the
@@ -10315,27 +10331,29 @@ user_commands User-defined commands.
1031510331
vcon Win32: Virtual console support is working, can use
1031610332
'termguicolors'. Also see |+vtp|.
1031710333
vertsplit Compiled with vertically split windows |:vsplit|.
10334+
(always true)
1031810335
vim_starting True while initial source'ing takes place. |startup|
1031910336
*vim_starting*
1032010337
viminfo Compiled with viminfo support.
10321-
virtualedit Compiled with 'virtualedit' option.
10338+
virtualedit Compiled with 'virtualedit' option. (always true)
1032210339
visual Compiled with Visual mode. (always true)
1032310340
visualextra Compiled with extra Visual mode commands. (always
1032410341
true) |blockwise-operators|.
1032510342
vms VMS version of Vim.
10326-
vreplace Compiled with |gR| and |gr| commands.
10343+
vreplace Compiled with |gR| and |gr| commands. (always true)
1032710344
vtp Compiled for vcon support |+vtp| (check vcon to find
1032810345
out if it works in the current console).
1032910346
wildignore Compiled with 'wildignore' option.
1033010347
wildmenu Compiled with 'wildmenu' option.
10331-
win16 old version for MS-Windows 3.1 (always False)
10348+
win16 old version for MS-Windows 3.1 (always false)
1033210349
win32 Win32 version of Vim (MS-Windows 95 and later, 32 or
1033310350
64 bits)
1033410351
win32unix Win32 version of Vim, using Unix files (Cygwin)
1033510352
win64 Win64 version of Vim (MS-Windows 64 bit).
10336-
win95 Win32 version for MS-Windows 95/98/ME (always False)
10353+
win95 Win32 version for MS-Windows 95/98/ME (always false)
1033710354
winaltkeys Compiled with 'winaltkeys' option.
1033810355
windows Compiled with support for more than one window.
10356+
(always true)
1033910357
writebackup Compiled with 'writebackup' default on.
1034010358
xfontset Compiled with X fontset support |xfontset|.
1034110359
xim Compiled with X input method support |xim|.

runtime/doc/os_vms.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*os_vms.txt* For Vim version 8.1. Last change: 2019 Jan 18
1+
*os_vms.txt* For Vim version 8.1. Last change: 2019 Jan 19
22

33

44
VIM REFERENCE MANUAL
@@ -104,7 +104,7 @@ to set up GUI fonts etc. correctly. See :help xim from Vim command prompt.
104104
You may want to use GUI with GTK icons, then you have to download and install
105105
GTK for OpenVMS or at least runtime shareable images - LIBGTK from
106106
polarhome.com
107-
Post 7.2 Vim uses GTK2+ while the last GTK on OpenVMS is 1.2.10, thefore
107+
Post 7.2 Vim uses GTK2+ while the last GTK on OpenVMS is 1.2.10, therefore
108108
the GTK build is no longer available.
109109

110110
For more advanced questions, please send your problem to Vim on VMS mailing

runtime/doc/spell.txt

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*spell.txt* For Vim version 8.1. Last change: 2019 Jan 09
1+
*spell.txt* For Vim version 8.1. Last change: 2019 Jan 19
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1582,6 +1582,10 @@ CHECKCOMPOUNDTRIPLE (Hunspell) *spell-CHECKCOMPOUNDTRIPLE*
15821582
Forbid three identical characters when compounding. Not
15831583
supported.
15841584

1585+
CHECKSHARPS (Hunspell)) *spell-CHECKSHARPS*
1586+
SS letter pair in uppercased (German) words may be upper case
1587+
sharp s (ß). Not supported.
1588+
15851589
COMPLEXPREFIXES (Hunspell) *spell-COMPLEXPREFIXES*
15861590
Enables using two prefixes. Not supported.
15871591

@@ -1595,12 +1599,21 @@ COMPOUNDFIRST (Hunspell) *spell-COMPOUNDFIRST*
15951599
Use COMPOUNDRULE instead. |spell-COMPOUNDRULE|
15961600

15971601
COMPOUNDBEGIN (Hunspell) *spell-COMPOUNDBEGIN*
1602+
Words signed with COMPOUNDBEGIN may be first elements in
1603+
compound words.
15981604
Use COMPOUNDRULE instead. |spell-COMPOUNDRULE|
15991605

1600-
COMPOUNDEND (Hunspell) *spell-COMPOUNDEND*
1606+
COMPOUNDLAST (Hunspell) *spell-COMPOUNDLAST*
1607+
Words signed with COMPOUNDLAST may be last elements in
1608+
compound words.
16011609
Use COMPOUNDRULE instead. |spell-COMPOUNDRULE|
16021610

1611+
COMPOUNDEND (Hunspell) *spell-COMPOUNDEND*
1612+
Probably the same as COMPOUNDLAST
1613+
16031614
COMPOUNDMIDDLE (Hunspell) *spell-COMPOUNDMIDDLE*
1615+
Words signed with COMPOUNDMIDDLE may be middle elements in
1616+
compound words.
16041617
Use COMPOUNDRULE instead. |spell-COMPOUNDRULE|
16051618

16061619
COMPOUNDRULES (Hunspell) *spell-COMPOUNDRULES*

runtime/doc/tags

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4646,7 +4646,10 @@ E892 eval.txt /*E892*
46464646
E893 eval.txt /*E893*
46474647
E894 eval.txt /*E894*
46484648
E895 if_mzsch.txt /*E895*
4649+
E896 eval.txt /*E896*
4650+
E897 eval.txt /*E897*
46494651
E898 channel.txt /*E898*
4652+
E899 eval.txt /*E899*
46504653
E90 message.txt /*E90*
46514654
E901 channel.txt /*E901*
46524655
E902 channel.txt /*E902*
@@ -4734,6 +4737,7 @@ E977 eval.txt /*E977*
47344737
E978 eval.txt /*E978*
47354738
E979 eval.txt /*E979*
47364739
E98 diff.txt /*E98*
4740+
E980 eval.txt /*E980*
47374741
E99 diff.txt /*E99*
47384742
EX intro.txt /*EX*
47394743
EXINIT starting.txt /*EXINIT*
@@ -8683,6 +8687,7 @@ spell-CHECKCOMPOUNDDUP spell.txt /*spell-CHECKCOMPOUNDDUP*
86838687
spell-CHECKCOMPOUNDPATTERN spell.txt /*spell-CHECKCOMPOUNDPATTERN*
86848688
spell-CHECKCOMPOUNDREP spell.txt /*spell-CHECKCOMPOUNDREP*
86858689
spell-CHECKCOMPOUNDTRIPLE spell.txt /*spell-CHECKCOMPOUNDTRIPLE*
8690+
spell-CHECKSHARPS spell.txt /*spell-CHECKSHARPS*
86868691
spell-CIRCUMFIX spell.txt /*spell-CIRCUMFIX*
86878692
spell-COMMON spell.txt /*spell-COMMON*
86888693
spell-COMPLEXPREFIXES spell.txt /*spell-COMPLEXPREFIXES*
@@ -8692,6 +8697,7 @@ spell-COMPOUNDEND spell.txt /*spell-COMPOUNDEND*
86928697
spell-COMPOUNDFIRST spell.txt /*spell-COMPOUNDFIRST*
86938698
spell-COMPOUNDFLAG spell.txt /*spell-COMPOUNDFLAG*
86948699
spell-COMPOUNDFORBIDFLAG spell.txt /*spell-COMPOUNDFORBIDFLAG*
8700+
spell-COMPOUNDLAST spell.txt /*spell-COMPOUNDLAST*
86958701
spell-COMPOUNDMIDDLE spell.txt /*spell-COMPOUNDMIDDLE*
86968702
spell-COMPOUNDMIN spell.txt /*spell-COMPOUNDMIN*
86978703
spell-COMPOUNDPERMITFLAG spell.txt /*spell-COMPOUNDPERMITFLAG*

runtime/doc/term.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*term.txt* For Vim version 8.1. Last change: 2017 Oct 14
1+
*term.txt* For Vim version 8.1. Last change: 2019 Jan 19
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -334,11 +334,15 @@ Added by Vim (there are no standard codes for these):
334334
t_EI end insert or replace mode (block cursor shape) *t_EI* *'t_EI'*
335335
|termcap-cursor-shape|
336336
t_RV request terminal version string (for xterm) *t_RV* *'t_RV'*
337-
|xterm-8bit| |v:termresponse| |'ttymouse'| |xterm-codes|
337+
The response is stored in |v:termresponse|
338+
|xterm-8bit| |'ttymouse'| |xterm-codes|
338339
t_u7 request cursor position (for xterm) *t_u7* *'t_u7'*
339340
see |'ambiwidth'|
341+
The response is stored in |v:termu7resp|
340342
t_RF request terminal foreground color *t_RF* *'t_RF'*
343+
The response is stored in |v:termrfgresp|
341344
t_RB request terminal background color *t_RB* *'t_RB'*
345+
The response is stored in |v:termrbgresp|
342346
t_8f set foreground color (R, G, B) *t_8f* *'t_8f'*
343347
|xterm-true-color|
344348
t_8b set background color (R, G, B) *t_8b* *'t_8b'*
@@ -351,7 +355,9 @@ Added by Vim (there are no standard codes for these):
351355
t_EC set cursor color end *t_EC* *'t_EC'*
352356
t_SH set cursor shape *t_SH* *'t_SH'*
353357
t_RC request terminal cursor blinking *t_RC* *'t_RC'*
358+
The response is stored in |v:termblinkresp|
354359
t_RS request terminal cursor style *t_RS* *'t_RS'*
360+
The response is stored in |v:termstyleresp|
355361
t_ST save window title to stack *t_ST* *'t_ST'*
356362
t_RT restore window title from stack *t_RT* *'t_RT'*
357363
t_Si save icon text to stack *t_Si* *'t_Si'*

0 commit comments

Comments
 (0)