Skip to content

Commit 63e4039

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 0692eb5 + 8b565c2 commit 63e4039

86 files changed

Lines changed: 2183 additions & 1321 deletions

Some content is hidden

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

Filelist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,8 @@ LANG_SRC = \
10281028
src/po/README_mvc.txt \
10291029
src/po/check.vim \
10301030
src/po/cleanup.vim \
1031+
src/po/tojavascript.vim \
1032+
src/po/fixfilenames.vim \
10311033
src/po/Makefile \
10321034
src/po/Make_all.mak \
10331035
src/po/Make_cyg.mak \

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: 64 additions & 9 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
@@ -2371,7 +2372,7 @@ assert_equalfile({fname-one}, {fname-two} [, {msg}])
23712372
Number assert file contents are equal
23722373
assert_exception({error} [, {msg}])
23732374
Number assert {error} is in v:exception
2374-
assert_fails({cmd} [, {error} [, {msg}]])
2375+
assert_fails({cmd} [, {error} [, {msg} [, {lnum}]]])
23752376
Number assert {cmd} fails
23762377
assert_false({actual} [, {msg}])
23772378
Number assert {actual} is false
@@ -2437,6 +2438,7 @@ ch_status({handle} [, {options}])
24372438
String status of channel {handle}
24382439
changenr() Number current change number
24392440
char2nr({expr} [, {utf8}]) Number ASCII/UTF8 value of first char in {expr}
2441+
charclass({string}) Number character class of {string}
24402442
chdir({dir}) String change current working directory
24412443
cindent({lnum}) Number C indent for line {lnum}
24422444
clearmatches([{win}]) none clear all matches
@@ -2557,6 +2559,7 @@ gettabvar({nr}, {varname} [, {def}])
25572559
gettabwinvar({tabnr}, {winnr}, {name} [, {def}])
25582560
any {name} in {winnr} in tab page {tabnr}
25592561
gettagstack([{nr}]) Dict get the tag stack of window {nr}
2562+
gettext({text}) String lookup translation of {text}
25602563
getwininfo([{winid}]) List list of info about each window
25612564
getwinpos([{timeout}]) List X and Y coord in pixels of the Vim window
25622565
getwinposx() Number X coord in pixels of the Vim window
@@ -2780,6 +2783,7 @@ setbufline({expr}, {lnum}, {text})
27802783
{expr}
27812784
setbufvar({expr}, {varname}, {val})
27822785
none set {varname} in buffer {expr} to {val}
2786+
setcellwidths({list}) none set character cell width overrides
27832787
setcharsearch({dict}) Dict set character search from {dict}
27842788
setcmdpos({pos}) Number set cursor position in command-line
27852789
setenv({name}, {val}) none set environment variable
@@ -3531,6 +3535,18 @@ char2nr({expr} [, {utf8}]) *char2nr()*
35313535
Can also be used as a |method|: >
35323536
GetChar()->char2nr()
35333537

3538+
3539+
charclass({string}) *charclass()*
3540+
Return the character class of the first character in {string}.
3541+
The character class is one of:
3542+
0 blank
3543+
1 punctuation
3544+
2 word character
3545+
3 emoji
3546+
other specific Unicode class
3547+
The class is used in patterns and word motions.
3548+
3549+
35343550
chdir({dir}) *chdir()*
35353551
Change the current working directory to {dir}. The scope of
35363552
the directory change depends on the directory of the current
@@ -5719,6 +5735,7 @@ getreginfo([{regname}]) *getreginfo()*
57195735
If {regname} is invalid or not set, an empty Dictionary
57205736
will be returned.
57215737
If {regname} is not specified, |v:register| is used.
5738+
The returned Dictionary can be passed to |setreg()|.
57225739

57235740
Can also be used as a |method|: >
57245741
GetRegname()->getreginfo()
@@ -5825,6 +5842,19 @@ gettagstack([{nr}]) *gettagstack()*
58255842
Can also be used as a |method|: >
58265843
GetWinnr()->gettagstack()
58275844

5845+
5846+
gettext({text}) *gettext()*
5847+
Translate {text} if possible.
5848+
This is mainly for use in the distributed Vim scripts. When
5849+
generating message translations the {text} is extracted by
5850+
xgettext, the translator can add the translated message in the
5851+
.po file and Vim will lookup the translation when gettext() is
5852+
called.
5853+
For {text} double quoted strings are preferred, because
5854+
xgettext does not understand escaping in single quoted
5855+
strings.
5856+
5857+
58285858
getwininfo([{winid}]) *getwininfo()*
58295859
Returns information about windows as a |List| with Dictionaries.
58305860

@@ -6013,7 +6043,7 @@ has({feature} [, {check}])
60136043
zero otherwise. This is useful to check for a typo in
60146044
{feature} and to detect dead code. Keep in mind that an older
60156045
Vim version will not know about a feature added later and
6016-
features that have been abandoned will not be know by the
6046+
features that have been abandoned will not be known by the
60176047
current Vim version.
60186048

60196049
Also see |exists()|.
@@ -8949,6 +8979,31 @@ setbufvar({expr}, {varname}, {val}) *setbufvar()*
89498979
third argument: >
89508980
GetValue()->setbufvar(buf, varname)
89518981

8982+
8983+
setcellwidths({list}) *setcellwidths()*
8984+
Specify overrides for cell widths of character ranges. This
8985+
tells Vim how wide characters are, counted in screen cells.
8986+
This overrides 'ambiwidth'. Example: >
8987+
setcellwidths([[0xad, 0xad, 1],
8988+
\ [0x2194, 0x2199, 2]])
8989+
8990+
< *E1109* *E1110* *E1111* *E1112* *E1113*
8991+
The {list} argument is a list of lists with each three
8992+
numbers. These three numbers are [low, high, width]. "low"
8993+
and "high" can be the same, in which case this refers to one
8994+
character. Otherwise it is the range of characters from "low"
8995+
to "high" (inclusive). "width" is either 1 or 2, indicating
8996+
the character width in screen cells.
8997+
An error is given if the argument is invalid, also when a
8998+
range overlaps with another.
8999+
Only characters with value 0x100 and higher can be used.
9000+
9001+
To clear the overrides pass an empty list: >
9002+
setcellwidths([]);
9003+
< You can use the script $VIMRUNTIME/tools/emoji_list.vim to see
9004+
the effect for known emoji characters.
9005+
9006+
89529007
setcharsearch({dict}) *setcharsearch()*
89539008
Set the current character search information to {dict},
89549009
which contains one or more of the following entries:
@@ -11406,7 +11461,7 @@ mouse_urxvt Compiled with support for urxvt mouse.
1140611461
mouse_xterm Compiled with support for xterm mouse.
1140711462
mouseshape Compiled with support for 'mouseshape'.
1140811463
multi_byte Compiled with support for 'encoding' (always true)
11409-
multi_byte_encoding 'encoding' is set to a multi-byte encoding.
11464+
multi_byte_encoding 'encoding' is set to a multibyte encoding.
1141011465
multi_byte_ime Compiled with support for IME input method.
1141111466
multi_lang Compiled with support for multiple languages.
1141211467
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

0 commit comments

Comments
 (0)