0
0
mirror of https://github.com/vim/vim.git synced 2025-11-13 22:54:27 -05:00
Commit Graph

22431 Commits

Author SHA1 Message Date
Vadim Yanitskiy
e9d296e52a runtime(erlang): recognize -if/-elif as erlangPreCondit in syntax script
The -if(Condition)/-elif(Condition) are compiler macros that evaluate
the following lines only if Condition evaluates to true.  This patch
enables syntax highlighting for these macros.

https://www.erlang.org/doc/system/macros.html#conditional-compilation

closes: #18729

Signed-off-by: Vadim Yanitskiy <fixeria@osmocom.org>
Signed-off-by: Csaba Hoch <csaba.hoch@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-11-12 19:36:46 +00:00
Doug Kearns
9ab6a22c90 runtime(doc): Improve :help :ls description formatting
Quote the special buffer names for consistency (see :help bufname()) and
so that they're not incorrectly highlighted as optional command
arguments.

closes: #18730

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-11-12 19:33:01 +00:00
Doug Kearns
4f19d2768a runtime(vim): Update base syntax, match :prompt command args
closes: #18732

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-11-12 19:17:11 +00:00
Christian Brabandt
89f0a3a574 patch 9.1.1908: tests: test_crash.vim times out in CI ASAN builds
Problem:  tests: test_crash.vim times out in CI ASAN builds
Solution: Increase timeout for ASAN or Valgrind runs

closes: #18725

Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1908
2025-11-11 18:06:31 +00:00
Neil Lambert
f85951fee0 runtime(css): improve cssBoxProp matches
closes: #18717

Signed-off-by: Neil Lambert <nlambert@pm.me>
Signed-off-by: Jay Sitter <jsit@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-11-11 18:01:31 +00:00
notuxic
7dd51d3542 patch 9.1.1907: xterm: no support for mouse buttons 8 and 9
Problem:  xterm: no support for mouse buttons 8 and 9
Solution: Add support for terminals with xterm-like mouse functionality
          (notuxic)

closes: #18719

Signed-off-by: notuxic <notuxic@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1907
2025-11-11 17:52:45 +00:00
botantony
efc3be77bb patch 9.1.1906: filetype: not all Ruby files are recognized
Problem:  filetype: not all Ruby files are recognized
Solution: Detect *.rbi and Brewfile as ruby filetype
          (botantony).

- `rbi` is a file extension used by Sorbet, typechecker for Ruby:
   https://sorbet.org/docs/rbi

- `Brewfile` is a bundler file for Homebrew package manager:
   https://docs.brew.sh/Brew-Bundle-and-Brewfile

closes: #18697

Signed-off-by: botantony <antonsm21@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1906
2025-11-11 17:26:02 +00:00
Hirohito Higashi
1ff3e701e4 patch 9.1.1905: tabpanel: truncates terminal output
Problem:  tabpanel: truncates terminal output
          (hokorobi)
Solution: Use topframe->fr_width, not Columns (which includes the
          tabpanel width) (Hirohito Higashi)

related: #18678
closes: #18707

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1905
2025-11-11 17:20:13 +00:00
Christian Brabandt
b74ec159dd runtime(sqlcomplete): only set 'omnifunc' if dbext plugin was loaded
fixes: #18716

Co-authored-by: gcanat <72149218+gcanat@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-11-11 17:13:44 +00:00
Doug Kearns
97c37446e6 runtime(doc): Wrap some overlength lines in vim9{,class}.txt.
closes: #18724

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-11-11 16:47:24 +00:00
Doug Kearns
fe24972139 runtime(vim): Update base syntax, refine object constructor matching
Match "object" and "<" ... ">" separately with dedicated syntax groups
to allow for highlighting distinct from that generally used for types.

closes: #18721

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-11-11 16:37:09 +00:00
Peter Kenny
54cc820129 runtime(doc): Update Section 4 of vim9.txt
closes: #18610

Signed-off-by: Peter Kenny <github.com@k1w1.cyou>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-11-10 20:29:08 +00:00
tocariimaa
d3bef6cf3f runtime(sml): Fix number regex in syntax script
closes: #18690

Signed-off-by: tocariimaa <tocariimaa@pissmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-11-10 20:13:35 +00:00
Drew Vogel
1b92b278ba patch 9.1.1904: Code still supports GTK2 versions older than 2.4
Problem:  Code still supports GTK2 versions older than 2.4.
Solution: Drop support for GTK2 < 2.4 (Drew Vogel)

closes: #18708

Signed-off-by: Drew Vogel <dvogel@github>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1904
2025-11-10 20:04:37 +00:00
Drew Vogel
d32a26550b patch 9.1.1903: GTK naming still reflects GTK1 support
Problem:  GTK naming still reflects GTK1 support
Solution: Rename to avoid confusion (Drew Vogel)

related: #18708

Signed-off-by: Drew Vogel <dvogel@github>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1903
2025-11-10 20:01:04 +00:00
Drew Vogel
20ccdc7e50 patch 9.1.1902: GTK fails to compile with !FEAT_PROP_POPUP
Problem:  GTK fails to compile with !FEAT_PROP_POPUP
Solution: Correct syntax under #ifdef
          (Drew Vogel)

related: #18708

Signed-off-by: Drew Vogel <dvogel@github>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1902
2025-11-10 19:58:31 +00:00
Doug Kearns
e1e347475e runtime(vim): Update base syntax, fix :augroup error matching
Only terminate the :augroup END argument at whitespace, comments and
trailing bars.

closes: #18711

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-11-10 19:50:57 +00:00
Doug Kearns
acf928a33b runtime(doc): Improve windows.txt formatting
- Wrap some overlength lines
- Highlight the example at :help WinScrolled-event

closes: #18713

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-11-10 19:45:32 +00:00
Christian Brabandt
aa9862a5b0 patch 9.1.1901: tests: test_vim9_generics fails without job feature
Problem:  tests: test_vim9_generics fails when built without the job or
          channel feature (lazypingu)
Solution: Skip test if job/channel feature is not available

fixes: #18702

Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1901
2025-11-09 19:39:22 +00:00
Doug Kearns
542746521f runtime(doc): Clean up file header whitespace
- :retab! line 1 and line 4 (main page heading).
- Use four columns whitespace before "by [Author]" in the user manual
  heading to match the reference manual formatting.
- double space headings.

closes: #18648

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-11-09 19:23:50 +00:00
Doug Kearns
8869800f70 runtime(vim): Update base syntax, match :*do command arg
Match the Ex command arg to all :*do commands.

closes: #18700

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-11-09 18:59:52 +00:00
Jesse Portnoy
a795aab885 runtime(spec): Add support for more tags and distributions
- specMacroIdentifier: support macros starting with '?'; the most common
  example is `%{?dist}`
- specPreAmble: added some missing tags from:
  https://rpm.org/docs/4.19.x/manual/spec.html
- Added support for: `fedora`, `rhel`, `rocky`, `rhl`, `centos`, `el\d`
  and `fc\d`, see https://docs.fedoraproject.org/en-US/packaging-guidelines/DistTag

closes: #18703

Signed-off-by: Jesse Portnoy <jesse.portnoy@perforce.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-11-09 18:57:34 +00:00
Doug Kearns
59f0ea5b3e runtime(vim): Update base syntax, match Vim9 object type constructor
fixes: #18677.
closes: #18691

Reported by Aliaksei Budavei.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-11-08 17:23:47 +00:00
Hirohito Higashi
47c30bb03a patch 9.1.1900: tabpanel: wrong condition after v9.1.1898
Problem:  tabpanel: wrong condition after v9.1.1898
Solution: Update condition (Hirohito Higashi)

related: #18678
closes: #18692

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1900
2025-11-08 17:20:55 +00:00
Doug Kearns
185cec2b09 runtime(doc): Rewrite some overlength lines
closes: #18695

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-11-08 17:19:34 +00:00
Doug Kearns
a3063f2f90 runtime(doc): Wrap some overlength lines in the user manual
closes: #18696

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-11-08 17:18:16 +00:00
Doug Kearns
c28b73d349 runtime(doc): Improve :help synconcealed() description
closes: #18698

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-11-08 17:16:41 +00:00
Hirohito Higashi
ef02336915 patch 9.1.1899: tabpanel: getcmdscreenpos() wrong when tabpanel is shown
Problem:  tabpanel: getcmdscreenpos() wrong when tabpanel is shown
Solution: Adjust f_getcmdscreenpos() and add cmdline_col_off
          (Hirohito Higashi)

related: #18678
closes: #18699

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1899
2025-11-08 17:12:57 +00:00
Hirohito Higashi
cf4d9625c6 patch 9.1.1898: tabpanel: inconsistent use of cmdline with tabpanel
Problem:  tabpanel: inconsistent use of cmdline and message area with
          tabpanel
Solution: Reduce the cmdline and message area by the horizontal size of
          the tabpanel (Hirohito Higashi)

closes: #18678

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1898
2025-11-06 20:23:36 +00:00
Luke Lollard
24e4fa1603 patch 9.1.1897: Mac: Build failure on Mac OS X 10.6
Problem:  Mac: Build failure on Mac OS X 10.6 due to the use of generics
          for the sound feature.
Solution: Use the simple, non-generic Objective-C version.
          (Luke Lollard)

fixes: #17678
closes: #18681

Co-authored-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Luke Lollard <haihige@protonmail.ch>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1897
2025-11-06 20:04:38 +00:00
Konfekt
84baba329a runtime(compiler): do not override &l:makeprg on :compiler!
closes: #18686

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-11-06 19:47:36 +00:00
tocariimaa
7dfdc7f6cb runtime(sml): add filetype plugin, move options from indent to ftplugin
closes: #18680

Signed-off-by: tocariimaa <tocariimaa@pissmail.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-11-05 20:51:35 +00:00
Christian Brabandt
461dd9aca6 runtime(vim): 'iskeyword' setting not correctly restored
fixes: #18673

Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-11-04 18:13:55 +00:00
Christian Brabandt
1ead1b51e1 patch 9.1.1896: tests: patch v9.1.1895 breaks CI
Problem:  tests: patch v9.1.1895 breaks CI, by failing screen dump tests
          test_listlbr_utf8, test_diffmode and test_cmdline
Solution: Revert it

Revert "patch 9.1.1895: OSC terminal response hard to detect"
This reverts commit 8707b7a15b.

related: #18660

Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1896
2025-11-02 15:25:18 +00:00
Christian Brabandt
213109a999 runtime(doc): clarify W11 warning and possible options
fixes: #18589

Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-11-01 17:07:16 +00:00
Foxe Chen
8707b7a15b patch 9.1.1895: OSC terminal response hard to detect
Problem:  OSC terminal response hard to detect
Solution: Add the <OSC> and <xOSC> pseudo keys
          (Foxe Chen)

closes: #18660

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1895
2025-11-01 16:28:52 +00:00
Christian Brabandt
7c418c75a4 patch 9.1.1894: global_runtime_dir appends /after directory when using XDG
Problem:  global_runtime_dir appends /after directory when using XDG
          configuration directory (Marius Gedminas).
Solution: Do not append /after to RUNTIME_GLOBAL_AFTER.

closes: #18663
closes: #18665

Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1894
2025-11-01 16:20:10 +00:00
Christian Brabandt
0405665638 patch 9.1.1893: ICCF charity will dissolve
Problem:  ICCF charity will dissolve
Solution: Update references to Kuwasha

Since the ICCF[1] will be dissolved and handing over to the Kuwasha charity
to continue supporting the Kibaale Children Center in Uganda, update the
uganda.txt help file.

[1]: https://groups.google.com/g/vim_announce/c/pUNbNXBLbKw/m/-zFUd4JjAQAJ

fixes: #18584
closes: #18667

Signed-off-by:
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1893
2025-11-01 16:15:39 +00:00
Evgeni Chasnovski
294bce21ee patch 9.1.1892: Not possible to know once Vim is done with sourcing vimrc
Problem:   A plugin does not know when startup scripts were already
           triggered. This is useful to determine if a function is
           called inside vimrc or after (like when sourcing 'plugin/'
           files).
Solution:  Add the v:vim_did_init variable (Evgeni Chasnovski)

closes: #18668

Signed-off-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1892
2025-11-01 15:54:35 +00:00
Mohammad Reza Karimi
fe71c56d8f runtime(netrw): NetrwChgPerm for files not in cwd
Problem:  Changing permissions fail when using `gp` if the file under
          the cursor is not in the current working directory.
Solution: Use the already available `a:curdir` argument and prepend it
          to the `<cfile>`, so that the path of the file is correct.

This commit also refactors some leftover `netrw#ErrorMsg` to
`netrw#msg#Notify` (the main refactoring was done in
f5e3b5c04f).

closes: #18674

Signed-off-by: Mohammad Reza Karimi <m.r.karimi.j@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-11-01 15:46:04 +00:00
Mao-Yining
28f7582c16 runtime(log): syntax file update
closes: #18675

Signed-off-by: Mao-Yining <mao.yining@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-11-01 15:42:32 +00:00
Hirohito Higashi
07da26710a runtime(doc): Fix a few typos
closes: #18676

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-11-01 15:24:12 +00:00
varsidry
adc85151f3 patch 9.1.1891: g<End> does not move to last non-blank in visual mode
Problem:  In visual mode, g<End> does not move to the last non-blank
          character when the end of a line is on the same line as the
          cursor (after v9.0.1753)
Solution: Move the cursor back by one position if it lands after the
          line (varsidry)

fixes: #18657
closes: #18658

Signed-off-by: varsidry <240319857+varsidry@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1891
2025-10-31 16:16:11 +00:00
Christian Brabandt
958393b0b4 translation: regenerate po/vim.pot after 73a0de4a04
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-31 09:16:19 +00:00
zeertzjq
73a0de4a04 patch 9.1.1890: %P in 'statusline' doesn't behave as documented
Problem:  %P in 'statusline' doesn't behave as documented
          (after 9.1.1479).
Solution: Make the percentage 3-chars wide when not translated.
          (zeertzjq)

fixes: #18669
closes: #18671

Co-authored-by: Christ van Willegen <cvwillegen@gmail.com>
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1890
2025-10-31 09:10:05 +00:00
Samuel Huang
69dd5906fd patch 9.1.1889: filetype: not all AppleScript files are recognized
Problem:  filetype: not all AppleScript files are recognized
Solution: Detect *.applescript files as applescript filetype
          (Samuel Huang)

Reference:
https://en.wikipedia.org/wiki/AppleScript

closes: #18672

Signed-off-by: Samuel Huang <hi@sgh.ng>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1889
2025-10-31 09:03:04 +00:00
Aliaksei Budavei
4105ef16e3 Drop superfluous execute permissions for readable files
- runtime/ftplugin/plsql.vim (42e498)
- runtime/pack/dist/opt/editorconfig/LICENSE.PSF (e5e043)
- src/po/check.vim (96dab9)
- src/po/it.po (bb0d3b)

closes: #18666

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-30 19:05:03 +00:00
Christian Brabandt
8f551a70ad runtime: regenerate helptags, update last-change header in tombi compiler
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-29 20:20:10 +00:00
zeertzjq
5c3e762631 patch 9.1.1888: Wrong display with cpo+=$, matchparen and wrapped line
Problem:  Wrong display with cpo+=$, matchparen and wrapped line.
Solution: Use old cursor line height when scrolling with cpo+=$. Also
          fix wrong redraw in non-current window. (zeertzjq)

fixes: #18647
closes: #18662

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
v9.1.1888
2025-10-29 20:15:01 +00:00
Konfekt
14e7203713 runtime(compiler): Fix escaping in Windows shell command for tombi
As observed by Doug Kearns

related: #18590
closes: #18661

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-10-29 20:12:47 +00:00