0
0
mirror of https://github.com/vim/vim.git synced 2025-10-17 07:44:28 -04:00
Commit Graph

3935 Commits

Author SHA1 Message Date
Doug Kearns
c95e143819 runtime(doc): Miscellaneous documentation fixes
- Use full option name for 'clipboard' at :help :put.
- Minor rewordings, typo fixes, and formatting fixes.

related: #18453
closes: #18572

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-14 18:24:54 +00:00
Doug Kearns
97da1ec670 runtime(doc): Fix example highlighting at :help prop_list()
closes: #18573

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-13 21:07:22 +00:00
Doug Kearns
83eb1da19e runtime(doc): Normalise formatting of builtin function descriptions
- Column align tags
- Move tags to the same line as the function signature
- Move descriptions to the line below the function signature
- Add missing hyperlinks to builtins in the description text

closes: #18478

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-13 19:17:14 +00:00
Doug Kearns
a37fd72749 runtime(doc): Remove accidental option name highlighting from :help channel.txt
closes: #18564

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-13 19:08:45 +00:00
zeertzjq
6ab45471d4 runtime(doc): fix inconsistent alignment
closes: #18562

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-13 18:55:19 +00:00
Dragan Simic
310082f3cf runtime(rst): Add support for rst_minlines
Following the approach used in other syntax definitions, add support for
defining the "syntax sync minlines=..." values for rst files in the
users' ~/.vimrc files, to allow the users to adjust that value in case
syntax highlighting stops working for some of the files they edit.

related: #18566

Signed-off-by: Dragan Simic <dsimic@manjaro.org>
Signed-off-by: Marshall Ward <marshall.ward@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-13 18:26:54 +00:00
Doug Kearns
c58f91c035 runtime(doc): Whitespace updates
Use double sentence spacing and wrap lines at 'textwidth'.  Code
examples and tables were not wrapped unless this had already been done
locally.

closes: #18453

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-12 15:31:37 +00:00
Girish Palya
da2dabc6f7 patch 9.1.1850: completion: not triggered after i_Ctrl-W/i_Ctrl-U
Problem:  completion: not triggered after i_Ctrl-W/i_Ctrl-U
Solution: Trigger autocomplete when entering Insert mode
          (Girish Palya).

fixes: #18535
closes: #18543

Signed-off-by: Girish Palya <girishji@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-12 14:37:02 +00:00
bfoersterling
fcf4c435af patch 9.1.1849: CTRL-F and CTRL-B don't work in more prompt
Problem:  CTRL-F and CTRL-B don't work in more prompt
Solution: Make CTRL-F and CTRL-B scroll by a screen down/up
          (Bjoern Foersterling)

closes: #18545

Signed-off-by: bfoersterling <bjoern.foersterling@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-12 14:26:34 +00:00
Aliaksei Budavei
40dec4609d runtime(doc): Replace rotted URL links
Both links to libXpm and mysyntax.vim are up but the listed
libXpm version is not offered anymore and mysyntax.vim is no
longer served at all.  The link for searching dictionary
extensions of Apache OpenOffice is broken; an alternative
link can be discovered from the home page.  Finally, the
English dictionaries Apache OpenOffice extension is probably
gone for good (is it incompatible with more recent versions
of the suite?) as its page neither available directly nor
discoverable through search.

closes: 18549

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-12 14:17:57 +00:00
Doug Kearns
6800da6ff1 runtime(doc): Add missing optional tail command-name specs
- Use the optional tail command-name specs at help entries for :keepalt,
  :lcd, :cfdo, :lfdo, :wundo, :rundo, :bdelete and :bunload.
- Add missing shortname tags.

closes: #18547

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-11 15:51:45 +00:00
Hirohito Higashi
c7d6ec713e runtime(doc): Update documentation style in gui_w32.txt
closes: #18546

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-11 15:29:31 +00:00
Girish Palya
37aabaca64 runtime(doc): update credit section for Girish Palya
closes: #18544

Signed-off-by: Girish Palya <girishji@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-11 10:06:42 +00:00
Hirohito Higashi
bcf6c32b5d runtime(doc): Tweak documentation in develop.txt
closes: #18532

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-09 21:12:19 +00:00
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
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
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>
2025-10-09 19:17:49 +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
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
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>
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>
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
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
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
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
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>
2025-10-05 16:51:27 +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>
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
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>
2025-10-04 10:35:49 +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
Maria José Solano
1a691afd27 patch 9.1.1819: Cannot configure the inner foldlevel indicator
Problem:  Cannot configure the inner foldlevel indicator for the
          foldcolumn
Solution: Add "foldinner" suboption value to the 'fillchar' option
          (Maria José Solano).

closes: #18365

Signed-off-by: Maria José Solano <majosolano99@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-03 08:24:31 +00:00
Christian Brabandt
09b1ce0860 runtime(doc): fix typo after commit cfcf1a57cb
related: #18452

Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-03 08:11:39 +00:00
Girish Palya
cfcf1a57cb runtime(doc): Clarify use of "noselect" in 'completeopt'
closes: #18452

Co-authored-by: Tomasz N <przepompownia@users.noreply.github.com>
Signed-off-by: Girish Palya <girishji@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-01 21:09:53 +00:00
Hirohito Higashi
6e282117c7 runtime(doc): Tweak documentation style
closes: #18462

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-01 20:07:33 +00:00
zeertzjq
014c731fa5 runtime(doc): make :h virtcol() more accurate
The current description (especially the "unlimited width" part) is
inaccurate in several ways:
- The size of virtual text can depend on window width. In particular,
  the size of "above" virtual text can be equal to window width.
- A double-width character that doesn't fit adds 1 to the virtual column
  of the following characters.
- The size of 'showbreak' and 'breakindent' is counted.

related: #5713
closes: #18447

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-01 18:30:38 +00:00
Doug Kearns
21d40d2d41 runtime(help): Update syntax, match legacy header at :help vim9-mix
closes: #18458

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-09-30 20:12:55 +00:00
Mao-Yining
dddde9ce12 patch 9.1.1813: MS-Windows: title bar is always white
Problem:  MS-Windows: title bar is always white
Solution: Set_caption() and set the title bars color to the
          Normal highlighting background (Mao-Yining)

The implement of 'guidarkmode' is a much longer task, so I would like to
complete this most needed feature.

This commit seen the caption bar as the extension of the background so
it is follow the option 'background' before Windows 11 and follow the
background color after Windows 11.

fixes: #3922
fixes: #18028
closes: #18282

Signed-off-by: Mao-Yining <mao.yining@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-09-29 21:19:34 +00:00
Ola Söder
8f214168bd runtime(doc): Update os-support section for Amiga OS
related: #18423

Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-09-29 20:22:48 +00:00
Hirohito Higashi
3b1901eb53 runtime(doc): Tweak documentation style
closes: #18436

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-09-29 19:57:27 +00:00
Christian Brabandt
992e30774f runtime(doc): update list of modifiers at :h expand()
fixes: #18435

Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-09-29 19:15:52 +00:00
Doug Kearns
3a56139398 runtime(help): Update syntax, add vim9 example language
"vim9" is Vim9 script and "vim" is legacy script.

See: https://github.com/vim/vim/pull/18350#discussion_r2372462539

closes: #18407

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-09-28 18:09:38 +00:00
Doug Kearns
3de73844af runtime(doc): Fix :help complete() example
closes: #18417

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-09-28 18:01:15 +00:00
Aliaksei Budavei
91ac18cb03 runtime(java): Recognise _module_ import declarations
After two preview proposals (JEPs 476 and 494), _module_
import declarations are now a part of the language (JDK 25).

Reference:
https://openjdk.org/jeps/511

closes: #18424

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-09-28 17:40:29 +00:00
zeertzjq
9d5208a931 patch 9.1.1802: 'nowrap' in a modeline may hide malicious code
Problem:  'nowrap' in a modeline may hide malicious code.
Solution: Forcibly use '>' as 'listchars' "extends" if 'nowrap' was set
          from a modeline (zeertzjq).

Manual `:setlocal nowrap` disables this behavior.  There is a separate
problem with `:set nowrap` that also applies to some other options.

related: #18214
related: #18399
closes: #18425

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-09-28 17:37:58 +00:00
zeertzjq
4edaf89233 runtime(doc): improve preinserted() doc
Change the second "if" to "because", otherwise it may be misinterpreted
that preinserted() can return non-zero just because these options are
set.

closes: #18409

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-09-27 12:17:09 +00:00