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

Lines changed: 2 additions & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 18 additions & 28 deletions
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 <Bram@vim.org>
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

Lines changed: 2 additions & 4 deletions
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 <Bram@vim.org>
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

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" The default vimrc file.
22
"
33
" Maintainer: Bram Moolenaar <Bram@vim.org>
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

Lines changed: 8 additions & 3 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 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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

0 commit comments

Comments
 (0)