Skip to content

Commit d76626f

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 6c585c1 + 6100d02 commit d76626f

File tree

25 files changed

+1978
-1126
lines changed

25 files changed

+1978
-1126
lines changed

runtime/autoload/gzip.vim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
" Vim autoload file for editing compressed files.
22
" Maintainer: Bram Moolenaar <[email protected]>
3-
" Last Change: 2014 Nov 05
3+
" Last Change: 2016 Sep 28
44

55
" These functions are used by the gzip plugin.
66

@@ -63,6 +63,9 @@ fun gzip#read(cmd)
6363
" set 'modifiable'
6464
let ma_save = &ma
6565
setlocal ma
66+
" set 'write'
67+
let write_save = &write
68+
set write
6669
" Reset 'foldenable', otherwise line numbers get adjusted.
6770
if has("folding")
6871
let fen_save = &fen
@@ -127,6 +130,7 @@ fun gzip#read(cmd)
127130
let &pm = pm_save
128131
let &cpo = cpo_save
129132
let &l:ma = ma_save
133+
let &write = write_save
130134
if has("folding")
131135
let &l:fen = fen_save
132136
endif

runtime/doc/autocmd.txt

Lines changed: 14 additions & 5 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 21
1+
*autocmd.txt* For Vim version 8.0. Last change: 2016 Sep 27
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -79,11 +79,15 @@ exception is that "<sfile>" is expanded when the autocmd is defined. Example:
7979
8080
Here Vim expands <sfile> to the name of the file containing this line.
8181

82-
When your .vimrc file is sourced twice, the autocommands will appear twice.
83-
To avoid this, put this command in your .vimrc file, before defining
84-
autocommands: >
82+
`:autocmd` adds to the list of autocommands regardless of whether they are
83+
already present. When your .vimrc file is sourced twice, the autocommands
84+
will appear twice. To avoid this, define your autocommands in a group, so
85+
that you can easily clear them: >
8586
86-
:autocmd! " Remove ALL autocommands for the current group.
87+
augroup vimrc
88+
autocmd! " Remove all vimrc autocommands
89+
au BufNewFile,BufRead *.html so <sfile>:h/html.vim
90+
augroup END
8791
8892
If you don't want to remove all autocommands, you can instead use a variable
8993
to ensure that Vim includes the autocommands only once: >
@@ -130,8 +134,13 @@ prompt. When one command outputs two messages this can happen anyway.
130134

131135
:au[tocmd]! [group] {event}
132136
Remove ALL autocommands for {event}.
137+
Warning: You should not do this without a group for
138+
|BufRead| and other common events, it can break
139+
plugins, syntax highlighting, etc.
133140

134141
:au[tocmd]! [group] Remove ALL autocommands.
142+
Warning: You should normally not do this without a
143+
group, it breaks plugins, syntax highlighting, etc.
135144

136145
When the [group] argument is not given, Vim uses the current group (as defined
137146
with ":augroup"); otherwise, Vim uses the group defined with [group].

runtime/doc/change.txt

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

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -913,8 +913,7 @@ Exceptions:
913913
Substitute with an expression *sub-replace-expression*
914914
*sub-replace-\=* *s/\=*
915915
When the substitute string starts with "\=" the remainder is interpreted as an
916-
expression. This does not work recursively: a |substitute()| function inside
917-
the expression cannot use "\=" for the substitute string.
916+
expression.
918917

919918
The special meaning for characters as mentioned at |sub-replace-special| does
920919
not apply except for "<CR>". A <NL> character is used as a line break, you

runtime/doc/channel.txt

Lines changed: 7 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 20
1+
*channel.txt* For Vim version 8.0. Last change: 2016 Sep 29
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -465,6 +465,11 @@ it like this: >
465465
Without the handler you need to read the output with |ch_read()| or
466466
|ch_readraw()|. You can do this in the close callback, see |read-in-close-cb|.
467467

468+
Note that if the job exits before you read the output, the output may be lost.
469+
This depends on the system (on Unix this happens because closing the write end
470+
of a pipe causes the read end to get EOF). To avoid this make the job sleep
471+
for a short while before it exits.
472+
468473
The handler defined for "out_cb" will not receive stderr. If you want to
469474
handle that separately, add an "err_cb" handler: >
470475
let job = job_start(command, {"out_cb": "MyHandler",
@@ -516,7 +521,7 @@ If the job can take some time and you don't need intermediate results, you can
516521
add a close callback and read the output there: >
517522
518523
func! CloseHandler(channel)
519-
while ch_status(a:channel) == 'buffered'
524+
while ch_status(a:channel, {'part': 'out'}) == 'buffered'
520525
echomsg ch_read(a:channel)
521526
endwhile
522527
endfunc

runtime/doc/cmdline.txt

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

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -229,9 +229,10 @@ CTRL-Y When there is a modeless selection, copy the selection into
229229
the clipboard. |modeless-selection|
230230
If there is no selection CTRL-Y is inserted as a character.
231231

232-
CTRL-J *c_CTRL-J* *c_<NL>* *c_<CR>* *c_CR*
232+
CTRL-M or CTRL-J *c_CTRL-M* *c_CTRL-J* *c_<NL>* *c_<CR>* *c_CR*
233233
<CR> or <NL> start entered command
234-
*c_<Esc>* *c_Esc*
234+
235+
CTRL-[ *c_CTRL-[* *c_<Esc>* *c_Esc*
235236
<Esc> When typed and 'x' not present in 'cpoptions', quit
236237
Command-line mode without executing. In macros or when 'x'
237238
present in 'cpoptions', start entered command.

runtime/doc/editing.txt

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

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -181,7 +181,8 @@ start editing another file, Vim will refuse this. In order to overrule this
181181
protection, add a '!' to the command. The changes will then be lost. For
182182
example: ":q" will not work if the buffer was changed, but ":q!" will. To see
183183
whether the buffer was changed use the "CTRL-G" command. The message includes
184-
the string "[Modified]" if the buffer has been changed.
184+
the string "[Modified]" if the buffer has been changed, or "+" if the 'm' flag
185+
is in 'shortmess'.
185186

186187
If you want to automatically save the changes without asking, switch on the
187188
'autowriteall' option. 'autowrite' is the associated Vi-compatible option

runtime/doc/eval.txt

Lines changed: 10 additions & 7 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 25
1+
*eval.txt* For Vim version 8.0. Last change: 2016 Oct 02
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -3072,7 +3072,7 @@ ch_log({msg} [, {handle}]) *ch_log()*
30723072
When {handle} is passed the channel number is used for the
30733073
message.
30743074
{handle} can be Channel or a Job that has a Channel. The
3075-
Channel must open.
3075+
Channel must be open for the channel number to be used.
30763076

30773077
ch_logfile({fname} [, {mode}]) *ch_logfile()*
30783078
Start logging channel activity to {fname}.
@@ -3738,7 +3738,7 @@ filter({expr1}, {expr2}) *filter()*
37383738
call filter(myList, {idx, val -> idx * val <= 42})
37393739
< If you do not use "val" you can leave it out: >
37403740
call filter(myList, {idx -> idx % 2 == 1})
3741-
3741+
<
37423742
The operation is done in-place. If you want a |List| or
37433743
|Dictionary| to remain unmodified make a copy first: >
37443744
:let l = filter(copy(mylist), 'v:val =~ "KEEP"')
@@ -4369,7 +4369,7 @@ getfperm({fname}) *getfperm()*
43694369
< This will hopefully (from a security point of view) display
43704370
the string "rw-r--r--" or even "rw-------".
43714371

4372-
For setting permissins use |setfperm()|.
4372+
For setting permissions use |setfperm()|.
43734373

43744374
getftime({fname}) *getftime()*
43754375
The result is a Number, which is the last modification time of
@@ -6168,9 +6168,9 @@ range({expr} [, {max} [, {stride}]]) *range()*
61686168
*readfile()*
61696169
readfile({fname} [, {binary} [, {max}]])
61706170
Read file {fname} and return a |List|, each line of the file
6171-
as an item. Lines broken at NL characters. Macintosh files
6172-
separated with CR will result in a single long line (unless a
6173-
NL appears somewhere).
6171+
as an item. Lines are broken at NL characters. Macintosh
6172+
files separated with CR will result in a single long line
6173+
(unless a NL appears somewhere).
61746174
All NUL characters are replaced with a NL character.
61756175
When {binary} contains "b" binary mode is used:
61766176
- When the last line ends in a NL an extra empty list item is
@@ -7390,6 +7390,9 @@ submatch({nr}[, {list}]) *submatch()* *E935*
73907390
|substitute()| this list will always contain one or zero
73917391
items, since there are no real line breaks.
73927392

7393+
When substitute() is used recursively only the submatches in
7394+
the current (deepest) call can be obtained.
7395+
73937396
Example: >
73947397
:s/\d\+/\=submatch(0) + 1/
73957398
< This finds the first number in the line and adds one to it.

runtime/doc/if_ruby.txt

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -207,21 +207,19 @@ MS-Windows ~
207207

208208
You need to install the right version of Ruby for this to work. You can find
209209
the package to download from:
210-
http://www.garbagecollect.jp/ruby/mswin32/en/download/release.html
211-
Currently that is ruby-1.9.2-p136-i386-mswin32.zip
210+
http://rubyinstaller.org/downloads/
211+
Currently that is rubyinstaller-2.2.5.exe
212212

213213
To use the Ruby interface the Ruby DLL must be in your search path. In a
214214
console window type "path" to see what directories are used. The 'rubydll'
215215
option can be also used to specify the Ruby DLL.
216216

217217
The name of the DLL must match the Ruby version Vim was compiled with.
218-
Currently the name is "msvcrt-ruby191.dll". That is for Ruby 1.9.1. To know
218+
Currently the name is "msvcrt-ruby220.dll". That is for Ruby 2.2.X. To know
219219
for sure edit "gvim.exe" and search for "ruby\d*.dll\c".
220220

221-
If you want to build Vim with Ruby 1.9.1, you need to edit the config.h file
222-
and comment-out the check for _MSC_VER.
223-
You may also need to rename the include directory name to match the version,
224-
strangely for Ruby 1.9.3 the directory is called 1.9.1.
221+
If you want to build Vim with RubyInstaller 1.9 or 2.X using MSVC, you need
222+
some tricks. See the src/INSTALLpc.txt for detail.
225223

226224

227225
Unix ~

runtime/doc/index.txt

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

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1002,7 +1002,7 @@ tag command action in Command-line editing mode ~
10021002
|c_CTRL-L| CTRL-L do completion on the pattern in front of the
10031003
cursor and insert the longest common part
10041004
|c_<CR>| <CR> execute entered command
1005-
|c_<CR>| CTRL-M same as <CR>
1005+
|c_CTRL-M| CTRL-M same as <CR>
10061006
|c_CTRL-N| CTRL-N after using 'wildchar' with multiple matches:
10071007
go to next match, otherwise: same as <Down>
10081008
CTRL-O not used
@@ -1026,7 +1026,7 @@ tag command action in Command-line editing mode ~
10261026
CTRL-Y copy (yank) modeless selection
10271027
CTRL-Z not used (reserved for suspend)
10281028
|c_<Esc>| <Esc> abandon command-line without executing it
1029-
|c_<Esc>| CTRL-[ same as <Esc>
1029+
|c_CTRL-[| CTRL-[ same as <Esc>
10301030
|c_CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode, abandon command-line
10311031
|c_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode',
10321032
abandon command-line

runtime/doc/options.txt

Lines changed: 6 additions & 5 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 16
1+
*options.txt* For Vim version 8.0. Last change: 2016 Oct 01
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -10,7 +10,7 @@ Options *options*
1010
2. Automatically setting options |auto-setting|
1111
3. Options summary |option-summary|
1212

13-
For an overview of options see help.txt |option-list|.
13+
For an overview of options see quickref.txt |option-list|.
1414

1515
Vim has a number of internal variables and switches which can be set to
1616
achieve special effects. These options come in three forms:
@@ -1747,12 +1747,12 @@ A jump table for the options with a short description can be found at |Q_op|.
17471747
option + set value effect ~
17481748

17491749
'allowrevins' off no CTRL-_ command
1750-
'backupcopy' Unix: "yes" backup file is a copy
1751-
others: "auto" copy or rename backup file
17521750
'backspace' "" normal backspace
1751+
'backupcopy' Unix: "yes" backup file is a copy
1752+
else: "auto" copy or rename backup file
17531753
'backup' off no backup file
1754-
'cindent' off no C code indentation
17551754
'cedit' + "" no key to open the |cmdwin|
1755+
'cindent' off no C code indentation
17561756
'cpoptions' + (all flags) Vi-compatible flags
17571757
'cscopetag' off don't use cscope for ":tag"
17581758
'cscopetagorder' 0 see |cscopetagorder|
@@ -1794,6 +1794,7 @@ A jump table for the options with a short description can be found at |Q_op|.
17941794
'textwidth' 0 no automatic line wrap
17951795
'tildeop' off tilde is not an operator
17961796
'ttimeout' off no terminal timeout
1797+
'viminfo' + {unchanged} no viminfo file
17971798
'whichwrap' + "" left-right movements don't wrap
17981799
'wildchar' + CTRL-E only when the current value is <Tab>
17991800
use CTRL-E for cmdline completion

0 commit comments

Comments
 (0)