Skip to content

Commit 42f0aea

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 796ea69 + a025a46 commit 42f0aea

File tree

733 files changed

+17840
-8314
lines changed

Some content is hidden

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

733 files changed

+17840
-8314
lines changed

.github/MAINTAINERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,12 @@ runtime/ftplugin/asy.vim @avidseeker
127127
runtime/ftplugin/autohotkey.vim @telemachus
128128
runtime/ftplugin/awk.vim @dkearns
129129
runtime/ftplugin/basic.vim @dkearns
130+
runtime/ftplugin/bicep.vim @scottmckendry
131+
runtime/ftplugin/bicep-params.vim @scottmckendry
130132
runtime/ftplugin/brighterscript.vim @ribru17
131133
runtime/ftplugin/brightscript.vim @ribru17
132134
runtime/ftplugin/bst.vim @tpope
135+
runtime/ftplugin/bpftrace.vim @sgruszka
133136
runtime/ftplugin/c3.vim @ttytm
134137
runtime/ftplugin/cabal.vim @ribru17
135138
runtime/ftplugin/cedar.vim @ribru17
@@ -221,6 +224,7 @@ runtime/ftplugin/kivy.vim @ribru17
221224
runtime/ftplugin/kotlin.vim @udalov
222225
runtime/ftplugin/lc.vim @ribru17
223226
runtime/ftplugin/ldapconf.vim @ribru17
227+
runtime/ftplugin/leex.vim @jparise
224228
runtime/ftplugin/leo.vim @ribru17
225229
runtime/ftplugin/less.vim @genoma
226230
runtime/ftplugin/lex.vim @ribru17
@@ -334,6 +338,7 @@ runtime/import/dist/vimhighlight.vim @lacygoill
334338
runtime/indent/arduino.vim @k-takata
335339
runtime/indent/astro.vim @wuelnerdotexe
336340
runtime/indent/basic.vim @dkearns
341+
runtime/indent/bpftrace.vim @sgruszka
337342
runtime/indent/bst.vim @tpope
338343
runtime/indent/cdl.vim @dkearns
339344
runtime/indent/chatito.vim @ObserverOfTime
@@ -377,6 +382,7 @@ runtime/indent/kdl.vim @imsnif @jiangyinzuo
377382
runtime/indent/kotlin.vim @udalov
378383
runtime/indent/krl.vim @KnoP-01
379384
runtime/indent/ld.vim @dkearns
385+
runtime/indent/lf.vim @andis-sprinkis
380386
runtime/indent/less.vim @genoma
381387
runtime/indent/liquid.vim @tpope
382388
runtime/indent/lua.vim @marcuscf
@@ -451,6 +457,7 @@ runtime/syntax/asy.vim @avidseeker
451457
runtime/syntax/autohotkey.vim @mmikeww
452458
runtime/syntax/awk.vim @dkearns
453459
runtime/syntax/basic.vim @dkearns
460+
runtime/syntax/bpftrace.vim @sgruszka
454461
runtime/syntax/bst.vim @tpope
455462
runtime/syntax/bzl.vim @dbarnett
456463
runtime/syntax/bzr.vim @hdima
@@ -550,6 +557,7 @@ runtime/syntax/kivy.vim @prophittcorey
550557
runtime/syntax/kotlin.vim @udalov
551558
runtime/syntax/kdl.vim @imsnif @jiangyinzuo
552559
runtime/syntax/krl.vim @KnoP-01
560+
runtime/syntax/leex.vim @jparise
553561
runtime/syntax/less.vim @genoma
554562
runtime/syntax/lf.vim @andis-sprinkis
555563
runtime/syntax/liquid.vim @tpope

CONTRIBUTING.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ A pull request has the advantage that it will trigger the Continuous
1212
Integration tests, you will be warned of problems (you can ignore the coverage
1313
warning, it's noisy).
1414

15-
Please consider adding a test. All new functionality should be tested and bug
16-
fixes should be tested for regressions: the test should fail before the fix and
17-
pass after the fix. Look through recent patches for examples and find help
18-
with ":help testing". The tests are located under "src/testdir".
15+
Please always add a test, if possible. All new functionality should be tested
16+
and bug fixes should be tested for regressions: the test should fail before the
17+
fix and pass after the fix. Look through recent patches for examples and find
18+
help with ":help testing". The tests are located under "src/testdir".
1919

2020
Contributions will be distributed with Vim under the Vim license. Providing a
2121
change to be included implies that you agree with this and your contribution
@@ -46,6 +46,15 @@ When merging PRs into Vim, the current maintainer @chrisbra usually adds missing
4646
anybody that explicitly *ACK*s a pull request as a statement that those
4747
approvers are happy with that particular change.
4848

49+
## Using AI
50+
51+
When using AI for contributions, please disclose this. Any AI-generated code
52+
must follow the Vim code style. In particular, [test_codestyle.vim][18]
53+
must not report any failures. Check the CI output for any test failures.
54+
55+
Ensure that changes are properly tested. Do not submit a single PR that
56+
addresses multiple unrelated issues.
57+
4958
# Reporting issues
5059

5160
We use GitHub [issues][17], but that is not a requirement. Writing to the Vim
@@ -160,3 +169,4 @@ mailing list. For other questions please use the [Vi Stack Exchange][8] website,
160169
[15]: https://en.wikipedia.org/wiki/Developer_Certificate_of_Origin
161170
[16]: https://github.com/vim/vim/blob/master/runtime/doc/helphelp.txt
162171
[17]: https://github.com/vim/vim/issues
172+
[18]: https://github.com/vim/vim/blob/master/src/testdir/test_codestyle.vim

Filelist

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,10 @@ RT_ALL = \
829829
runtime/pack/dist/opt/editorconfig/doc/editorconfig.txt \
830830
runtime/pack/dist/opt/editorconfig/ftdetect/editorconfig.vim \
831831
runtime/pack/dist/opt/editorconfig/plugin/editorconfig.vim \
832+
runtime/pack/dist/opt/helpcurwin/autoload/helpcurwin.vim \
833+
runtime/pack/dist/opt/helpcurwin/doc/helpcurwin.txt \
834+
runtime/pack/dist/opt/helpcurwin/doc/tags \
835+
runtime/pack/dist/opt/helpcurwin/plugin/helpcurwin.vim \
832836
runtime/pack/dist/opt/helptoc/autoload/helptoc.vim \
833837
runtime/pack/dist/opt/helptoc/doc/helptoc.txt \
834838
runtime/pack/dist/opt/helptoc/doc/tags \
@@ -852,7 +856,11 @@ RT_ALL = \
852856
runtime/pack/dist/opt/netrw/autoload/netrw_gitignore.vim \
853857
runtime/pack/dist/opt/netrw/doc/netrw.txt \
854858
runtime/pack/dist/opt/netrw/plugin/netrwPlugin.vim \
855-
runtime/pack/dist/opt/netrw/syntax/netrw.vim
859+
runtime/pack/dist/opt/netrw/syntax/netrw.vim \
860+
runtime/pack/dist/opt/osc52/plugin/osc52.vim \
861+
runtime/pack/dist/opt/osc52/autoload/osc52.vim \
862+
runtime/pack/dist/opt/osc52/doc/osc52.txt \
863+
runtime/pack/dist/opt/osc52/doc/tags
856864

857865
# Runtime files for all distributions without CR/LF translation.
858866
RT_ALL_BIN = \

README_vim.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
<div align="center" markdown="1">
2-
<sup>Special thanks for supporting Vim by donating to the <a href="https://iccf-holland.org/">ICCF</a>:</sup>
3-
<br>
4-
<br>
5-
<a href="https://go.warp.dev/vim">
6-
<img alt="Warp sponsorship" width="400" src="https://raw.githubusercontent.com/warpdotdev/brand-assets/refs/heads/main/Github/Sponsor/Warp-Github-LG-03.png">
7-
</a>
8-
9-
### [Warp, built for coding with multiple AI agents.](https://www.warp.dev/vim)
10-
[Available for MacOS, Linux, & Windows](https://www.warp.dev/vim)<br>
11-
</div>
12-
<hr>
13-
141
# [![Vim The editor](https://github.com/vim/vim/raw/master/runtime/vimlogo.gif)](https://www.vim.org)
152

163
[![Github Build status](https://github.com/vim/vim/workflows/GitHub%20CI/badge.svg)](https://github.com/vim/vim/actions?query=workflow%3A%22GitHub+CI%22)

lang/LICENSE.zh_cn.txt

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
注意: 本译文仅供参考。若因译文错漏引发任何问题,译者概不承担责任。VIM 许可证的
2+
完整英文版本为唯一法律依据。如有任何疑问,以英文原文为准。
3+
4+
VIM 许可证
5+
6+
I) 可以任意发布没有修改的 Vim 的拷贝,但是必须保证包含本许可证。您也可以发布
7+
未经修改的部分 Vim,同样也必须包含这份许可证。发布由未经修改的 Vim 源代码
8+
所编译出的 Vim 可执行文件,外加您自己的应用实例和 Vim 脚本也是允许的。
9+
10+
II) 在满足以下全部四个条件的前提下,您可以发布经过修改 (或扩充) 的 Vim 版本,
11+
包括可执行文件 和/或 源代码:
12+
1) 本许可证必须包含在内,并且不能被修改。
13+
2) 经过修改的 Vim 必须以下述五种方式之一发布:
14+
a) 如果您本人对 Vim 做了改动,您必须在发布版本里清楚地说明如何与您联系。
15+
当 Vim 的维护者 (以任何方式) 向您索取您所发布的 Vim 时,您必须把所做
16+
的改动包括源代码无偿地提供出来。维护者保留把这些改动加入 Vim 正式版本
17+
的权利。至于维护者怎样处理这些改动,以及用什么许可证发布,可以协商。
18+
如果没有协商,那么,本许可证,或者它更新的版本,同样适用于您做出的改
19+
动。Vim 现在的几位维护者可见:
20+
https://github.com/orgs/vim/people
21+
如果维护者发生变动,会在合适的地方 (很可能是 vim.sf.net、www.vim.org
22+
和/或 comp.editors) 公布,当完全不能与维护者联系时,发送变更的约定自
23+
动终止。一旦维护者确认收到了您所做的修改,您就不必再次发送了。
24+
25+
b) 如果您得到的是一个修改过的 Vim,并且它是在条件 a) 下发布的,那么您可
26+
以不加改动地在条件 I) 下发布它;如果您又做了额外的改动,则这些改动受
27+
到 a) 款条文的约束。
28+
29+
c) 在您发布的经过修改的 Vim 的每一份拷贝里,提供所有的变更部分,包括源代
30+
码。提供的形式可以采用上下文风格的差异比较记录 (context diff)。您可以
31+
为添加的新代码选择许可证,但是这些更改和为其选择的许可证不能限制他人
32+
对 Vim 正式版本作出自己的改动。
33+
34+
d) 在满足以下全部三个条件的前提下,您可以继续发布带有条件 c) 所提及之变
35+
更的经过修改的 Vim,而不必在发布时提供更改部分的源代码:
36+
- 这些变更所附带的许可证允许您把这些变更无偿地并且没有任何限制地提供
37+
给 Vim 的维护者,而且允许 Vim 的维护者无偿地并且没有任何限制地把这
38+
些更改加入到 Vim 的正式版本中。
39+
- 从您最后一次发布更改的 Vim 之日起,您要保存这些改动至少三年时间。在
40+
这期间,维护者或别人 (以任何方式) 向您要求提供这些变更时,您必须提
41+
供给他。
42+
- 您要在发布版本中清楚地说明如何与您联系,这个联系方式必须保证自最后
43+
一次发布相应的经过修改的 Vim 之日起至少三年有效,或尽可能长。
44+
e) 当这些变更以 GPL (GNU General Public License,GNU 通用公共许可证) 发
45+
布时,您可以在 GPL 版本 2,或更高版本的 GPL 下发布修改过的 Vim。
46+
3) 必须添加一条改动的信息。至少要放在 "version" 命令的输出和启动画面里,好
47+
让用户知道自己用的是一个修改过的 Vim。当以 2)e) 条件发布时,只有不与变
48+
更适用的许可证冲突,这个信息的添加才是必要的。
49+
4) 在 2)a) 和 2)d) 条件里要求的联系方式不能随便更改或删除,除非是作者自己
50+
作出的更正。
51+
52+
III) 如果您发布一个更改过的 Vim,强烈建议您对变更部分使用 Vim 的许可证,并且对
53+
维护者提供变更部分并开放源代码。最好的方式是通过电子邮件或者把文件放到服
54+
务器上,通过电子邮件传送 URL。如果只修改了很少的部分 (例如,只是一个修改
55+
过的 Makefile),那么传送一个上下文风格的差异比较记录 (context diff) 就可
56+
以了。电子邮件的地址是 <maintainer@vim.org>
57+
58+
IV) 不允许从 Vim 的源代码的发行版本或其中部分的源代码里删除本许可证,即使来自
59+
更改过的版本也是如此。您可能想用这份许可证代替以前版本的 Vim 里的许可证,
60+
这可以由您自行决定。

lang/README.zh_cn.txt

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
Vim: Vi IMproved 9.1 版本的 README.txt 文件
2+
3+
4+
什 么 是 VIM ?
5+
6+
Vim 是经典 UNIX 编辑器 Vi 的一个极大改进版本。它新增了许多功能:多级撤销、语法高
7+
亮、命令行历史、在线帮助、拼写检查、文件名补全、块操作、脚本语言等。同时也提供了
8+
图形用户界面(GUI)。尽管如此,Vi 兼容性依然得以保留,习惯使用 Vi 的用户操作时仍
9+
会感到得心应手。与 Vi 的差异请参阅 "runtime/doc/vi_diff.txt"。
10+
11+
此编辑器对于编辑代码和其他纯文本文件非常有用。所有命令都通过常规键盘字符输入,因
12+
此熟练盲打的用户能够高效工作。此外,用户可以将功能键映射到命令,并且可以使用鼠标。
13+
14+
Vim 也致力于提供一个(基本)符合 POSIX 标准的 vi 实现。当它以最小功能集(通常称
15+
为 vim.tiny)编译时,被许多 Linux 发行版用作默认的 vi 编辑器。
16+
17+
Vim 可在 MS-Windows (7, 8, 10, 11)、macOS、Haiku、VMS 以及几乎所有 UNIX 变体上运
18+
行。移植到其他系统应该不太困难。旧版本的 Vim 曾在 Amiga DOS、Atari MiNT、BeOS、
19+
MS-DOS、MS-Windows 95/98/Me/NT/2000/XP/Vista、RISC OS 和 OS/2 上运行。这些版本的
20+
维护现已终止。
21+
22+
23+
获 取 途 径
24+
25+
通常你可以使用你喜欢的软件包管理器来安装 Vim。在 Mac 和 Linux 上,会预装一个简化
26+
版的 Vim,如果你需要更多功能,仍需要安装完整的 Vim。
27+
28+
有针对 Unix、PC、Amiga 和其他一些系统的独立发行版。本 README.txt 文件随运行时存
29+
档一起提供。该存档包含文档、语法文件以及其他运行时使用的文件。要运行 Vim,你必须
30+
获取二进制存档或源代码存档之一。您需要哪一种取决于您想要运行 Vim 的系统以及您是
31+
否希望或必须自行编译。请查阅 "https://www.vim.org/download.php" 以了解当前可用的
32+
发行版概览。
33+
34+
获取最新版 Vim 的常见方式:
35+
* 从 github 检出 git 仓库:https://github.com/vim/vim。
36+
* 以存档形式获取源代码:https://github.com/vim/vim/tags。
37+
* 从 vim-win32-installer 仓库获取 Windows 可执行文件:
38+
https://github.com/vim/vim-win32-installer/releases。
39+
40+
41+
编 译
42+
43+
如果你获得的是二进制发行版,则无需编译 Vim。如果你获得的是源代码发行版,编译 Vim
44+
所需的所有内容都在 "src" 目录中。请参阅 src/INSTALL 文件中的说明。
45+
46+
47+
安 装
48+
49+
请查阅以下文件之一以获取系统特定的安装说明。这些文件位于仓库中的 READMEdir 目录,
50+
或者在你解压缩存档后的顶级目录中:
51+
52+
README_ami.txt Amiga
53+
README_unix.txt Unix
54+
README_dos.txt MS-DOS 和 MS-Windows
55+
README_mac.txt Macintosh
56+
README_haiku.txt Haiku
57+
README_vms.txt VMS
58+
59+
根据你使用的发行版,可能还有其他 README_*.txt 文件。
60+
61+
62+
文 档
63+
64+
Vim tutor 是为初学者设计的一小时培训课程。通常可以通过 "vimtutor" 命令启动。更多
65+
信息请参阅 ":help tutor"。
66+
67+
最佳方式是在 Vim 中使用 ":help" 命令。如果您尚未安装可执行文件,请阅读
68+
"runtime/doc/help.txt"。该文件包含指向其他文档文件的指引。用户手册采用书籍体例编
69+
排,是学习使用 Vim 的推荐资料。具体请参阅 ":help user-manual"。
70+
71+
72+
复 制 与 版 权
73+
74+
Vim 是慈善软件。您可以尽情使用和复制它,但鼓励您捐款以帮助乌干达的孤儿。请阅读
75+
"runtime/doc/uganda.txt" 文件了解详情(在 Vim 中执行 ":help uganda")。
76+
77+
许可摘要:对于未经修改的 Vim 副本,其使用或分发不受任何限制。Vim 的部分内容亦可
78+
分发,但必须始终包含许可文本。对于修改版本,则需遵循若干限制条款。本许可证与 GPL
79+
兼容,您可使用 GPL 库编译 Vim 并进行分发。
80+
81+
82+
赞 助
83+
84+
修复错误与增添新功能均需投入大量时间与精力。为支持开发工作并激励开发者持续完善
85+
Vim,敬请通过捐赠表达您的认可。
86+
87+
您捐赠的资金将主要用于帮助乌干达的儿童。请参阅 "runtime/doc/uganda.txt"。但同时,
88+
您的捐赠也将激励开发团队持续投入 Vim 的开发工作。
89+
90+
关于赞助的最新信息,请查看 Vim 网站:
91+
https://www.vim.org/sponsor/
92+
93+
94+
贡 献
95+
96+
如果您想帮助改进 Vim,请参阅 CONTRIBUTING.md 文件。
97+
98+
99+
信 息 与 支 持
100+
101+
如果您在 macOS 上,可以使用 MacVim:https://macvim.org
102+
103+
关于 Vim 的最新消息可以在 Vim 主页上找到:
104+
https://www.vim.org/
105+
106+
如果您遇到问题,请查阅 Vim 文档或使用技巧:
107+
https://www.vim.org/docs.php
108+
https://vim.fandom.com/wiki/Vim_Tips_Wiki
109+
110+
如果您仍有问题或其他疑问,请使用其中一个邮件列表与 Vim 用户和开发者讨论:
111+
https://www.vim.org/maillist.php
112+
113+
如果其他方法都无效,请直接将错误报告发送到 vim-dev 邮件列表:
114+
<vim-dev@vim.org>
115+
116+
117+
主 要 作 者
118+
119+
Vim 主要由 Bram Moolenaar <Bram@vim.org> 创建,可通过 ":help Bram-Moolenaar" 命
120+
令了解更多信息。
121+
122+
请将任何其他评论、补丁、鲜花和建议发送到 vim-dev 邮件列表:<vim-dev@vim.org>

nsis/README.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Preparatory stage
3535
and for the 64-bit version — "winpty.dll" from x64/bin to "winpty64.dll".
3636
Put the renamed file and "winpty-agent.exe" in "../.." (above the "vim91"
3737
directory). However, you can specify a different directory by specifying
38-
the appropriate makefile value. How to do this is described below.
38+
the appropriate makefile value. How to do this is described below.
3939

4040
6. To use stronger encryption, add the Sodium library. You can get it here:
4141
https://github.com/jedisct1/libsodium/releases/download/1.0.19-RELEASE/libsodium-1.0.19-msvc.zip
@@ -64,7 +64,7 @@ Preparatory stage
6464

6565
The default <GETTEXT directory> is "../..". However, you can specify a
6666
different directory by specifying the appropriate makefile value. How to do
67-
this is described below.
67+
this is described below.
6868

6969
8. Install NSIS if you didn't do that already.
7070
Download Unicode version the ShellExecAsUser plug-in for NSIS from:
@@ -80,7 +80,7 @@ Installer assembly stage
8080
After the installer is created and you copy it to the desired location, run
8181
the following command in the "/nsis" directory
8282
nmake.exe -lf Make_mvc.mak clean
83-
83+
8484
On UNIX-like systems, go to the "/nsis" directory and type the command
8585
make -f Makefile [variables] all
8686

nsis/lang/simpchinese.nsi

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,14 @@ LangString ^UninstallCaption ${LANG_SIMPCHINESE} \
2222
# Translated license file for the license page {{{1
2323
##############################################################################
2424

25-
LicenseLangString page_lic_file 0 "..\lang\LICENSE.nsis.txt"
26-
#LicenseLangString page_lic_file ${LANG_SIMPCHINESE} \
27-
# "..\lang\LICENSE.zh_cn.nsis.txt"
25+
LicenseLangString page_lic_file ${LANG_SIMPCHINESE} \
26+
"..\lang\LICENSE.zh_cn.nsis.txt"
2827

2928
##############################################################################
3029
# Translated README.txt file, which is opened after installation {{{1
3130
##############################################################################
3231

33-
LangString vim_readme_file 0 "README.txt"
34-
#LangString vim_readme_file ${LANG_SIMPCHINESE} "README.zh_cn.txt"
32+
LangString vim_readme_file ${LANG_SIMPCHINESE} "README.zh_cn.txt"
3533

3634
##############################################################################
3735
# MUI Configuration Strings {{{1

runtime/autoload/clojurecomplete.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
" Vim completion script
22
" Language: Clojure
3-
" Maintainer: Alex Vear <alex@vear.uk>
3+
" Maintainer: Alex Vear <alex@vear.uk> (invalid)
44
" Former Maintainers: Sung Pae <self@sungpae.com>
55
" URL: https://github.com/clojure-vim/clojure.vim
66
" License: Vim (see :h license)

runtime/autoload/decada.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Language: Ada (Dec Ada)
44
" $Id: decada.vim 887 2008-07-08 14:29:01Z krischik $
55
" Copyright: Copyright (C) 2006 Martin Krischik
6-
" Maintainer: Martin Krischik <krischik@users.sourceforge.net>
6+
" Maintainer: Martin Krischik <krischik@users.sourceforge.net> (invalid)
77
" $Author: krischik $
88
" $Date: 2008-07-08 16:29:01 +0200 (Di, 08 Jul 2008) $
99
" Version: 4.6

0 commit comments

Comments
 (0)