Skip to content

Commit 314dd79

Browse files
committed
Update runtime files.
1 parent 63d1fea commit 314dd79

File tree

27 files changed

+731
-1275
lines changed

27 files changed

+731
-1275
lines changed

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 <[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

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 <[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

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 <[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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10193,7 +10193,7 @@ compatible Compiled to be very Vi compatible.
1019310193
conpty Platform where |ConPTY| can be used.
1019410194
cryptv Compiled with encryption support |encryption|.
1019510195
cscope Compiled with |cscope| support.
10196-
cursorbind Compiled with |cursorbind| (always true)
10196+
cursorbind Compiled with |'cursorbind'| (always true)
1019710197
debug Compiled with "DEBUG" defined.
1019810198
dialog_con Compiled with console dialog support.
1019910199
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

runtime/doc/insert.txt

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

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

runtime/doc/os_vms.txt

Lines changed: 5 additions & 5 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 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"

0 commit comments

Comments
 (0)