0
0
mirror of https://github.com/vim/vim.git synced 2025-10-15 07:14:09 -04:00
Commit Graph

22284 Commits

Author SHA1 Message Date
Yee Cheng Chin
1388fa62d2 runtime(doc): Add reference to 'wildoptions' in fuzzy-matching docs
The docs for fuzzy matching seems to try to list every possible use
case, but misses this one. It's a good idea to be consistent.

closes: #18525

Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-09 20:09:56 +00:00
Hirohito Higashi
6783021c65 patch 9.1.1842: MS-Windows: build failure when mzscheme is included
Problem:  MS-Windows: build failure when mzscheme is included
          (dertuxmalwieder, after v9.1.1838)
Solution: skip specific section when PROTO is defined
          (Hirohito Higashi)

fixes: #18529
closes: #18530

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1842
2025-10-09 19:59:48 +00:00
Doug Kearns
7dba04f15c runtime(doc,vim): Update base syntax, match full :syntime command
- Use the optional tail command-name spec at :help :syntime.
- Match full :syntime command and highlight args.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-09 19:39:57 +00:00
lacygoill
08c39d2fe9 runtime(vim): fix indentation after :registers +
closes: #18528

Signed-off-by: lacygoill <lacygoill@lacygoill.me>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-09 19:37:45 +00:00
Hirohito Higashi
ed93df4935 patch 9.1.1841: patch 9.1.1840 adds python build dependency
Problem:  patch 9.1.1840 adds python build dependency
          (chdizza)
Solution: Update dependencies (Hirohito Higashi)

fixes: #18523
related: #18045
closes: #18527

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1841
2025-10-09 19:17:49 +00:00
Hirohito Higashi
e7c765fe59 patch 9.1.1840: Generating prototype files does not work on all platforms
Problem:  Generating prototype files does not work on all platforms
Solution: Rework prototypes generation using python instead of cproto,
          enable it in CI to test it for each PR (Hirohito Higashi).

closes: #18045

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1840
2025-10-08 18:31:13 +00:00
Doug Kearns
ce5f9f45af runtime(vim): Update base syntax, allow legacy script comments after :eval
closes: #18522

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-08 18:22:23 +00:00
Miguel Barro
3c5221f8ee runtime(termdebug): Add remote debugging capabilities
closes: #18429

Co-authored-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Miguel Barro <miguel.barro@live.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-08 18:15:51 +00:00
Aliaksei Budavei
143686b3c4 runtime(java): Fold adjacent "import" declarations
Also, distinguish (by abbreviating their names) and manage
foldable kinds of syntax items: blocks of code ("b"), plain
comments ("c"), Javadoc comments ("d"), adjacent "import"
declarations ("i").  Fold all qualifying items by default;
otherwise, do not fold items of explicitly delisted kinds.
For example,
------------------------------------------------------------
	let g:java_ignore_folding = "bcdi"
------------------------------------------------------------

Resolves zzzyxwvut/java-vim#12.

closes: #18492

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-08 16:45:28 +00:00
Maxim Kim
97d1255558 runtime(colors): Update colorscheme and add TitleBar/TitleBarNC
closes: #18513

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-08 16:28:23 +00:00
zeertzjq
bd3b958027 patch 9.1.1839: Window may have wrong height if resized from another tabpage
Problem:  Window may have wrong height if resized from another tabpage.
Solution: Improve check for whether a tabline has been added (zeertzjq).

fixes: #18518
closes: #18519

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1839
2025-10-08 16:26:04 +00:00
Hirohito Higashi
3796c105cf patch 9.1.1838: proto files out of sync
Problem:  proto files out of sync
Solution: Update proto files (Hirohito Higashi)

closes: #18517

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1838
2025-10-08 16:23:22 +00:00
Doug Kearns
ec19075f61 runtime(doc): Normalise ellipsis dots in syntax.txt
Use three dots rather than two.

closes: #18521

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-08 16:20:23 +00:00
Christian Brabandt
d8ae4163e2 patch 9.1.1837: tests: Test_plugin_evaluate_in_popup() fails on 32bit
Problem:  tests: Test_plugin_evaluate_in_popup() fails on 32bit arch
          (James McCoy)
Solution: Instead of evaluating the ptr, let's evaluate just the pointer
          content, skipping printing the pointer address.

fixes: #18499
closes: #18503

Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1837
2025-10-07 20:56:51 +00:00
zeertzjq
a084914361 patch 9.1.1836: 'culopt' "screenline" not redrawn with line("w0") and :retab
Problem:  'cursorlineopt' "screenline" isn't redrawn when moving cursor
          and then using line("w0") and :retab that does nothing.
Solution: Call redraw_for_cursorcolumn() when setting a valid w_virtcol
          (zeertzjq).

closes: #18506

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1836
2025-10-07 20:53:48 +00:00
Girish Palya
474b981e40 patch 9.1.1835: completion: not possible to style popup borders globally
Problem:  not possible to style popup borders globally
Solution: Add the 'pumborder' option (Girish Palya)

This commit introduces a new global option, 'pumborder' ('pb'), that
allows users to define borders and optional decorations for the
completion popup menu.

```
Defines a border and optional decorations for the popup menu in
completion.  The value is a comma-separated list of keywords.

Border styles (at most one):
"single"singleuse thin box-drawing characters
"double"doubleuse double-line box-drawing characters
"round"rounduse rounded corners
"ascii"asciiuse ASCII characters (-, |, +)
"custom:XXXXXXXX"
    use eight characters given after "custom:",
    in order: top, right, bottom, left,
    topleft, topright, botright, botleft

Additional flags:
"margin"marginadds one-cell spacing inside the left and right border
"shadow"shadowdraws a shadow at the right and bottom edges

Highlight groups:
|hl-PmenuBorder|hl-PmenuBorderused for the border characters
|hl-PmenuShadow|hl-PmenuShadowused for the shadow

Examples: >
  :set pumborder=single
  :set pumborder=double,margin,shadow
  :set pumborder=custom:─│─│┌┐┘└,shadow

Border styles using box-drawing characters ("single", "double",
"round") are only available when |'encoding'| is "utf-8" and
|'ambiwidth'| is "single".  "margin" requires a border style.
See also: |ins-completion-menu|.
```

fixes: https://github.com/vim/vim/pull/18441#issuecomment-3360188458
closes: #18486
closes: #17091

Signed-off-by: Girish Palya <girishji@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1835
2025-10-07 20:51:02 +00:00
Mao-Yining
2c09368273 patch 9.1.1834: MS-Windows: not possible to highlight the title bar
Problem:  MS-Windows: not possible to highlight the title bar
Solution: Make the title/caption bar configurable by introducing the
          'go-C' option value which allows to highlight it using the
          TitleBar and TitleBarNC highlighting groups (Mao-Yining).

Introduce titlebar color customization for Windows 11 GUI through
highlight groups and new 'guioptions' flag:

- Add 'C' flag to enable titlebar color customization (opt-in)
- New highlight groups: TitleBar (active) and TitleBarNC (inactive)
- Uses DWMWA_CAPTION_COLOR and DWMWA_TEXT_COLOR DWM attributes
- Dynamically loads dwmapi.dll for Windows 11 compatibility
- Defaults to system colors when set to NONE or feature disabled

closes: #18449

Signed-off-by: Mao-Yining <mao.yining@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1834
2025-10-07 19:41:59 +00:00
Elijah Greenstein
f8b9251d8f runtime(doc): Fix typos in syntax.txt
closes: #18504

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Elijah Greenstein <197816462+elijahgreenstein@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-07 19:22:05 +00:00
RestorerZ
d5cbbcb7c1 translation(ru): updated Vim manpages
closes: #18511

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-07 19:19:43 +00:00
RestorerZ
6d15e2f9dc translation(ru): Updated message file
closes: #18512

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-07 19:16:18 +00:00
Antonio Giovanni Colombo
bb0d3b52c1 translation(it): Update Italian translation
Signed-off-by: Antonio Giovanni Colombo <azc100@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-07 19:03:12 +00:00
Christian Brabandt
1082193e73 runtime(tex): link some tex highlight groups to new standard ones
fixes: #18505

Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-07 18:59:03 +00:00
Christian Brabandt
5d96fe83b5 translation: regenerate po/vim.pot after a644b7924d
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-06 19:11:38 +00:00
Girish Palya
10aa04e3d4 patch 9.1.1833: completion: fuzzy candidates are not sorted
Problem:  completion: fuzzy candidates are not sorted
          (ddad431)
Solution: Always sort fuzzy candidates (Girish Palya)

fixes: #18488
closes: #18497

Signed-off-by: Girish Palya <girishji@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1833
2025-10-06 19:06:02 +00:00
Peter Kenny
a51c53722c runtime(doc): Update sections 5 to 8 in vim9.txt
closes: #18350

Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Peter Kenny <github.com@k1w1.cyou>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-06 18:32:32 +00:00
Hirohito Higashi
723f34f3de patch 9.1.1832: if_perl: contains references to legacy if_perlsfio
Problem:  if_perl: contains references to legacy if_perlsfio.{c,pro} and
          USE_SFIO
Solution: Remove those references (Hirohito Higashi)

fixes: #18496
closes: #18500

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1832
2025-10-06 17:59:10 +00:00
MultisampledNight
882452644c runtime(zip): add *.pkpass to list of zip extensions
Similar to a359c9c25e.
See https://developer.apple.com/documentation/walletpasses/building-a-pass#Sign-the-Pass-and-Create-the-Bundle,
which explicitly mentions that pkpasses are just renamed ZIPs.

closes: #18501

Signed-off-by: MultisampledNight <contact@multisamplednight.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-06 17:56:20 +00:00
Daumantas Kavolis
cd6e209651 runtime(kerml): update KerML comments to handle more cases
closes: #18502

Signed-off-by: Daumantas Kavolis <daumantas.kavolis@sensmetry.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-06 17:52:40 +00:00
Christian Brabandt
adc729cd32 runtime(doc): fix typo in :h credits section
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-05 18:36:39 +00:00
Sean Dewar
620c655677 patch 9.1.1831: stray vseps in right-most 'winfixwidth' window
Problem:  vertical separator of 'winfixwidth' windows may remain if they
          become right-most windows from closing windows to the right.
Solution: Don't implicitly rely on frame_new_width to fix vseps, as the
          call may be skipped for 'winfixwidth' windows to preserve
          their width; do it explicitly in winframe_remove (Sean Dewar).

Note that I prefer win_new_width here over setting w_width directly, which
would've previously been done by win_split_ins after frame_add_vsep, as this
wasn't true for winframe_remove.

Though the equivalent issue of bottom 'winfixheight' windows leaving stray
statuslines with &ls=0 doesn't seem to exist, test it anyway.

closes: #18481

Signed-off-by: Sean Dewar <6256228+seandewar@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1831
2025-10-05 17:00:58 +00:00
Christian Brabandt
3b3cb04fa3 patch 9.1.1830: MS-Windows: Dark mode titlebar is not configurable
Problem:  MS-Windows: Dark mode titlebar is not configurable
          (after v9.1.1813)
Solution: Revert patch v9.1.1813

Revert "patch 9.1.1813: MS-Windows: title bar is always white"
This reverts commit dddde9ce12.

related: #18282

Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1830
2025-10-05 16:51:27 +00:00
Daumantas Kavolis
b73ccf7ff0 patch 9.1.1829: filetype: KerML and SysML files are not recognized
Problem:  filetype: KerML and SysML files are not recognized
Solution: Detect *.kerml as kerml filetype, detect *.sysml as sysml
          filetype, include a kerml and sysml filetype plugin
          (Daumantas Kavolis)

closes: #18476

Signed-off-by: Daumantas Kavolis <daumantas.kavolis@sensmetry.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1829
2025-10-05 13:37:00 +00:00
thinca
6858587761 patch 9.1.1828: local variables shadowed by import names
Problem:  local variables shadowed by import names
Solution: Check if a local variable exists before handling imports
          (thinca)

closes: #18480

Signed-off-by: thinca <thinca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1828
2025-10-05 13:27:26 +00:00
Girish Palya
f3d0d08907 patch 9.1.1827: completion: v9.1.1797 broke Ctrl-Y behaviour
Problem:  completion: v9.1.1797 broke Ctrl-Y behaviour
          (ddad431, after v9.1.1797)
Solution: Restore correct behaviour (Girish Palya).

closes: #18494

Signed-off-by: Girish Palya <girishji@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1827
2025-10-05 13:14:10 +00:00
Doug Kearns
a76ea52a48 runtime(doc): Use the optional tail command-name spec at :help :sign
closes: #18489

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-05 13:11:26 +00:00
Christian Brabandt
da91b5135f patch 9.1.1826: Patch v9.1.1230 causes confusion about Ctrl-C behaviour
Problem:  Patch v9.1.1230 causes confusion about Ctrl-C behaviour
          (kuuote, after v9.1.1230)
Solution: Revert the behaviour, keep the old behaviour

fixes: #17266

Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1826
2025-10-05 13:04:52 +00:00
Christian Brabandt
a67f2699b2 runtime(doc): update if_perl after v9.1.1822)
closes: #18468

Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-04 11:02:00 +00:00
Girish Palya
c51d1cc578 patch 9.1.1825: completion: flicker when LSP server is slow
Problem:  completion: flicker when LSP server is slow
Solution: reinsert leader text before invoking user function
          (Girish Palya)

Reference:
https://github.com/girishji/vimcomplete/issues/101#issuecomment-3343063245

In insert-mode completion, the leader text is temporarily removed while
searching for candidates. When the LSP server responds slowly, the
client may call `:sleep` to wait, which triggers `out_flush()`. This
causes the deleted text to disappear briefly before being redrawn,
resulting in visible flicker.

This commit reinserts the leader text before invoking the user function,
and removes it again afterward to eliminate flicker.

closes: #18468

Signed-off-by: Girish Palya <girishji@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1825
2025-10-04 10:55:40 +00:00
Christian Brabandt
420923c0c5 runtime(doc): update credits section
closes: #18485

Co-authored-by: Girish Palya <girishji@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-04 10:52:05 +00:00
zeertzjq
bcf44668f6 patch 9.1.1824: tests: no test for displaying 'foldcolumn' with Unicode "foldinner"
Problem:  tests: no test for displaying 'foldcolumn' with Unicode
          "foldinner" in 'fillchars'.
Solution: Add a few more test cases.  Also fix misplaced "foldinner"
          entry in version9.txt (zeertzjq).

closes: #18483

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1824
2025-10-04 10:35:49 +00:00
Yee Cheng Chin
dd9ed46a39 patch 9.1.1823: diff: w_topline may be invalidated
Problem:  diff: w_topline may be invalidated
Solution: Update lnum in diff_set_topline()
          (Yee Cheng Chin).

This can happen in ex_diffupdate() for certain edge cases which cause
the logic to now be wrong. This was also the root cause for #18437 where
Vim would crash due to a null pointer dereferencing (said pointer would
not be null under normal circumstances).

related: #18437
closes: #18484

Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1823
2025-10-04 10:26:55 +00:00
Mao-Yining
ae3a8664b3 runtime(doc): Add explanation for Vim's IME
related: #10513

Signed-off-by: Mao-Yining <mao.yining@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-04 10:23:38 +00:00
Aliaksei Budavei
bfcf638c73 runtime(java): Make changes for JDK 25
- Add to the list of java.lang classes three new types: IO,
  ScopedValue, and ScopedValue.Carrier.
- Add to the list of java.lang interfaces a new type:
  ScopedValue.CallableOp.
- "Demote" RuntimePermission from the list of java.lang
  class types to javaLangDeprecated.
- Reintroduce supported syntax-preview-feature numbers 455
  and 488 as _a new number_ 507.

References:
https://bugs.openjdk.org/browse/JDK-8353641
https://openjdk.org/jeps/506 (Scoped Values)
https://openjdk.org/jeps/507 (Primitive Types in Patterns etc.)
https://openjdk.org/jeps/512 (Compact Source Files etc.)

closes: #18479

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-04 10:09:58 +00:00
Doug Kearns
85fd7f8983 runtime(help): Update syntax
Match Vim9 return types in builtin function specifications.

closes: #18477

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-04 09:57:54 +00:00
Hirohito Higashi
64ff6d1688 patch 9.1.1822: Makefile still supports Perl < 5.005
Problem:  Makefile still supports Perl < 5.005
Solution: Remove support for Perl < 5.005, it's long been obsolete
          (Hirohito Higashi)

closes: #18474

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1822
2025-10-03 14:18:11 +00:00
RestorerZ
fabe9a4c88 nsis: Getting the Vim version number via makensis
closes: #18470

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-03 14:14:19 +00:00
RestorerZ
8feaa94e77 nsis: Duplicate files in the icons.zip archive have been removed
related: #18469

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-03 14:05:55 +00:00
RestorerZ
5178376ebf nsis: delete README.txt from the icons directory
related: #18469

Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-03 14:04:57 +00:00
Christian Brabandt
fdeb721251 Filelist: include nsis/icons/README.txt again
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-03 08:52:25 +00:00
Jan Claußen
67a8f2945e patch 9.1.1821: filetype: Not all PKL files are recognized
Problem:  filetype: Not all PKL files are recognized
Solution: Detect *.pcf as pkl filetype, detect using the pkl-lsp://
          protocol as pkl filetype, include PKL syntax script
          (Jan Claußen)

This adds basic syntax support for the new PKL language by Apple.

What works:
- Shebang support
- Comment support
- Integers (decimal, hex, octal and binary) support
- Floating point support including exponentials
- Basic datatype support
- Unicode escape delimiters
- Escape code support
- String interpolation
- Support up to five pounds for custom delimiters
- Folding of multi-line comments and blocks

What doesn't work:

  The language heavily uses parameterized type declarations, which can get
  very complex. It is very hard to highlight this properly. There is
  official Tree-sitter support for this. Since it is hard to pull this off
  in a vim syntax file, I opted for basic support of the data types.

References:
  https://github.com/apple/pkl-pantry

fixes: #18271
closes: #18274

Signed-off-by: Jan Claußen <jan.claussen10@web.de>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1821
2025-10-03 08:47:07 +00:00