Skip to content

Commit 7b125fe

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 2f9bb2a + e67d546 commit 7b125fe

30 files changed

+1488
-986
lines changed

runtime/doc/channel.txt

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

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -395,6 +395,9 @@ This {string} can also be JSON, use |json_encode()| to create it and
395395

396396
It is not possible to use |ch_evalexpr()| or |ch_sendexpr()| on a raw channel.
397397

398+
A String in Vim cannot contain NUL bytes. To send or receive NUL bytes read
399+
or write from a buffer. See |in_io-buffer| and |out_io-buffer|.
400+
398401
==============================================================================
399402
7. More channel functions *channel-more*
400403

@@ -480,7 +483,7 @@ For example, to start a job and write its output in buffer "dummy": >
480483
481484
482485
Job input from a buffer ~
483-
486+
*in_io-buffer*
484487
To run a job that reads from a buffer: >
485488
let job = job_start({command},
486489
\ {'in_io': 'buffer', 'in_name': 'mybuffer'})
@@ -654,7 +657,7 @@ See |job_setoptions()| and |ch_setoptions()|.
654657

655658

656659
Writing to a buffer ~
657-
660+
*out_io-buffer*
658661
When the out_io or err_io mode is "buffer" and there is a callback, the text
659662
is appended to the buffer before invoking the callback.
660663

runtime/doc/cmdline.txt

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*cmdline.txt* For Vim version 7.4. Last change: 2015 Dec 17
1+
*cmdline.txt* For Vim version 7.4. Last change: 2016 Aug 27
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -409,19 +409,11 @@ CTRL-D List names that match the pattern in front of the cursor.
409409
*c_CTRL-N*
410410
CTRL-N After using 'wildchar' which got multiple matches, go to next
411411
match. Otherwise recall more recent command-line from history.
412-
*/_CTRL-N*
413-
When 'incsearch' is set, entering a search pattern for "/" or
414-
"?" and the current match is displayed then CTRL-N will move
415-
to the next match (does not take |search-offset| into account)
416412
<S-Tab> *c_CTRL-P* *c_<S-Tab>*
417413
CTRL-P After using 'wildchar' which got multiple matches, go to
418414
previous match. Otherwise recall older command-line from
419415
history. <S-Tab> only works with the GUI, on the Amiga and
420416
with MS-DOS.
421-
*/_CTRL-P*
422-
When 'incsearch' is set, entering a search pattern for "/" or
423-
"?" and the current match is displayed then CTRL-P will move
424-
to the previous match (does not take |search-offset| into account).
425417
*c_CTRL-A*
426418
CTRL-A All names that match the pattern in front of the cursor are
427419
inserted.
@@ -438,6 +430,19 @@ CTRL-L A match is done on the pattern in front of the cursor. If
438430
'ignorecase' and 'smartcase' are set and the command line has
439431
no uppercase characters, the added character is converted to
440432
lowercase.
433+
*c_CTRL-G* */_CTRL-G*
434+
CTRL-G When 'incsearch' is set, entering a search pattern for "/" or
435+
"?" and the current match is displayed then CTRL-G will move
436+
to the next match (does not take |search-offset| into account)
437+
Use CTRL-T to move to the previous match. Hint: on a regular
438+
keyboard T is above G.
439+
*c_CTRL-T* */_CTRL-T*
440+
CTRL-T When 'incsearch' is set, entering a search pattern for "/" or
441+
"?" and the current match is displayed then CTRL-T will move
442+
to the previous match (does not take |search-offset| into
443+
account).
444+
Use CTRL-G to move to the next match. Hint: on a regular
445+
keyboard T is above G.
441446

442447
The 'wildchar' option defaults to <Tab> (CTRL-E when in Vi compatible mode; in
443448
a previous version <Esc> was used). In the pattern standard wildcards '*' and

runtime/doc/eval.txt

Lines changed: 37 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 7.4. Last change: 2016 Aug 21
1+
*eval.txt* For Vim version 7.4. Last change: 2016 Aug 27
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -3272,6 +3272,7 @@ delete({fname} [, {flags}]) *delete()*
32723272

32733273
When {flags} is "rf": Deletes the directory by the name
32743274
{fname} and everything in it, recursively. BE CAREFUL!
3275+
32753276
A symbolic link itself is deleted, not what it points to.
32763277

32773278
The result is a Number, which is 0 if the delete operation was
@@ -4014,25 +4015,30 @@ getbufinfo([{dict}])
40144015
lnum current line number in buffer.
40154016
loaded TRUE if the buffer is loaded.
40164017
name full path to the file in the buffer.
4017-
options dictionary of buffer local options.
40184018
signs list of signs placed in the buffer.
40194019
Each list item is a dictionary with
40204020
the following fields:
40214021
id sign identifier
40224022
lnum line number
40234023
name sign name
4024-
variables dictionary of buffer local variables.
4025-
windows list of |window-ID|s with this buffer
4024+
variables a reference to the dictionary with
4025+
buffer-local variables.
4026+
windows list of |window-ID|s that display this
4027+
buffer
40264028

40274029
Examples: >
40284030
for buf in getbufinfo()
40294031
echo buf.name
40304032
endfor
40314033
for buf in getbufinfo({'buflisted':1})
4032-
if buf.options.filetype == 'java'
4034+
if buf.changed
40334035
....
40344036
endif
40354037
endfor
4038+
<
4039+
To get buffer-local options use: >
4040+
getbufvar({bufnr}, '&')
4041+
40364042
<
40374043
*getbufline()*
40384044
getbufline({expr}, {lnum} [, {end}])
@@ -4065,6 +4071,10 @@ getbufvar({expr}, {varname} [, {def}]) *getbufvar()*
40654071
must be used.
40664072
When {varname} is empty returns a dictionary with all the
40674073
buffer-local variables.
4074+
When {varname} is equal to "&" returns a dictionary with all
4075+
the buffer-local options.
4076+
Otherwise, when {varname} starts with "&" returns the value of
4077+
a buffer-local option.
40684078
This also works for a global or buffer-local option, but it
40694079
doesn't work for a global variable, window-local variable or
40704080
window-local option.
@@ -4532,7 +4542,8 @@ gettabinfo([{arg}]) *gettabinfo()*
45324542

45334543
Each List item is a Dictionary with the following entries:
45344544
tabnr tab page number.
4535-
variables dictionary of tabpage local variables.
4545+
variables a reference to the dictionary with
4546+
tabpage-local variables
45364547
windows List of |window-ID|s in the tag page.
45374548

45384549
gettabvar({tabnr}, {varname} [, {def}]) *gettabvar()*
@@ -4548,10 +4559,12 @@ gettabvar({tabnr}, {varname} [, {def}]) *gettabvar()*
45484559
gettabwinvar({tabnr}, {winnr}, {varname} [, {def}]) *gettabwinvar()*
45494560
Get the value of window-local variable {varname} in window
45504561
{winnr} in tab page {tabnr}.
4551-
When {varname} starts with "&" get the value of a window-local
4552-
option.
45534562
When {varname} is empty a dictionary with all window-local
45544563
variables is returned.
4564+
When {varname} is equal to "&" get the values of all
4565+
window-local options in a Dictionary.
4566+
Otherwise, when {varname} starts with "&" get the value of a
4567+
window-local option.
45554568
Note that {varname} must be the name without "w:".
45564569
Tabs are numbered starting with one. For the current tabpage
45574570
use |getwinvar()|.
@@ -4591,15 +4604,18 @@ getwininfo([{winid}]) *getwininfo()*
45914604
height window height
45924605
loclist 1 if showing a location list
45934606
{only with the +quickfix feature}
4594-
options dictionary of window local options
45954607
quickfix 1 if quickfix or location list window
45964608
{only with the +quickfix feature}
45974609
tabnr tab page number
4598-
variables dictionary of window local variables
4610+
variables a reference to the dictionary with
4611+
window-local variables
45994612
width window width
46004613
winid |window-ID|
46014614
winnr window number
46024615

4616+
To obtain all window-local variables use: >
4617+
gettabwinvar({tabnr}, {winnr}, '&')
4618+
46034619
getwinvar({winnr}, {varname} [, {def}]) *getwinvar()*
46044620
Like |gettabwinvar()| for the current tabpage.
46054621
Examples: >
@@ -5987,6 +6003,16 @@ printf({fmt}, {expr1} ...) *printf()*
59876003
cause truncation of a numeric field; if the result of
59886004
a conversion is wider than the field width, the field
59896005
is expanded to contain the conversion result.
6006+
The 'h' modifier indicates the argument is 16 bits.
6007+
The 'l' modifier indicates the argument is 32 bits.
6008+
The 'L' modifier indicates the argument is 64 bits.
6009+
Generally, these modifiers are not useful. They are
6010+
ignored when type is known from the argument.
6011+
6012+
i alias for d
6013+
D alias for ld
6014+
U alias for lu
6015+
O alias for lo
59906016

59916017
*printf-c*
59926018
c The Number argument is converted to a byte, and the
@@ -6006,7 +6032,7 @@ printf({fmt}, {expr1} ...) *printf()*
60066032
feature works just like 's'.
60076033

60086034
*printf-f* *E807*
6009-
f The Float argument is converted into a string of the
6035+
f F The Float argument is converted into a string of the
60106036
form 123.456. The precision specifies the number of
60116037
digits after the decimal point. When the precision is
60126038
zero the decimal point is omitted. When the precision

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 7.4. Last change: 2016 Aug 24
1+
*index.txt* For Vim version 7.4. Last change: 2016 Aug 27
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -984,7 +984,7 @@ tag command action in Command-line editing mode ~
984984
|c_CTRL-E| CTRL-E cursor to end of command-line
985985
|'cedit'| CTRL-F default value for 'cedit': opens the
986986
command-line window; otherwise not used
987-
CTRL-G not used
987+
|c_CTRL-G| CTRL-G next match when 'incsearch' is active
988988
|c_<BS>| <BS> delete the character in front of the cursor
989989
|c_digraph| {char1} <BS> {char2}
990990
enter digraph when 'digraph' is on
@@ -1017,7 +1017,7 @@ tag command action in Command-line editing mode ~
10171017
insert the contents of a register or object
10181018
under the cursor literally
10191019
CTRL-S (used for terminal control flow)
1020-
CTRL-T not used
1020+
|c_CTRL-T| CTRL-T previous match when 'incsearch' is active
10211021
|c_CTRL-U| CTRL-U remove all characters
10221022
|c_CTRL-V| CTRL-V insert next non-digit literally, insert three
10231023
digit decimal number as a single byte.

runtime/doc/map.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*map.txt* For Vim version 7.4. Last change: 2016 Jul 30
1+
*map.txt* For Vim version 7.4. Last change: 2016 Aug 26
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -431,6 +431,9 @@ with a space.
431431
Note: When using mappings for Visual mode, you can use the "'<" mark, which
432432
is the start of the last selected Visual area in the current buffer |'<|.
433433

434+
The |:filter| command can be used to select what mappings to list. The
435+
pattern is matched against the {lhs} and {rhs} in the raw form.
436+
434437
*:map-verbose*
435438
When 'verbose' is non-zero, listing a key map will also display where it was
436439
last defined. Example: >
@@ -1177,6 +1180,10 @@ scripts.
11771180
" Command has the -register attribute
11781181
b Command is local to current buffer
11791182
(see below for details on attributes)
1183+
The list can be filtered on command name with
1184+
|:filter|, e.g., to list all commands with "Pyth" in
1185+
the name: >
1186+
filter Pyth command
11801187
11811188
:com[mand] {cmd} List the user-defined commands that start with {cmd}
11821189

runtime/doc/starting.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*starting.txt* For Vim version 7.4. Last change: 2016 Aug 23
1+
*starting.txt* For Vim version 7.4. Last change: 2016 Aug 26
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1633,7 +1633,7 @@ most of the information will be restored).
16331633
afterwards with `:rviminfo!`. Also see |v:oldfiles|.
16341634
The number can be used with |c_#<|.
16351635
The output can be filtered with |:filter|, e.g.: >
1636-
filter /\\.vim/ oldfiles
1636+
filter /\.vim/ oldfiles
16371637
< The filtering happens on the file name.
16381638
{not in Vi, only when compiled with the |+eval|
16391639
feature}

runtime/doc/tags

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1616,9 +1616,9 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
16161616
/\{- pattern.txt /*\/\\{-*
16171617
/\~ pattern.txt /*\/\\~*
16181618
/^ pattern.txt /*\/^*
1619+
/_CTRL-G cmdline.txt /*\/_CTRL-G*
16191620
/_CTRL-L cmdline.txt /*\/_CTRL-L*
1620-
/_CTRL-N cmdline.txt /*\/_CTRL-N*
1621-
/_CTRL-P cmdline.txt /*\/_CTRL-P*
1621+
/_CTRL-T cmdline.txt /*\/_CTRL-T*
16221622
/atom pattern.txt /*\/atom*
16231623
/bar pattern.txt /*\/bar*
16241624
/branch pattern.txt /*\/branch*
@@ -5228,6 +5228,7 @@ c_CTRL-C cmdline.txt /*c_CTRL-C*
52285228
c_CTRL-D cmdline.txt /*c_CTRL-D*
52295229
c_CTRL-E cmdline.txt /*c_CTRL-E*
52305230
c_CTRL-F cmdline.txt /*c_CTRL-F*
5231+
c_CTRL-G cmdline.txt /*c_CTRL-G*
52315232
c_CTRL-H cmdline.txt /*c_CTRL-H*
52325233
c_CTRL-I cmdline.txt /*c_CTRL-I*
52335234
c_CTRL-J cmdline.txt /*c_CTRL-J*
@@ -5244,6 +5245,7 @@ c_CTRL-R_CTRL-O cmdline.txt /*c_CTRL-R_CTRL-O*
52445245
c_CTRL-R_CTRL-P cmdline.txt /*c_CTRL-R_CTRL-P*
52455246
c_CTRL-R_CTRL-R cmdline.txt /*c_CTRL-R_CTRL-R*
52465247
c_CTRL-R_CTRL-W cmdline.txt /*c_CTRL-R_CTRL-W*
5248+
c_CTRL-T cmdline.txt /*c_CTRL-T*
52475249
c_CTRL-U cmdline.txt /*c_CTRL-U*
52485250
c_CTRL-V cmdline.txt /*c_CTRL-V*
52495251
c_CTRL-W cmdline.txt /*c_CTRL-W*
@@ -6922,6 +6924,7 @@ improvements-7 version7.txt /*improvements-7*
69226924
improvements-8 version8.txt /*improvements-8*
69236925
in_bot channel.txt /*in_bot*
69246926
in_buf channel.txt /*in_buf*
6927+
in_io-buffer channel.txt /*in_io-buffer*
69256928
in_mode channel.txt /*in_mode*
69266929
in_name channel.txt /*in_name*
69276930
in_top channel.txt /*in_top*
@@ -7787,6 +7790,7 @@ os_win32.txt os_win32.txt /*os_win32.txt*
77877790
other-features vi_diff.txt /*other-features*
77887791
out_buf channel.txt /*out_buf*
77897792
out_cb channel.txt /*out_cb*
7793+
out_io-buffer channel.txt /*out_io-buffer*
77907794
out_mode channel.txt /*out_mode*
77917795
out_name channel.txt /*out_name*
77927796
out_timeout channel.txt /*out_timeout*

runtime/doc/todo.txt

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*todo.txt* For Vim version 7.4. Last change: 2016 Aug 26
1+
*todo.txt* For Vim version 7.4. Last change: 2016 Aug 27
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -35,15 +35,9 @@ not be repeated below, unless there is extra information.
3535
-------------------- Known bugs and current work -----------------------
3636

3737
Make ":filter" work with more commands.
38-
39-
C highlighting: modern C allows /* comment */ #ifdef
40-
41-
Ramel Eshed: system() is much slower than job_start(), why? (Aug 26)
42-
43-
Error in viminfo. (John Chen, 2016 Aug 26, #1010)
38+
Search for: msg_putchar('\n')
4439

4540
+channel:
46-
- Check that raw mode does NL-NUL conversion.
4741
- Implement |job-term| ?
4842
- Channel test fails with Motif. Sometimes kills the X11 server.
4943
- When a message in the queue but there is no callback, drop it after a while?
@@ -111,9 +105,6 @@ Regexp problems:
111105
- Search for /\%d0\+ causes error E363 in a file with consecutive NUL
112106
characters. (Christian Brabandt, 2016 Jun 7)
113107

114-
getbufinfo() may return a lot of data. Select what to return?
115-
remove variables, does that help?
116-
117108
json_encode(): should convert to utf-8. (Nikolai Pavlov, 2016 Jan 23)
118109
What if there is an invalid character?
119110

@@ -126,10 +117,6 @@ Once .exe with updated installer is available: Add remark to download page
126117
about /S and /D options (Ken Takata, 2016 Apr 13)
127118
Or point to nightly builds: https://github.com/vim/vim-win32-installer/releases
128119

129-
Problem with completion on "**/" in $path. (issue #932)
130-
Happens in uniquefy_paths() ? More info Jul 22.
131-
Fix for this (Harm te Hennepe, 2016 Jul 21, #939)
132-
133120
Cursor positioned in the wrong place when editing src/testdir/test_viml.vim.
134121

135122
Javascript indent wrong after /* in single quoted string:
@@ -194,6 +181,8 @@ Patch for restoring wide characters in the console buffer.
194181
We can use '. to go to the last change in the current buffer, but how about
195182
the last change in any buffer? Can we use ', (, is next to .)?
196183

184+
Ramel Eshed: system() is much slower than job_start(), why? (Aug 26)
185+
197186
Patch for Python: #622. (Roland Puntaier, 2016 Feb 2)
198187
What does it change?
199188

@@ -405,6 +394,10 @@ inconsistent with the documentation.
405394
Can we cache the syntax attributes, so that updates for 'relativenumber' and
406395
'cursorline'/'cursorcolumn' are a lot faster?
407396

397+
C highlighting: modern C allows: /* comment */ #ifdef
398+
and also line continuation after #include.
399+
I can't recommend it though.
400+
408401
Build with Python on Mac does not always use the right library.
409402
(Kazunobu Kuriyama, 2015 Mar 28)
410403

0 commit comments

Comments
 (0)