Skip to content

Commit b87cb34

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents a7b708b + 9700764 commit b87cb34

Some content is hidden

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

46 files changed

+1442
-1357
lines changed

Filelist

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ SRC_ALL = \
77
.lgtm.yml \
88
.travis.yml \
99
appveyor.yml \
10+
ci/appveyor.bat \
1011
src/Make_all.mak \
11-
src/appveyor.bat \
1212
src/README.txt \
1313
src/alloc.h \
1414
src/arabic.c \
@@ -664,6 +664,7 @@ RT_ALL = \
664664
runtime/pack/dist/opt/matchit/plugin/matchit.vim \
665665
runtime/pack/dist/opt/matchit/doc/matchit.txt \
666666
runtime/pack/dist/opt/matchit/doc/tags \
667+
runtime/pack/dist/opt/matchit/autoload/*.vim \
667668
runtime/pack/dist/opt/shellmenu/plugin/shellmenu.vim \
668669
runtime/pack/dist/opt/swapmouse/plugin/swapmouse.vim \
669670
runtime/pack/dist/opt/termdebug/plugin/termdebug.vim \

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ before_build:
1919
- 'set INCLUDE=%INCLUDE%C:\Program Files (x86)\Windows Kits\8.1\Include\um'
2020

2121
build_script:
22-
- src/appveyor.bat
22+
- ci/appveyor.bat
2323

2424
test_script:
2525
- cd src/testdir
File renamed without changes.

runtime/autoload/paste.vim

+18-28
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,25 @@
11
" Vim support file to help with paste mappings and menus
22
" Maintainer: Bram Moolenaar <[email protected]>
3-
" Last Change: 2017 Aug 30
3+
" Last Change: 2019 Jan 27
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.
77

8-
" Pasting blockwise and linewise selections is not possible in Insert and
9-
" Visual mode without the +virtualedit feature. They are pasted as if they
10-
" were characterwise instead. Add to that some tricks to leave the cursor in
11-
" the right position, also for "gi".
12-
if has("virtualedit")
13-
let paste#paste_cmd = {'n': ":call paste#Paste()<CR>"}
14-
let paste#paste_cmd['v'] = '"-c<Esc>' . paste#paste_cmd['n']
15-
let paste#paste_cmd['i'] = "\<c-\>\<c-o>\"+gP"
8+
let paste#paste_cmd = {'n': ":call paste#Paste()<CR>"}
9+
let paste#paste_cmd['v'] = '"-c<Esc>' . paste#paste_cmd['n']
10+
let paste#paste_cmd['i'] = "\<c-\>\<c-o>\"+gP"
1611

17-
func! paste#Paste()
18-
let ove = &ve
19-
set ve=all
20-
normal! `^
21-
if @+ != ''
22-
normal! "+gP
23-
endif
24-
let c = col(".")
25-
normal! i
26-
if col(".") < c " compensate for i<ESC> moving the cursor left
27-
normal! l
28-
endif
29-
let &ve = ove
30-
endfunc
31-
else
32-
let paste#paste_cmd = {'n': "\"=@+.'xy'<CR>gPFx\"_2x"}
33-
let paste#paste_cmd['v'] = '"-c<Esc>gix<Esc>' . paste#paste_cmd['n'] . '"_x'
34-
let paste#paste_cmd['i'] = 'x<Esc>' . paste#paste_cmd['n'] . '"_s'
35-
endif
12+
func! paste#Paste()
13+
let ove = &ve
14+
set ve=all
15+
normal! `^
16+
if @+ != ''
17+
normal! "+gP
18+
endif
19+
let c = col(".")
20+
normal! i
21+
if col(".") < c " compensate for i<ESC> moving the cursor left
22+
normal! l
23+
endif
24+
let &ve = ove
25+
endfunc

runtime/bugreport.vim

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
:" information about the environment of a possible bug in Vim.
33
:"
44
:" Maintainer: Bram Moolenaar <[email protected]>
5-
:" Last change: 2005 Jun 12
5+
:" Last change: 2019 Jan 27
66
:"
77
:" To use inside Vim:
88
:" :so $VIMRUNTIME/bugreport.vim
@@ -54,9 +54,7 @@
5454
:endif
5555
:set all
5656
:set termcap
57-
:if has("autocmd")
58-
: au
59-
:endif
57+
:au
6058
:if 1
6159
: echo "--- Normal/Visual mode mappings ---"
6260
:endif

runtime/defaults.vim

+23-28
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" The default vimrc file.
22
"
33
" Maintainer: Bram Moolenaar <[email protected]>
4-
" Last change: 2017 Jun 13
4+
" Last change: 2019 Jan 26
55
"
66
" This is loaded if no vimrc file was found.
77
" Except when Vim is run with "-u NONE" or "-C".
@@ -90,33 +90,28 @@ if &t_Co > 2 || has("gui_running")
9090
let c_comment_strings=1
9191
endif
9292

93-
" Only do this part when compiled with support for autocommands.
94-
if has("autocmd")
95-
96-
" Enable file type detection.
97-
" Use the default filetype settings, so that mail gets 'tw' set to 72,
98-
" 'cindent' is on in C files, etc.
99-
" Also load indent files, to automatically do language-dependent indenting.
100-
" Revert with ":filetype off".
101-
filetype plugin indent on
102-
103-
" Put these in an autocmd group, so that you can revert them with:
104-
" ":augroup vimStartup | au! | augroup END"
105-
augroup vimStartup
106-
au!
107-
108-
" When editing a file, always jump to the last known cursor position.
109-
" Don't do it when the position is invalid, when inside an event handler
110-
" (happens when dropping a file on gvim) and for a commit message (it's
111-
" likely a different one than last time).
112-
autocmd BufReadPost *
113-
\ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit'
114-
\ | exe "normal! g`\""
115-
\ | endif
116-
117-
augroup END
118-
119-
endif " has("autocmd")
93+
" Enable file type detection.
94+
" Use the default filetype settings, so that mail gets 'tw' set to 72,
95+
" 'cindent' is on in C files, etc.
96+
" Also load indent files, to automatically do language-dependent indenting.
97+
" Revert with ":filetype off".
98+
filetype plugin indent on
99+
100+
" Put these in an autocmd group, so that you can revert them with:
101+
" ":augroup vimStartup | au! | augroup END"
102+
augroup vimStartup
103+
au!
104+
105+
" When editing a file, always jump to the last known cursor position.
106+
" Don't do it when the position is invalid, when inside an event handler
107+
" (happens when dropping a file on gvim) and for a commit message (it's
108+
" likely a different one than last time).
109+
autocmd BufReadPost *
110+
\ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit'
111+
\ | exe "normal! g`\""
112+
\ | endif
113+
114+
augroup END
120115

121116
" Convenient command to see the difference between the current buffer and the
122117
" file it was loaded from, thus the changes you made.

runtime/doc/eval.txt

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 8.1. Last change: 2019 Jan 29
1+
*eval.txt* For Vim version 8.1. Last change: 2019 Feb 03
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 index, the result is an empty list. There is no error
699+
before the first index, the result is an empty Blob. There is no error
700700
message.
701701

702702
If the second index is equal to or greater than the length of the list the
@@ -9469,6 +9469,10 @@ term_start({cmd}, {options}) *term_start()*
94699469
"ansi_colors" A list of 16 color names or hex codes
94709470
defining the ANSI palette used in GUI
94719471
color modes. See |g:terminal_ansi_colors|.
9472+
"term_mode" (MS-Windows only): Specify which pty to
9473+
use:
9474+
"winpty": Use winpty
9475+
"conpty": Use ConPTY (if available)
94729476

94739477
{only available when compiled with the |+terminal| feature}
94749478

@@ -10186,9 +10190,10 @@ cmdline_hist Compiled with |cmdline-history| support.
1018610190
cmdline_info Compiled with 'showcmd' and 'ruler' support.
1018710191
comments Compiled with |'comments'| support.
1018810192
compatible Compiled to be very Vi compatible.
10193+
conpty Platform where |ConPTY| can be used.
1018910194
cryptv Compiled with encryption support |encryption|.
1019010195
cscope Compiled with |cscope| support.
10191-
cursorbind Compiled with |cursorbind| (always true)
10196+
cursorbind Compiled with |'cursorbind'| (always true)
1019210197
debug Compiled with "DEBUG" defined.
1019310198
dialog_con Compiled with console dialog support.
1019410199
dialog_gui Compiled with GUI dialog support.

runtime/doc/if_perl.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*if_perl.txt* For Vim version 8.1. Last change: 2017 Nov 24
1+
*if_perl.txt* For Vim version 8.1. Last change: 2019 Jan 29
22

33

44
VIM REFERENCE MANUAL by Sven Verdoolaege
@@ -192,7 +192,7 @@ VIM::Eval({expr}) Evaluates {expr} and returns (success, value) in list
192192
and inserting line breaks.
193193

194194
*perl-Blob*
195-
VIM::Blob({expr}) Return Blob literal string 0zXXXX from scalar value.
195+
VIM::Blob({expr}) Return |Blob| literal string 0zXXXX from scalar value.
196196

197197
*perl-SetHeight*
198198
Window->SetHeight({height})

runtime/doc/if_ruby.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*if_ruby.txt* For Vim version 8.1. Last change: 2018 Mar 15
1+
*if_ruby.txt* For Vim version 8.1. Last change: 2019 Jan 29
22

33

44
VIM REFERENCE MANUAL by Shugo Maeda
@@ -112,7 +112,7 @@ Vim::message({msg})
112112

113113
*ruby-blob*
114114
Vim::blob({arg})
115-
Return Blob literal string from {arg}.
115+
Return |Blob| literal string from {arg}.
116116

117117
*ruby-set_option*
118118
Vim::set_option({arg})

runtime/doc/indent.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*indent.txt* For Vim version 8.1. Last change: 2018 Apr 04
1+
*indent.txt* For Vim version 8.1. Last change: 2019 Jan 31
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar

runtime/doc/insert.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*insert.txt* For Vim version 8.1. Last change: 2019 Jan 11
1+
*insert.txt* For Vim version 8.1. Last change: 2019 Jan 29
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1078,7 +1078,8 @@ that contains the List. The Dict can have these items:
10781078
leading text is changed.
10791079

10801080
If you want to suppress the warning message for an empty result, return
1081-
v:none. This is useful to implement asynchronous completion with complete().
1081+
|v:none|. This is useful to implement asynchronous completion with
1082+
|complete()|.
10821083

10831084
Other items are ignored.
10841085

runtime/doc/options.txt

+23-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 8.1. Last change: 2019 Jan 16
1+
*options.txt* For Vim version 8.1. Last change: 2019 Feb 03
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -354,12 +354,12 @@ files. You use this command: >
354354
:setlocal makeprg=perlmake
355355
You can switch back to using the global value by making the local value empty: >
356356
:setlocal makeprg=
357-
This only works for a string option. For a boolean option you need to use the
358-
"<" flag, like this: >
357+
This only works for a string option. For a number or boolean option you need
358+
to use the "<" flag, like this: >
359359
:setlocal autoread<
360-
Note that for non-boolean options using "<" copies the global value to the
361-
local value, it doesn't switch back to using the global value (that matters
362-
when the global value changes later). You can also use: >
360+
Note that for non-boolean and non-number options using "<" copies the global
361+
value to the local value, it doesn't switch back to using the global value
362+
(that matters when the global value changes later). You can also use: >
363363
:set path<
364364
This will make the local value of 'path' empty, so that the global value is
365365
used. Thus it does the same as: >
@@ -8218,6 +8218,23 @@ A jump table for the options with a short description can be found at |Q_op|.
82188218
Note that the "cterm" attributes are still used, not the "gui" ones.
82198219
NOTE: This option is reset when 'compatible' is set.
82208220

8221+
*'termmode'* *'tmod'*
8222+
'termmode' 'tmod' string (default "")
8223+
local to window
8224+
{not in Vi, MS-Windows only}
8225+
Whether the window uses winpty or |ConPTY| as the virtual console.
8226+
When set before opening the terminal, it influences what pty is used.
8227+
When opening the terminal it will be set to the actually used pty.
8228+
8229+
Possible values are:
8230+
"" use ConPTY if possible, winpty otherwise
8231+
"winpty" use winpty, fail if not supported
8232+
"conpty" use |ConPTY|, fail if not supported
8233+
8234+
|ConPTY| support depends on the platform (Windows 10 October 2018
8235+
edition). winpty support needs to be installed. If neither is
8236+
supported then you cannot open a terminal window.
8237+
82218238
*'termwinscroll'* *'twsl'*
82228239
'termwinscroll' 'twsl' number (default 10000)
82238240
local to buffer

runtime/doc/os_vms.txt

+5-5
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 19
1+
*os_vms.txt* For Vim version 8.1. Last change: 2019 Jan 29
22

33

44
VIM REFERENCE MANUAL
@@ -105,7 +105,7 @@ 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
107107
Post 7.2 Vim uses GTK2+ while the last GTK on OpenVMS is 1.2.10, therefore
108-
the GTK build is no longer available.
108+
the GTK build is no longer available.
109109

110110
For more advanced questions, please send your problem to Vim on VMS mailing
111111
@@ -772,9 +772,9 @@ Version 8.1
772772
Version 8.0
773773
- solve the 100% cpu usage issue while waiting for a keystroke
774774
- correct the VMS warnings and errors around handling the INFINITY (used in json.c)
775-
- minor VMS port related changes
776-
- correct the make_vms.mms file for 8.0
777-
- fix [.TESTDIR]make_vms.mms for 8.0
775+
- minor VMS port related changes
776+
- correct the make_vms.mms file for 8.0
777+
- fix [.TESTDIR]make_vms.mms for 8.0
778778

779779
Version 7.4
780780
- Undo: VMS can not handle more than one dot in the filenames use "dir/name" -> "dir/_un_name"

runtime/doc/tags

+9-1
Original file line numberDiff line numberDiff line change
@@ -1110,6 +1110,7 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
11101110
'termbidi' options.txt /*'termbidi'*
11111111
'termencoding' options.txt /*'termencoding'*
11121112
'termguicolors' options.txt /*'termguicolors'*
1113+
'termmode' options.txt /*'termmode'*
11131114
'termwinkey' options.txt /*'termwinkey'*
11141115
'termwinscroll' options.txt /*'termwinscroll'*
11151116
'termwinsize' options.txt /*'termwinsize'*
@@ -1130,6 +1131,7 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
11301131
'titlestring' options.txt /*'titlestring'*
11311132
'tl' options.txt /*'tl'*
11321133
'tm' options.txt /*'tm'*
1134+
'tmod' options.txt /*'tmod'*
11331135
'to' options.txt /*'to'*
11341136
'toolbar' options.txt /*'toolbar'*
11351137
'toolbariconsize' options.txt /*'toolbariconsize'*
@@ -1740,6 +1742,7 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
17401742
05.6 usr_05.txt /*05.6*
17411743
05.7 usr_05.txt /*05.7*
17421744
05.8 usr_05.txt /*05.8*
1745+
05.9 usr_05.txt /*05.9*
17431746
06.1 usr_06.txt /*06.1*
17441747
06.2 usr_06.txt /*06.2*
17451748
06.3 usr_06.txt /*06.3*
@@ -3795,6 +3798,7 @@ Colors.plist gui_mac.txt /*Colors.plist*
37953798
Command-line cmdline.txt /*Command-line*
37963799
Command-line-mode cmdline.txt /*Command-line-mode*
37973800
CompleteDone autocmd.txt /*CompleteDone*
3801+
ConPTY terminal.txt /*ConPTY*
37983802
Contents quickref.txt /*Contents*
37993803
Cscope if_cscop.txt /*Cscope*
38003804
CursorHold autocmd.txt /*CursorHold*
@@ -5089,7 +5093,10 @@ ZZ editing.txt /*ZZ*
50895093
[:cntrl:] pattern.txt /*[:cntrl:]*
50905094
[:digit:] pattern.txt /*[:digit:]*
50915095
[:escape:] pattern.txt /*[:escape:]*
5096+
[:fname:] pattern.txt /*[:fname:]*
50925097
[:graph:] pattern.txt /*[:graph:]*
5098+
[:ident:] pattern.txt /*[:ident:]*
5099+
[:keyword:] pattern.txt /*[:keyword:]*
50935100
[:lower:] pattern.txt /*[:lower:]*
50945101
[:print:] pattern.txt /*[:print:]*
50955102
[:punct:] pattern.txt /*[:punct:]*
@@ -5928,6 +5935,7 @@ dec-mouse options.txt /*dec-mouse*
59285935
decada_members ft_ada.txt /*decada_members*
59295936
deepcopy() eval.txt /*deepcopy()*
59305937
defaults.vim starting.txt /*defaults.vim*
5938+
defaults.vim-explained usr_05.txt /*defaults.vim-explained*
59315939
definition-search tagsrch.txt /*definition-search*
59325940
definitions intro.txt /*definitions*
59335941
delete() eval.txt /*delete()*
@@ -7398,7 +7406,7 @@ lambda eval.txt /*lambda*
73987406
lang-variable eval.txt /*lang-variable*
73997407
language-mapping map.txt /*language-mapping*
74007408
last-pattern pattern.txt /*last-pattern*
7401-
last-position-jump eval.txt /*last-position-jump*
7409+
last-position-jump usr_05.txt /*last-position-jump*
74027410
last_buffer_nr() eval.txt /*last_buffer_nr()*
74037411
latex-syntax syntax.txt /*latex-syntax*
74047412
lc_time-variable eval.txt /*lc_time-variable*

0 commit comments

Comments
 (0)