Skip to content

Commit 207f009

Browse files
committed
Update runtime files.
1 parent 0b39c3f commit 207f009

44 files changed

Lines changed: 1387 additions & 1118 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

runtime/autoload/dist/ft.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim functions for file type detection
22
"
33
" Maintainer: Bram Moolenaar <[email protected]>
4-
" Last Change: 2020 Mar 30
4+
" Last Change: 2020 Aug 17
55

66
" These functions are moved here from runtime/filetype.vim to make startup
77
" faster.

runtime/compiler/eslint.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim compiler file
22
" Compiler: ESLint for JavaScript
33
" Maintainer: Romain Lafourcade <[email protected]>
4-
" Last Change: 2020 May 17
4+
" Last Change: 2020 August 20
55

66
if exists("current_compiler")
77
finish
@@ -12,5 +12,5 @@ if exists(":CompilerSet") != 2
1212
command -nargs=* CompilerSet setlocal <args>
1313
endif
1414

15-
CompilerSet makeprg=eslint\ --format\ compact
15+
CompilerSet makeprg=npx\ eslint\ --format\ compact
1616
CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ %m,%-G%.%#

runtime/compiler/standard.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim compiler file
22
" Compiler: Standard for JavaScript
33
" Maintainer: Romain Lafourcade <[email protected]>
4-
" Last Change: 2020 May 17
4+
" Last Change: 2020 August 20
55

66
if exists("current_compiler")
77
finish
@@ -12,5 +12,5 @@ if exists(":CompilerSet") != 2
1212
command -nargs=* CompilerSet setlocal <args>
1313
endif
1414

15-
CompilerSet makeprg=standard
16-
CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ %m,%-G%.%#
15+
CompilerSet makeprg=npx\ standard
16+
CompilerSet errorformat=%f:%l:%c:\ %m,%-G%.%#

runtime/doc/change.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*change.txt* For Vim version 8.2. Last change: 2020 Jun 04
1+
*change.txt* For Vim version 8.2. Last change: 2020 Aug 15
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -153,7 +153,7 @@ the 'joinspaces' option is on, these commands insert two spaces after a '.',
153153
'!' or '?' (but if 'cpoptions' includes the 'j' flag, they insert two spaces
154154
only after a '.').
155155
The 'B' and 'M' flags in 'formatoptions' change the behavior for inserting
156-
spaces before and after a multi-byte character |fo-table|.
156+
spaces before and after a multibyte character |fo-table|.
157157

158158
The '[ mark is set at the end of the first line that was joined, '] at the end
159159
of the resulting line.
@@ -1680,11 +1680,11 @@ b Like 'v', but only auto-wrap if you enter a blank at or before
16801680
l Long lines are not broken in insert mode: When a line was longer than
16811681
'textwidth' when the insert command started, Vim does not
16821682
automatically format it.
1683-
m Also break at a multi-byte character above 255. This is useful for
1683+
m Also break at a multibyte character above 255. This is useful for
16841684
Asian text where every character is a word on its own.
1685-
M When joining lines, don't insert a space before or after a multi-byte
1685+
M When joining lines, don't insert a space before or after a multibyte
16861686
character. Overrules the 'B' flag.
1687-
B When joining lines, don't insert a space between two multi-byte
1687+
B When joining lines, don't insert a space between two multibyte
16881688
characters. Overruled by the 'M' flag.
16891689
1 Don't break a line after a one-letter word. It's broken before it
16901690
instead (if possible).

runtime/doc/develop.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*develop.txt* For Vim version 8.2. Last change: 2020 Jul 27
1+
*develop.txt* For Vim version 8.2. Last change: 2020 Aug 15
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -473,7 +473,7 @@ available spell checking libraries and programs. Unfortunately, the result
473473
was that none of them provided sufficient capabilities to be used as the spell
474474
checking engine in Vim, for various reasons:
475475

476-
- Missing support for multi-byte encodings. At least UTF-8 must be supported,
476+
- Missing support for multibyte encodings. At least UTF-8 must be supported,
477477
so that more than one language can be used in the same file.
478478
Doing on-the-fly conversion is not always possible (would require iconv
479479
support).

runtime/doc/editing.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*editing.txt* For Vim version 8.2. Last change: 2020 Jul 05
1+
*editing.txt* For Vim version 8.2. Last change: 2020 Aug 17
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -652,7 +652,7 @@ list of the current window.
652652
:args ## x
653653
< This will add the "x" item and sort the new list.
654654

655-
:argd[elete] {pattern} .. *:argd* *:argdelete* *E480*
655+
:argd[elete] {pattern} .. *:argd* *:argdelete* *E480* *E610*
656656
Delete files from the argument list that match the
657657
{pattern}s. {pattern} is used like a file pattern,
658658
see |file-pattern|. "%" can be used to delete the
@@ -662,7 +662,7 @@ list of the current window.
662662
Example: >
663663
:argdel *.obj
664664
665-
:[range]argd[elete] Delete the {range} files from the argument list.
665+
:[range]argd[elete] Delete the [range] files from the argument list.
666666
Example: >
667667
:10,$argdel
668668
< Deletes arguments 10 and further, keeping 1-9. >

runtime/doc/eval.txt

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 8.2. Last change: 2020 Aug 15
1+
*eval.txt* For Vim version 8.2. Last change: 2020 aug 30
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1135,7 +1135,7 @@ In legacy Vim script:
11351135
If expr8 is a Number or String this results in a String that contains the
11361136
expr1'th single byte from expr8. expr8 is used as a String (a number is
11371137
automatically converted to a String), expr1 as a Number. This doesn't
1138-
recognize multi-byte encodings, see `byteidx()` for an alternative, or use
1138+
recognize multibyte encodings, see `byteidx()` for an alternative, or use
11391139
`split()` to turn the string into a list of characters. Example, to get the
11401140
byte under the cursor: >
11411141
:let c = getline(".")[col(".") - 1]
@@ -1163,12 +1163,12 @@ error.
11631163

11641164
expr8[expr1a : expr1b] substring or sublist *expr-[:]*
11651165

1166-
If expr8 is a String this results in the substring with the bytes from expr1a
1167-
to and including expr1b. expr8 is used as a String, expr1a and expr1b are
1168-
used as a Number.
1166+
If expr8 is a String this results in the substring with the bytes or
1167+
characters from expr1a to and including expr1b. expr8 is used as a String,
1168+
expr1a and expr1b are used as a Number.
11691169

11701170
In legacy Vim script the indexes are byte indexes. This doesn't recognize
1171-
multi-byte encodings, see |byteidx()| for computing the indexes. If expr8 is
1171+
multibyte encodings, see |byteidx()| for computing the indexes. If expr8 is
11721172
a Number it is first converted to a String.
11731173

11741174
In Vim9 script the indexes are character indexes. To use byte indexes use
@@ -1185,6 +1185,7 @@ expr1b is smaller than expr1a the result is an empty string.
11851185

11861186
Examples: >
11871187
:let c = name[-1:] " last byte of a string
1188+
:let c = name[0:-1] " the whole string
11881189
:let c = name[-2:-2] " last but one byte of a string
11891190
:let s = line(".")[4:] " from the fifth byte to the end
11901191
:let s = s[:-3] " remove last two bytes
@@ -2359,7 +2360,7 @@ assert_equalfile({fname-one}, {fname-two} [, {msg}])
23592360
Number assert file contents are equal
23602361
assert_exception({error} [, {msg}])
23612362
Number assert {error} is in v:exception
2362-
assert_fails({cmd} [, {error} [, {msg}]])
2363+
assert_fails({cmd} [, {error} [, {msg} [, {lnum}]]])
23632364
Number assert {cmd} fails
23642365
assert_false({actual} [, {msg}])
23652366
Number assert {actual} is false
@@ -5722,6 +5723,7 @@ getreginfo([{regname}]) *getreginfo()*
57225723
If {regname} is invalid or not set, an empty Dictionary
57235724
will be returned.
57245725
If {regname} is not specified, |v:register| is used.
5726+
The returned Dictionary can be passed to |setreg()|.
57255727

57265728
Can also be used as a |method|: >
57275729
GetRegname()->getreginfo()
@@ -6029,7 +6031,7 @@ has({feature} [, {check}])
60296031
zero otherwise. This is useful to check for a typo in
60306032
{feature} and to detect dead code. Keep in mind that an older
60316033
Vim version will not know about a feature added later and
6032-
features that have been abandoned will not be know by the
6034+
features that have been abandoned will not be known by the
60336035
current Vim version.
60346036

60356037
Also see |exists()|.
@@ -8971,7 +8973,7 @@ setcellwidths({list}) *setcellwidths()*
89718973
tells Vim how wide characters are, counted in screen cells.
89728974
This overrides 'ambiwidth'. Example: >
89738975
setcellwidths([[0xad, 0xad, 1],
8974-
\ [0x2194, 0x2199, 2]]
8976+
\ [0x2194, 0x2199, 2]])
89758977

89768978
< *E1109* *E1110* *E1111* *E1112* *E1113*
89778979
The {list} argument is a list of lists with each three
@@ -8986,6 +8988,8 @@ setcellwidths({list}) *setcellwidths()*
89868988

89878989
To clear the overrides pass an empty list: >
89888990
setcellwidths([]);
8991+
< You can use the script $VIMRUNTIME/tools/emoji_list.vim to see
8992+
the effect for known emoji characters.
89898993

89908994

89918995
setcharsearch({dict}) *setcharsearch()*
@@ -11443,7 +11447,7 @@ mouse_urxvt Compiled with support for urxvt mouse.
1144311447
mouse_xterm Compiled with support for xterm mouse.
1144411448
mouseshape Compiled with support for 'mouseshape'.
1144511449
multi_byte Compiled with support for 'encoding' (always true)
11446-
multi_byte_encoding 'encoding' is set to a multi-byte encoding.
11450+
multi_byte_encoding 'encoding' is set to a multibyte encoding.
1144711451
multi_byte_ime Compiled with support for IME input method.
1144811452
multi_lang Compiled with support for multiple languages.
1144911453
mzscheme Compiled with MzScheme interface |mzscheme|.

runtime/doc/help.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*help.txt* For Vim version 8.2. Last change: 2020 Apr 05
1+
*help.txt* For Vim version 8.2. Last change: 2020 Aug 15
22

33
VIM - main help file
44
k
@@ -158,7 +158,7 @@ Programming language support ~
158158

159159
Language support ~
160160
|digraph.txt| list of available digraphs
161-
|mbyte.txt| multi-byte text support
161+
|mbyte.txt| multibyte text support
162162
|mlang.txt| non-English language support
163163
|rileft.txt| right-to-left editing mode
164164
|arabic.txt| Arabic language support and editing

runtime/doc/intro.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*intro.txt* For Vim version 8.2. Last change: 2020 May 30
1+
*intro.txt* For Vim version 8.2. Last change: 2020 Aug 15
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -232,8 +232,8 @@ Vim would never have become what it is now, without the help of these people!
232232
Flemming Madsen X11 client-server, various features and patches
233233
Tony Mechelynck answers many user questions
234234
Paul Moore Python interface extensions, many patches
235-
Katsuhito Nagano Work on multi-byte versions
236-
Sung-Hyun Nam Work on multi-byte versions
235+
Katsuhito Nagano Work on multibyte versions
236+
Sung-Hyun Nam Work on multibyte versions
237237
Vince Negri Win32 GUI and generic console enhancements
238238
Steve Oualline Author of the first Vim book |frombook|
239239
Dominique Pelle Valgrind reports and many fixes
@@ -510,7 +510,7 @@ the ":map" command. The rules are:
510510
<M-a> Meta- a ('a' with bit 8 set)
511511
<M-A> Meta- A ('A' with bit 8 set)
512512
<t_kd> "kd" termcap entry (cursor down key)
513-
Although you can specify <M-{char}> with {char} being a multi-byte
513+
Although you can specify <M-{char}> with {char} being a multibyte
514514
character, Vim may not be able to know what byte sequence that is and then
515515
it won't work.
516516

runtime/doc/map.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*map.txt* For Vim version 8.2. Last change: 2020 Aug 01
1+
*map.txt* For Vim version 8.2. Last change: 2020 Aug 30
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -191,6 +191,12 @@ whether to use the "," mapping or the longer one. To avoid this add the
191191
<nowait> argument. Then the mapping will be used when it matches, Vim does
192192
not wait for more characters to be typed. However, if the characters were
193193
already typed they are used.
194+
Note that this works when the <nowait> mapping fully matches and is found
195+
before any partial matches. This works when:
196+
- There is only one matching buffer-local mapping, since these are always
197+
found before global mappings.
198+
- There is another buffer-local mapping that partly matches, but it is was
199+
defined earlier (last defined mapping is found first).
194200

195201
*:map-<silent>* *:map-silent*
196202
To define a mapping which will not be echoed on the command line, add
@@ -595,7 +601,7 @@ construct can be used:
595601
<Char-033> character 27
596602
<Char-0x7f> character 127
597603
<S-Char-114> character 114 ('r') shifted ('R')
598-
This is useful to specify a (multi-byte) character in a 'keymap' file.
604+
This is useful to specify a (multibyte) character in a 'keymap' file.
599605
Upper and lowercase differences are ignored.
600606

601607
*map-comments*

0 commit comments

Comments
 (0)