Skip to content

Commit 2aea746

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 6688ed2 + 68f1b1b commit 2aea746

87 files changed

Lines changed: 3230 additions & 1366 deletions

Some content is hidden

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

CONTRIBUTING.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,24 @@ Look in the header of the file for the name and email address.
5151
The maintainer will take care of issues and send updates to Bram for
5252
distribution with Vim.
5353

54-
If the maintainer does not react, contact the vim-dev maillist.
54+
If the maintainer does not respond, contact the vim-dev maillist.
55+
56+
57+
# Translations
58+
59+
Translating messages and runtime files is very much appreciated! These things can be translated:
60+
* Messages in Vim, see [src/po/README.txt][1]
61+
* Menus, see [runtime/lang/README.txt][2]
62+
* Vim tutor, see [runtime/tutor/README.txt][3]
63+
* Manual pages, see [runtime/doc/\*.1][4] for examples
64+
* Desktop icon, see [runtime/vim.desktop][5] and [runtime/gvim.desktop][6]
65+
66+
The help files can be translated and made available separately.
67+
See https://www.vim.org/translations.php for examples.
68+
69+
[1]: https://github.com/vim/vim/blob/master/src/po/README.txt
70+
[2]: https://github.com/vim/vim/blob/master/runtime/lang/README.txt
71+
[3]: https://github.com/vim/vim/blob/master/runtime/tutor/README.txt
72+
[4]: https://github.com/vim/vim/blob/master/runtime/doc/vim.1
73+
[5]: https://github.com/vim/vim/blob/master/runtime/vim.desktop
74+
[6]: https://github.com/vim/vim/blob/master/runtime/gvim.desktop

runtime/autoload/spellfile.vim

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ function! spellfile#LoadFile(lang)
2222
endif
2323
return
2424
endif
25+
let lang = tolower(a:lang)
2526

2627
" If the URL changes we try all files again.
2728
if s:spellfile_URL != g:spellfile_URL
@@ -30,13 +31,13 @@ function! spellfile#LoadFile(lang)
3031
endif
3132

3233
" I will say this only once!
33-
if has_key(s:donedict, a:lang . &enc)
34+
if has_key(s:donedict, lang . &enc)
3435
if &verbose
3536
echomsg 'spellfile#LoadFile(): Tried this language/encoding before.'
3637
endif
3738
return
3839
endif
39-
let s:donedict[a:lang . &enc] = 1
40+
let s:donedict[lang . &enc] = 1
4041

4142
" Find spell directories we can write in.
4243
let [dirlist, dirchoices] = spellfile#GetDirChoices()
@@ -57,14 +58,14 @@ function! spellfile#LoadFile(lang)
5758
endif
5859
endif
5960

60-
let msg = 'Cannot find spell file for "' . a:lang . '" in ' . &enc
61+
let msg = 'Cannot find spell file for "' . lang . '" in ' . &enc
6162
let msg .= "\nDo you want me to try downloading it?"
6263
if confirm(msg, "&Yes\n&No", 2) == 1
6364
let enc = &encoding
6465
if enc == 'iso-8859-15'
6566
let enc = 'latin1'
6667
endif
67-
let fname = a:lang . '.' . enc . '.spl'
68+
let fname = lang . '.' . enc . '.spl'
6869

6970
" Split the window, read the file into a new buffer.
7071
" Remember the buffer number, we check it below.
@@ -95,7 +96,7 @@ function! spellfile#LoadFile(lang)
9596
let newbufnr = winbufnr(0)
9697
endif
9798

98-
let fname = a:lang . '.ascii.spl'
99+
let fname = lang . '.ascii.spl'
99100
echo 'Could not find it, trying ' . fname . '...'
100101
call spellfile#Nread(fname)
101102
if getline(2) !~ 'VIMspell'

runtime/doc/autocmd.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ Name triggered by ~
345345
when popup menu is not visible
346346
|TextChangedP| after a change was made to the text in Insert mode
347347
when popup menu visible
348-
|TextYankPost| after text is yanked or deleted
348+
|TextYankPost| after text has been yanked or deleted
349349

350350
|ColorSchemePre| before loading a color scheme
351351
|ColorScheme| after loading a color scheme

runtime/doc/eval.txt

Lines changed: 39 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2196,7 +2196,7 @@ gettabvar({nr}, {varname} [, {def}])
21962196
any variable {varname} in tab {nr} or {def}
21972197
gettabwinvar({tabnr}, {winnr}, {name} [, {def}])
21982198
any {name} in {winnr} in tab page {tabnr}
2199-
getwininfo([{winid}]) List list of windows
2199+
getwininfo([{winid}]) List list of info about each window
22002200
getwinpos([{timeout}]) List X and Y coord in pixels of the Vim window
22012201
getwinposx() Number X coord in pixels of the Vim window
22022202
getwinposy() Number Y coord in pixels of the Vim window
@@ -4936,6 +4936,41 @@ gettabwinvar({tabnr}, {winnr}, {varname} [, {def}]) *gettabwinvar()*
49364936
:let list_is_on = gettabwinvar(1, 2, '&list')
49374937
:echo "myvar = " . gettabwinvar(3, 1, 'myvar')
49384938
<
4939+
To obtain all window-local variables use: >
4940+
gettabwinvar({tabnr}, {winnr}, '&')
4941+
4942+
getwininfo([{winid}]) *getwininfo()*
4943+
Returns information about windows as a List with Dictionaries.
4944+
4945+
If {winid} is given Information about the window with that ID
4946+
is returned. If the window does not exist the result is an
4947+
empty list.
4948+
4949+
Without {winid} information about all the windows in all the
4950+
tab pages is returned.
4951+
4952+
Each List item is a Dictionary with the following entries:
4953+
bufnr number of buffer in the window
4954+
height window height (excluding winbar)
4955+
loclist 1 if showing a location list
4956+
{only with the +quickfix feature}
4957+
quickfix 1 if quickfix or location list window
4958+
{only with the +quickfix feature}
4959+
terminal 1 if a terminal window
4960+
{only with the +terminal feature}
4961+
tabnr tab page number
4962+
variables a reference to the dictionary with
4963+
window-local variables
4964+
width window width
4965+
winbar 1 if the window has a toolbar, 0
4966+
otherwise
4967+
wincol leftmost screen column of the window,
4968+
col from |win_screenpos()|
4969+
winid |window-ID|
4970+
winnr window number
4971+
winrow topmost screen column of the window,
4972+
row from |win_screenpos()|
4973+
49394974
getwinpos([{timeout}]) *getwinpos()*
49404975
The result is a list with two numbers, the result of
49414976
getwinposx() and getwinposy() combined:
@@ -4969,37 +5004,6 @@ getwinposy() The result is a Number, which is the Y coordinate in pixels of
49695004
The result will be -1 if the information is not available.
49705005
The value can be used with `:winpos`.
49715006

4972-
getwininfo([{winid}]) *getwininfo()*
4973-
Returns information about windows as a List with Dictionaries.
4974-
4975-
If {winid} is given Information about the window with that ID
4976-
is returned. If the window does not exist the result is an
4977-
empty list.
4978-
4979-
Without {winid} information about all the windows in all the
4980-
tab pages is returned.
4981-
4982-
Each List item is a Dictionary with the following entries:
4983-
bufnr number of buffer in the window
4984-
height window height (excluding winbar)
4985-
winbar 1 if the window has a toolbar, 0
4986-
otherwise
4987-
loclist 1 if showing a location list
4988-
{only with the +quickfix feature}
4989-
quickfix 1 if quickfix or location list window
4990-
{only with the +quickfix feature}
4991-
terminal 1 if a terminal window
4992-
{only with the +terminal feature}
4993-
tabnr tab page number
4994-
variables a reference to the dictionary with
4995-
window-local variables
4996-
width window width
4997-
winid |window-ID|
4998-
winnr window number
4999-
5000-
To obtain all window-local variables use: >
5001-
gettabwinvar({tabnr}, {winnr}, '&')
5002-
50035007
getwinvar({winnr}, {varname} [, {def}]) *getwinvar()*
50045008
Like |gettabwinvar()| for the current tabpage.
50055009
Examples: >
@@ -9047,7 +9051,7 @@ win_id2win({expr}) *win_id2win()*
90479051
win_screenpos({nr}) *win_screenpos()*
90489052
Return the screen position of window {nr} as a list with two
90499053
numbers: [row, col]. The first window always has position
9050-
[1, 1].
9054+
[1, 1], unless there is a tabline, then it is [2, 1].
90519055
{nr} can be the window number or the |window-ID|.
90529056
Return [0, 0] if the window cannot be found in the current
90539057
tabpage.
@@ -11580,7 +11584,7 @@ The sandbox is also used for the |:sandbox| command.
1158011584

1158111585
These items are not allowed in the sandbox:
1158211586
- changing the buffer text
11583-
- defining or changing mapping, autocommands, functions, user commands
11587+
- defining or changing mapping, autocommands, user commands
1158411588
- setting certain options (see |option-summary|)
1158511589
- setting certain v: variables (see |v:var|) *E794*
1158611590
- executing a shell command
@@ -11602,6 +11606,7 @@ location. Insecure in this context are:
1160211606
- sourcing a .vimrc or .exrc in the current directory
1160311607
- while executing in the sandbox
1160411608
- value coming from a modeline
11609+
- executing a function that was defined in the sandbox
1160511610

1160611611
Note that when in the sandbox and saving an option value and restoring it, the
1160711612
option will still be marked as it was set in the sandbox.

runtime/doc/evim-ja.UTF-8.1

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,9 @@ MS-Windows のメモ帳のような動作です。
2525
.PP
2626
引数や Vim についての詳細は vim(1) を参照してください。
2727
.PP
28-
オプション 'insertmode' が設定され、テキストを直接、入力できるようになりま
29-
す。
28+
オプション 'insertmode' が設定され、テキストを直接、入力できるようになります。
3029
.br
31-
コピーとペーストのキー操作が MS-Windows と同じになるように、マップが設定され
32-
ます。
30+
コピーとペーストのキー操作が MS-Windows と同じになるように、マップが設定されます。
3331
CTRL-X が切り取り、CTRL-C がコピー、CTRL-V がペーストです。
3432
標準の CTRL-V の操作は CTRL-Q に割り当てられます。
3533
.SH オプション
@@ -41,8 +39,7 @@ eVim の初期化スクリプト。
4139
.SH 別名
4240
evim は "gumbies のための Vim" とも呼ばれています。
4341
evim を使っているあなたはきっと、頭にハンカチをかぶっているのです。
44-
(訳注: gumbies は Monty Python に登場するおもしろ集団。ハンカチをかぶっ
45-
ている。)
42+
(訳注: gumbies は Monty Python に登場するおもしろ集団。ハンカチをかぶっている。)
4643
.SH 関連項目
4744
vim(1)
4845
.SH 著者

runtime/doc/gui_w32.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ with the Intellimouse driver 2.2 and when "Universal Scrolling" is turned on.
442442

443443
XPM support *w32-xpm-support*
444444

445-
Gvim can be build on MS-Windows with support for XPM files. |+xpm_w32|
445+
GVim can be build on MS-Windows with support for XPM files. |+xpm_w32|
446446
See the Make_mvc.mak file for instructions, search for XPM.
447447

448448
To try out if XPM support works do this: >

runtime/doc/motion.txt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,12 +1019,13 @@ These commands are not marks themselves, but jump to a mark:
10191019
==============================================================================
10201020
8. Jumps *jump-motions*
10211021

1022-
A "jump" is one of the following commands: "'", "`", "G", "/", "?", "n",
1023-
"N", "%", "(", ")", "[[", "]]", "{", "}", ":s", ":tag", "L", "M", "H" and
1024-
the commands that start editing a new file. If you make the cursor "jump"
1025-
with one of these commands, the position of the cursor before the jump is
1022+
A "jump" is a command that normally moves the cursor several lines away. If
1023+
you make the cursor "jump" the position of the cursor before the jump is
10261024
remembered. You can return to that position with the "''" and "``" command,
1027-
unless the line containing that position was changed or deleted.
1025+
unless the line containing that position was changed or deleted. The
1026+
following commands are "jump" commands: "'", "`", "G", "/", "?", "n", "N",
1027+
"%", "(", ")", "[[", "]]", "{", "}", ":s", ":tag", "L", "M", "H" and the
1028+
commands that start editing a new file.
10281029

10291030
*CTRL-O*
10301031
CTRL-O Go to [count] Older cursor position in jump list
@@ -1163,7 +1164,7 @@ remembered.
11631164
*:changes*
11641165
:changes Print the change list. A ">" character indicates the
11651166
current position. Just after a change it is below the
1166-
newest entry, indicating that "g;" takes you to the
1167+
newest entry, indicating that `g;` takes you to the
11671168
newest entry position. The first column indicates the
11681169
count needed to take you to this position. Example:
11691170

@@ -1173,8 +1174,8 @@ remembered.
11731174
1 14 54 the latest changed line
11741175
>
11751176
1176-
The "3g;" command takes you to line 9. Then the
1177-
output of ":changes is:
1177+
The `3g;` command takes you to line 9. Then the
1178+
output of `:changes` is:
11781179
11791180
change line col text ~
11801181
> 0 9 8 bla bla bla

runtime/doc/netbeans.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,9 +409,9 @@ defineAnnoType typeNum typeName tooltip glyphFile fg bg
409409
Vim will define a sign for the annotation.
410410
When color is a number, this is the "#rrggbb" Red, Green and
411411
Blue values of the color (see |gui-colors|) and the
412-
highlighting is only defined for GVim.
412+
highlighting is only defined for gVim.
413413
When color is a name, this color is defined both for Vim
414-
running in a color terminal and for GVim.
414+
running in a color terminal and for gVim.
415415
When both "fg" and "bg" are "none" no line highlighting is
416416
used (new in version 2.1).
417417
When "glyphFile" is empty, no text sign is used (new in

runtime/doc/options.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2110,10 +2110,10 @@ A jump table for the options with a short description can be found at |Q_op|.
21102110
See also |map_bar|.
21112111
*cpo-B*
21122112
B A backslash has no special meaning in mappings,
2113-
abbreviations and the "to" part of the menu commands.
2114-
Remove this flag to be able to use a backslash like a
2115-
CTRL-V. For example, the command ":map X \<Esc>"
2116-
results in X being mapped to:
2113+
abbreviations, user commands and the "to" part of the
2114+
menu commands. Remove this flag to be able to use a
2115+
backslash like a CTRL-V. For example, the command
2116+
":map X \<Esc>" results in X being mapped to:
21172117
'B' included: "\^[" (^[ is a real <Esc>)
21182118
'B' excluded: "<Esc>" (5 characters)
21192119
('<' excluded in both cases)

runtime/doc/pattern.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,14 @@ the "#" is under your left hand middle finger (search to the left and up) and
293293
the "*" is under your right hand middle finger (search to the right and down).
294294
(this depends on your keyboard layout though).
295295

296+
*E956*
297+
In very rare cases a regular expression is used recursively. This can happen
298+
when executing a pattern takes a long time and when checkig for messages on
299+
channels a callback is invoked that also uses a pattern or an autocommand is
300+
triggered. In most cases this should be fine, but if a pattern is in use when
301+
it's used again it fails. Usually this means there is something wrong with
302+
the pattern.
303+
296304
==============================================================================
297305
2. The definition of a pattern *search-pattern* *pattern* *[pattern]*
298306
*regular-expression* *regexp* *Pattern*

0 commit comments

Comments
 (0)