Skip to content

Commit 690afe1

Browse files
committed
Update runtime files.
1 parent 3a29abc commit 690afe1

19 files changed

Lines changed: 298 additions & 186 deletions

File tree

runtime/doc/eval.txt

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 8.0. Last change: 2017 Jan 14
1+
*eval.txt* For Vim version 8.0. Last change: 2017 Jan 28
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2222,8 +2222,8 @@ matchstr({expr}, {pat}[, {start}[, {count}]])
22222222
String {count}'th match of {pat} in {expr}
22232223
matchstrpos({expr}, {pat}[, {start}[, {count}]])
22242224
List {count}'th match of {pat} in {expr}
2225-
max({list}) Number maximum value of items in {list}
2226-
min({list}) Number minimum value of items in {list}
2225+
max({expr}) Number maximum value of items in {expr}
2226+
min({expr}) Number minimum value of items in {expr}
22272227
mkdir({name} [, {path} [, {prot}]])
22282228
Number create directory {name}
22292229
mode([expr]) String current editing mode
@@ -4172,6 +4172,10 @@ getchar([expr]) *getchar()*
41724172
exe "normal " . v:mouse_col . "|"
41734173
endif
41744174
<
4175+
When using bracketed paste only the first character is
4176+
returned, the rest of the pasted text is dropped.
4177+
|xterm-bracketed-paste|.
4178+
41754179
There is no prompt, you will somehow have to make clear to the
41764180
user that a character has to be typed.
41774181
There is no mapping for the character.
@@ -5797,16 +5801,20 @@ matchstrpos({expr}, {pat}[, {start}[, {count}]]) *matchstrpos()*
57975801
The type isn't changed, it's not necessarily a String.
57985802

57995803
*max()*
5800-
max({list}) Return the maximum value of all items in {list}.
5801-
If {list} is not a list or one of the items in {list} cannot
5802-
be used as a Number this results in an error.
5803-
An empty |List| results in zero.
5804+
max({expr}) Return the maximum value of all items in {expr}.
5805+
{expr} can be a list or a dictionary. For a dictionary,
5806+
it returns the maximum of all values in the dictionary.
5807+
If {expr} is neither a list nor a dictionary, or one of the
5808+
items in {expr} cannot be used as a Number this results in
5809+
an error. An empty |List| or |Dictionary| results in zero.
58045810

58055811
*min()*
5806-
min({list}) Return the minimum value of all items in {list}.
5807-
If {list} is not a list or one of the items in {list} cannot
5808-
be used as a Number this results in an error.
5809-
An empty |List| results in zero.
5812+
min({expr}) Return the minimum value of all items in {expr}.
5813+
{expr} can be a list or a dictionary. For a dictionary,
5814+
it returns the minimum of all values in the dictionary.
5815+
If {expr} is neither a list nor a dictionary, or one of the
5816+
items in {expr} cannot be used as a Number this results in
5817+
an error. An empty |List| or |Dictionary| results in zero.
58105818

58115819
*mkdir()* *E739*
58125820
mkdir({name} [, {path} [, {prot}]])
@@ -8146,7 +8154,7 @@ winnr([{arg}]) The result is a Number, which is the number of the current
81468154
is returned.
81478155
The number can be used with |CTRL-W_w| and ":wincmd w"
81488156
|:wincmd|.
8149-
Also see |tabpagewinnr()|.
8157+
Also see |tabpagewinnr()| and |win_getid()|.
81508158

81518159
*winrestcmd()*
81528160
winrestcmd() Returns a sequence of |:resize| commands that should restore

runtime/doc/if_pyth.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*if_pyth.txt* For Vim version 8.0. Last change: 2016 Sep 17
1+
*if_pyth.txt* For Vim version 8.0. Last change: 2017 Jan 28
22

33

44
VIM REFERENCE MANUAL by Paul Moore

runtime/doc/options.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 8.0. Last change: 2017 Jan 15
1+
*options.txt* For Vim version 8.0. Last change: 2017 Jan 28
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar

runtime/doc/syntax.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*syntax.txt* For Vim version 8.0. Last change: 2016 Oct 30
1+
*syntax.txt* For Vim version 8.0. Last change: 2017 Jan 17
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -3479,6 +3479,8 @@ DEFINING CASE *:syn-case* *E390*
34793479
"ignore". Note that any items before this are not affected, and all
34803480
items until the next ":syntax case" command are affected.
34813481

3482+
:sy[ntax] case
3483+
Show either "syntax case match" or "syntax case ignore" (translated).
34823484

34833485
SPELL CHECKING *:syn-spell*
34843486

@@ -3496,6 +3498,11 @@ SPELL CHECKING *:syn-spell*
34963498

34973499
To activate spell checking the 'spell' option must be set.
34983500

3501+
:sy[ntax] spell
3502+
Show either "syntax spell toplevel", "syntax spell notoplevel" or
3503+
"syntax spell default" (translated).
3504+
3505+
34993506
SYNTAX ISKEYWORD SETTING *:syn-iskeyword*
35003507

35013508
:sy[ntax] iskeyword [clear | {option}]
@@ -4089,6 +4096,9 @@ IMPLICIT CONCEAL *:syn-conceal-implicit*
40894096
off" returns to the normal state where the "conceal" flag must be
40904097
given explicitly.
40914098

4099+
:sy[ntax] conceal
4100+
Show either "syntax conceal on" or "syntax conceal off" (translated).
4101+
40924102
==============================================================================
40934103
7. Syntax patterns *:syn-pattern* *E401* *E402*
40944104

runtime/doc/tags

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,8 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
774774
'pvw' options.txt /*'pvw'*
775775
'pythondll' options.txt /*'pythondll'*
776776
'pythonthreedll' options.txt /*'pythonthreedll'*
777+
'pyx' options.txt /*'pyx'*
778+
'pyxversion' options.txt /*'pyxversion'*
777779
'qe' options.txt /*'qe'*
778780
'quote motion.txt /*'quote*
779781
'quoteescape' options.txt /*'quoteescape'*
@@ -923,6 +925,8 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
923925
't_AB' term.txt /*'t_AB'*
924926
't_AF' term.txt /*'t_AF'*
925927
't_AL' term.txt /*'t_AL'*
928+
't_BD' term.txt /*'t_BD'*
929+
't_BE' term.txt /*'t_BE'*
926930
't_CS' term.txt /*'t_CS'*
927931
't_CV' term.txt /*'t_CV'*
928932
't_Ce' term.txt /*'t_Ce'*
@@ -2722,6 +2726,10 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
27222726
:pyfile if_pyth.txt /*:pyfile*
27232727
:python if_pyth.txt /*:python*
27242728
:python3 if_pyth.txt /*:python3*
2729+
:pythonx if_pyth.txt /*:pythonx*
2730+
:pyx if_pyth.txt /*:pyx*
2731+
:pyxdo if_pyth.txt /*:pyxdo*
2732+
:pyxfile if_pyth.txt /*:pyxfile*
27252733
:q editing.txt /*:q*
27262734
:qa editing.txt /*:qa*
27272735
:qall editing.txt /*:qall*
@@ -4770,6 +4778,8 @@ W16 message.txt /*W16*
47704778
W17 arabic.txt /*W17*
47714779
W18 syntax.txt /*W18*
47724780
W19 autocmd.txt /*W19*
4781+
W20 if_pyth.txt /*W20*
4782+
W21 if_pyth.txt /*W21*
47734783
WORD motion.txt /*WORD*
47744784
WWW intro.txt /*WWW*
47754785
Win32 os_win32.txt /*Win32*
@@ -6603,6 +6613,7 @@ hangulin.txt hangulin.txt /*hangulin.txt*
66036613
has() eval.txt /*has()*
66046614
has-patch eval.txt /*has-patch*
66056615
has-python if_pyth.txt /*has-python*
6616+
has-pythonx if_pyth.txt /*has-pythonx*
66066617
has_key() eval.txt /*has_key()*
66076618
haskell.vim syntax.txt /*haskell.vim*
66086619
haslocaldir() eval.txt /*haslocaldir()*
@@ -7901,7 +7912,11 @@ python.vim syntax.txt /*python.vim*
79017912
python2-directory if_pyth.txt /*python2-directory*
79027913
python3 if_pyth.txt /*python3*
79037914
python3-directory if_pyth.txt /*python3-directory*
7915+
python_x if_pyth.txt /*python_x*
7916+
python_x-special-comments if_pyth.txt /*python_x-special-comments*
7917+
pythonx if_pyth.txt /*pythonx*
79047918
pythonx-directory if_pyth.txt /*pythonx-directory*
7919+
pyxeval() eval.txt /*pyxeval()*
79057920
q repeat.txt /*q*
79067921
q/ cmdline.txt /*q\/*
79077922
q: cmdline.txt /*q:*
@@ -8443,6 +8458,8 @@ t_@7 term.txt /*t_@7*
84438458
t_AB term.txt /*t_AB*
84448459
t_AF term.txt /*t_AF*
84458460
t_AL term.txt /*t_AL*
8461+
t_BD term.txt /*t_BD*
8462+
t_BE term.txt /*t_BE*
84468463
t_CS term.txt /*t_CS*
84478464
t_CV term.txt /*t_CV*
84488465
t_Ce term.txt /*t_Ce*
@@ -8481,6 +8498,8 @@ t_KI term.txt /*t_KI*
84818498
t_KJ term.txt /*t_KJ*
84828499
t_KK term.txt /*t_KK*
84838500
t_KL term.txt /*t_KL*
8501+
t_PE term.txt /*t_PE*
8502+
t_PS term.txt /*t_PS*
84848503
t_RB term.txt /*t_RB*
84858504
t_RI term.txt /*t_RI*
84868505
t_RV term.txt /*t_RV*
@@ -9332,6 +9351,7 @@ xterm-8-bit term.txt /*xterm-8-bit*
93329351
xterm-8bit term.txt /*xterm-8bit*
93339352
xterm-blink syntax.txt /*xterm-blink*
93349353
xterm-blinking-cursor syntax.txt /*xterm-blinking-cursor*
9354+
xterm-bracketed-paste term.txt /*xterm-bracketed-paste*
93359355
xterm-clipboard term.txt /*xterm-clipboard*
93369356
xterm-codes term.txt /*xterm-codes*
93379357
xterm-color syntax.txt /*xterm-color*

runtime/doc/term.txt

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

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -99,7 +99,12 @@ is used.
9999

100100
Note that in some situations Vim will not recognize the bracketed paste and
101101
you will get the raw text. In other situations Vim will only get the first
102-
pasted character and drop the rest, e.g. when using the "r" command.
102+
pasted character and drop the rest, e.g. when using the "r" command. If you
103+
have a problem with this, disable bracketed paste by putting this in your
104+
.vimrc: >
105+
set t_BE=
106+
If this is done while Vim is running the 't_BD' will be sent to the terminal
107+
to disable bracketed paste.
103108

104109
*cs7-problem*
105110
Note: If the terminal settings are changed after running Vim, you might have
@@ -414,7 +419,7 @@ Note: Use the <> form if possible
414419
t_KK <k8> keypad 8 *<k8>* *t_KK* *'t_KK'*
415420
t_KL <k9> keypad 9 *<k9>* *t_KL* *'t_KL'*
416421
<Mouse> leader of mouse code *<Mouse>*
417-
t_PS start of brackted paste |xterm-bracketed-paste| *t_PS* 't_PS'
422+
t_PS start of bracketed paste |xterm-bracketed-paste| *t_PS* 't_PS'
418423
t_PE end of bracketed paste |xterm-bracketed-paste| *t_PE* 't_PE'
419424

420425
Note about t_so and t_mr: When the termcap entry "so" is not present the

runtime/doc/todo.txt

Lines changed: 19 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*todo.txt* For Vim version 8.0. Last change: 2017 Jan 16
1+
*todo.txt* For Vim version 8.0. Last change: 2017 Jan 28
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -35,8 +35,6 @@ entered there will not be repeated below, unless there is extra information.
3535
*known-bugs*
3636
-------------------- Known bugs and current work -----------------------
3737

38-
get_syn_options() does not respect skip in else part. (Zyx)
39-
4038
+channel:
4139
- Try out background make plugin:
4240
https://github.com/AndrewVos/vim-make-background
@@ -60,6 +58,7 @@ get_syn_options() does not respect skip in else part. (Zyx)
6058
connecting in the main loop with zero timeout.
6159
- job_start(): run job in a newly opened terminal.
6260
With xterm could use -S{pty}.
61+
Although user could use "xterm -e 'cmd arg'".
6362

6463
Regexp problems:
6564
- Since 7.4.704 the old regex engine fails to match [[:print:]] in 0xf6.
@@ -108,40 +107,27 @@ Regexp problems:
108107

109108
'] mark invalid after undoing insert "hello".
110109

111-
Make html indent file use javascript indent, now that it's not just cindent.
112-
#1220
113-
114-
Concatenation with null string causes an error: 'a'[1:0] .. 'b'
115-
Might as well handle it like an empty string.
116-
117110
When using symbolic links, a package path will not be inserted at the right
118111
position in 'runtimepath'. (Dugan Chen, 2016 Nov 18)
119112

120113
json_encode(): should convert to utf-8. (Nikolai Pavlov, 2016 Jan 23)
121114
What if there is an invalid character?
122115

123-
Include rust files. (Klabnik, #1356)
124-
125116
Allow using json with empty key? Dict already has it.
126117

127118
Json string with trailing \u should be an error. (Lcd)
128119

129-
Patch to deal with changed configure events in GTK 3. (Jan Alexander Steffens,
130-
2016 Oct 23 #1193)
131-
Remarks from nuko8, 2016 Nov 2.
132-
133120
Multi-byte bug: dv} splits char. (Urtica Dioica, 2017 Jan 9)
134121

135-
Patch to change order of compiler flags. (Yousong Zhou, 2016 Sep 19, #1100)
122+
Patch: Make mode() return "ix" or "Rx" when in completion mode.
123+
(Yegappan Lakshmanan, 2017 Jan 19, #1397, update Jan 22)
136124

137-
Patch to add command line completion for :cexpr commands. (Yegappan
138-
Lakshmanan, 2016 Dec 13)
125+
With Visual selection of a multi-byte character the '] mark is on the last
126+
byte, should be first byte?
139127

140-
Patch for :pyx, run python commands depending on the supported version.
141-
(Marc Weber, update from Ken Takata, 2016 Sep 19, 2017 Jan 6)
142-
143-
Patch to avoid warnings for overflow. (Mike Williams, 2016 Dec 16)
144-
Update Dec 19.
128+
When session file has name in argument list but the buffer was deleted, the
129+
buffer is not deleted when using the session file. (#1393)
130+
Should add the buffer in hidden state.
145131

146132
When an item in the quickfix list has a file name that does not exist, behave
147133
like the item was not a match for :cnext.
@@ -150,18 +136,13 @@ Wrong diff highlighting with three files. (2016 Oct 20, #1186)
150136
Also get E749 on exit.
151137
Another example in #1309
152138

153-
Patch to fix vim_iswordp() works differently on chars <256 that are two bytes.
154-
Ozaki Kiichi, 2016 Dec 11.
139+
Completion for user-defined commands does not work if a few chararacters were
140+
already typed. (Dominique, 2017 Jan 26)
155141

156142
When deleting a mark or register, leave a tombstone, so that it's also deleted
157143
when writing viminfo (and the delete was the most recent action). #1339
158144

159145
Relevant neovim patch:
160-
https://github.com/neovim/neovim/pull/5717
161-
test case:
162-
https://github.com/neovim/neovim/pull/5717#issuecomment-264845481
163-
Others:
164-
https://github.com/neovim/neovim/issues/5713#issuecomment-265136186
165146
https://github.com/neovim/neovim/pull/5737#issuecomment-266055165
166147

167148
Patch for better explanation of 'compatible' side effects.
@@ -199,6 +180,10 @@ Patch for restoring wide characters in the console buffer.
199180
Patch to fix escaping of job arguments. (Yasuhiro Matsumoto, 2016 Oct 5)
200181
Update Oct 14: https://gist.github.com/mattn/d47e7d3bfe5ade4be86062b565a4bfca
201182

183+
The TermResponse event is not triggered when a plugin has set 'eventignore' to
184+
"all". Netrw does this. (Gary Johnson, 2017 Jan 24)
185+
Postpone the event until 'eventignore' is reset.
186+
202187
Once .exe with updated installer is available: Add remark to download page
203188
about /S and /D options (Ken Takata, 2016 Apr 13)
204189
Or point to nightly builds: https://github.com/vim/vim-win32-installer/releases
@@ -220,6 +205,7 @@ lines: :g/^/normal yyp On Unix it works OK. (Bryce Orgill, 2016 Nov 5)
220205

221206
Patch for wrong cursor position on wrapped line, involving breakindent.
222207
(Ozaki Kiichi, 2016 Nov 25)
208+
Does this also fix #1408 ?
223209

224210
Patch for 'cursorlinenr' option. (Ozaki Kiichi, 2016 Nov 30)
225211

@@ -569,6 +555,9 @@ Patch to add :mapgroup, put mappings in a group like augroup.
569555
Value returned by virtcol() changes depending on how lines wrap. This is
570556
inconsistent with the documentation.
571557

558+
Value of virtcol() for '[ and '] depend on multi-byte character.
559+
(Luchr, #277)
560+
572561
Can we cache the syntax attributes, so that updates for 'relativenumber' and
573562
'cursorline'/'cursorcolumn' are a lot faster?
574563

@@ -1061,9 +1050,6 @@ Aug 16)
10611050
When there are no command line arguments ":next" and ":argu" give E163, which
10621051
is confusing. Should say "the argument list is empty".
10631052

1064-
xterm supports escape sequences to mark a paste operation. Need to be
1065-
enabled. (Bruno Sutic, 2014 Jul 11) How to know the terminal supports this?
1066-
10671053
URXVT:
10681054
- will get stuck if byte sequence does not contain the expected semicolon.
10691055
- Use urxvt mouse support also in xterm. Explanations:

runtime/doc/usr_41.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,7 @@ Various: *various-functions*
10001000
perleval() evaluate Perl expression (|+perl|)
10011001
py3eval() evaluate Python expression (|+python3|)
10021002
pyeval() evaluate Python expression (|+python|)
1003+
pyxeval() evaluate |python_x| expression
10031004

10041005
==============================================================================
10051006
*41.7* Defining a function

runtime/ftplugin/man.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim filetype plugin file
22
" Language: man
33
" Maintainer: SungHyun Nam <[email protected]>
4-
" Last Change: 2017 Jan 04
4+
" Last Change: 2017 Jan 18
55

66
" To make the ":Man" command available before editing a manual page, source
77
" this script from your startup vimrc file.
@@ -97,7 +97,7 @@ func <SID>GetCmdArg(sect, page)
9797
endfunc
9898

9999
func <SID>FindPage(sect, page)
100-
let where = system("/usr/bin/man ".s:man_find_arg.' '.s:GetCmdArg(a:sect, a:page))
100+
let where = system("man ".s:man_find_arg.' '.s:GetCmdArg(a:sect, a:page))
101101
if where !~ "^/"
102102
if matchstr(where, " [^ ]*$") !~ "^ /"
103103
return 0
@@ -176,7 +176,7 @@ func <SID>GetPage(...)
176176
let $MANWIDTH = winwidth(0)
177177
let unsetwidth = 1
178178
endif
179-
silent exec "r!/usr/bin/man ".s:GetCmdArg(sect, page)." | col -b"
179+
silent exec "r !man ".s:GetCmdArg(sect, page)." | col -b"
180180
if unsetwidth
181181
let $MANWIDTH = ''
182182
endif

0 commit comments

Comments
 (0)