| Age | Commit message (Collapse) | Author | Files |
|
indent support
The runtime had support to detect handlebars (*.hbs) files as filetype
handlebars but was lacking any indent or syntax highlighting for that
filetype.
The handlebars syntax file is also a prerequisite for the glimmer
syntax.
Permission was granted by the original author to retrofit these into the
Vim runtime. Original License (MIT) maintained in code comments.
related: vim/vim#19569
https://github.com/vim/vim/commit/99ea2b5b062edcb22ac0cd92c5ae317cc663a7ca
Co-authored-by: Devin Weaver <suki@tritarget.org>
|
|
closes: vim/vim#19316
https://github.com/vim/vim/commit/5ed37232bb23245f6d59fa928a7654d3933a2f0a
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
|
|
Also, mark @CatsDeservePets as maintainer.
closes: vim/vim#18640
https://github.com/vim/vim/commit/56d470a00863234f455fbfba6a96de4f49fe33aa
Co-authored-by: CatsDeservePets <145048791+CatsDeservePets@users.noreply.github.com>
|
|
indent/rust.vim behaves incorrectly when a string literal contains the
substring "if".
For example, in this code:
let x = "
motif
";
struct X {
}
indent/rust.vim thinks that the closing "}" should line up with "motif".
This patch fixes the issue by checking whether the "if" is in a string
literal or comment before considering it to be a match for a subsequent
brace (and also by requiring it to start on a word boundary).
Add an indent test to ensure this does not regress.
closes: vim/vim#19265
https://github.com/vim/vim/commit/663d809194b471ebbdd9e270086c6d0ca53da8fd
Co-authored-by: taylor.fish <contact@taylor.fish>
|
|
Problem: The indentation of Ansible Playbooks gets messed up after
gg=G (after 9179ddc0608813e)
Solution: Remove one shiftwidth() that seems to be misplaced.
closes: vim/vim#19180
https://github.com/vim/vim/commit/af973d401803fb1110f699ced6df45b74fcaed2b
Co-authored-by: Bjoern Foersterling <bjoern.foersterling@gmail.com>
|
|
closes: vim/vim#19110
https://github.com/vim/vim/commit/8e079085d23c9ca5eb352519a1142f91d247ab55
Co-authored-by: Christian Brabandt <cb@256bit.org>
|
|
inside list items
When a list item contains a mapping key (e.g., '- element1:'), the
content under that key was incorrectly indented. The indent function
was not accounting for the '- ' prefix when calculating indentation
for nested content.
Example that now works correctly:
list:
- element1:
foo: bar # Now correctly at indent 6, not 4
The fix adds special handling in two places:
1. When previous line ends with ':' and starts with '- '
2. When looking up previous mapping key that is a list item
Fixes indentation to account for the 2-character '- ' prefix.
fixes: vim/vim#18943
closes: vim/vim#19133
https://github.com/vim/vim/commit/9179ddc0608813e9dd7cf9ba856d61669d6f0e3a
Co-authored-by: Cezar Dimoiu <cezar.dimoiu@keysight.com>
|
|
closes: vim/vim#19112
https://github.com/vim/vim/commit/5eb10c5359e05338050819b8229bd4c8af36d365
Co-authored-by: Christian Brabandt <cb@256bit.org>
|
|
maintainer email (#37222)
https://github.com/vim/vim/commit/57352b279d4de492dee4be07d6bc4a116599bbac
Co-authored-by: Christian Brabandt <cb@256bit.org>
|
|
commits (#37192)
This reverts commits:
- 6b652a785033fd4164e049492a7327c1ed7c3e5f
- 2f689d5abde0ccddca9e20d8c93a0299bd054e32
- a025a46d4169587145fb54f04af349cd05cb6122
Several email addresses that are known to be valid caused bounces
due to an issue with my email setup. The previous commits incorrectly
marked these addresses as invalid. So revert the whole thing again.
https://github.com/vim/vim/commit/62d8f3dab5a0b30c31a8df86a973c5e59821a3f0
N/A patch:
vim-patch:2f689d5: runtime: mark more invalid email addresses
Co-authored-by: Christian Brabandt <cb@256bit.org>
|
|
https://github.com/vim/vim/commit/a025a46d4169587145fb54f04af349cd05cb6122
Co-authored-by: Christian Brabandt <cb@256bit.org>
|
|
https://github.com/vim/vim/commit/2f689d5abde0ccddca9e20d8c93a0299bd054e32
Skip colors/ and syntax/help_ru.vim: missing previous changes.
Co-authored-by: Christian Brabandt <cb@256bit.org>
|
|
literal (#37177)
fixes: vim/vim#18974
closes: vim/vim#19042
https://github.com/vim/vim/commit/5c2b594d0e86e4484cc92bd415aedbef5749bd9e
Co-authored-by: Brian Carbone <brian@briancarbone.com>
|
|
issues than it solves (#37156)
related: vim/vim#18974
https://github.com/vim/vim/commit/1bc3610b0a59ea89d9f58f2abab9f9b1062c1698
Co-authored-by: Christian Brabandt <cb@256bit.org>
|
|
empty line correctly (#37139)
fixes: vim/vim#18974
https://github.com/vim/vim/commit/e426245bb38fbafb504d8bf9f327a28c2785897c
Co-authored-by: Christian Brabandt <cb@256bit.org>
|
|
Problem: No indention support when editing bpftrace files.
Solution: Add indention settings based on cindent with custom options.
closes: vim/vim#19030
https://github.com/vim/vim/commit/ee3f10af8727c0c3ed554b6cda0904673273c8fc
Co-authored-by: Stanislaw Gruszka <stf_xl@wp.pl>
|
|
Port changes from JuliaEditorSupport/julia-vim made during 2022-2025.
Most notably:
- 88f178c Do not reset shiftwidth/expandtab at undo
- f17257a Allow else block in try/catch
- 7946ce3 Support public statements (added in Julia v1.11.0-DEV.469)
https://github.com/vim/vim/commit/f958d357237970728e448a23df4cf831f97a9ae9
Co-authored-by: Sergio Alejandro Vargas <savargasqu+git@unal.edu.co>
|
|
closes: vim/vim#18846
https://github.com/vim/vim/commit/cce452f52d6b52b1f1b630206ba3b54a12465152
Co-authored-by: CatsDeservePets <145048791+CatsDeservePets@users.noreply.github.com>
|
|
fixes: vim/vim#18739 (editor hang on mixed syntax style)
closes: vim/vim#18758
https://github.com/vim/vim/commit/d1288503aa0099ab36802312c6dcf3e87751797a
Co-authored-by: John Wellesz <john.wellesz@gmail.com>
|
|
indent to ftplugin (#36460)
closes: vim/vim#18680
https://github.com/vim/vim/commit/7dfdc7f6cb802d5283e2e0eedb87932b9cd2cb33
Co-authored-by: tocariimaa <tocariimaa@pissmail.com>
|
|
This patch preserves indentation in comments. It work by removing the
explicit 3-space indentation and replaces with with an expression which
uses the current value with a minimum of three spaces.
Discussed in the mailing list:
https://groups.google.com/g/vim_dev/c/rn8ZLDrCbYU
Thanks to Friedrich Romstedt for reporting and Christian Brabandt for
investigating the issue.
closes: vim/vim#18566
https://github.com/vim/vim/commit/64c8105867ae6342b632246ac5430a59521e740d
Co-authored-by: Marshall Ward <marshall.ward@gmail.com>
|
|
tracked files are removed
|
|
(#35740)
closes: vim/vim#17848
https://github.com/vim/vim/commit/becf1844e03462b2c997689caafc77bc9c812252
Co-authored-by: Luca Saccarola <github.e41mv@aleeas.com>
|
|
See: https://github.com/elkasztano/nushell-syntax-vim
Thanks to Pete Cruz (@Petesta) for promoting this addition.
closes: vim/vim#18208
https://github.com/vim/vim/commit/6505dc69d3a663448045d653112aa52e74894327
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
|
|
This brings the upstream files to commit 9dc3bd3 (ftplugin: escape Vim
special characters when opening docs, 2025-08-09). Note that not all
upstream files are included.
closes: vim/vim#17956
https://github.com/vim/vim/commit/7270a5a8431e0209043f14dd3fa3ea479e4cddc6
Co-authored-by: D. Ben Knoble <ben.knoble+github@gmail.com>
|
|
indent script (#34334)
Problem:
1. The `Fixedgq()` function is broken (see vim/vim#17412)
2. The `'formatexpr'` for Typescript is not documented, which causes
confusion to users when they try to set `'formatprg'`, since
`'formatexpr'` always takes precedence over `'formatprg'`. See also
https://github.com/HerringtonDarkholme/yats.vim/issues/209
3. Typescript already has a very good and popular formatter called
`prettier`, that can be easily integrated to Vim via `'formatprg'`
(see vim/vim#16989). I don't think there are any good reasons to reinvent a
half-baked version in Vim.
Solution: Remove the Fixedgq() 'formatexpr' function.
fixes: vim/vim#17412
closes: vim/vim#17452
https://github.com/vim/vim/commit/eb59129d2c06fd6627f537fce4fb8660cc8d0cda
|
|
runtime files
fixes: vim/vim#17372
closes: vim/vim#17377
https://github.com/vim/vim/commit/c8b7e6129a057fbcbff0d9e73dd8a476fd97a813
Co-authored-by: Gregory Anders <greg@gpanders.com>
|
|
special target
prevent indentation if the previous line starts with e.g. `.PHONY:`
closes: vim/vim#17183
https://github.com/vim/vim/commit/7bc988067eff6657e6f047491cadb32e0829544d
Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
|
|
runtime files
closes: vim/vim#17121
https://github.com/vim/vim/commit/fbbaa6ebe92b938f1f9ef008571c330a8d29166a
Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
|
|
Problem: filetype: SPA (single page application) JSON files are not
recognized (used by pipewire and wireplumber)
Solution: detect pipewire and wireplumber configuration files as spajson
filetype, include filetype, indent and syntax scripts for this
new filetype (David Mandelberg).
I looked at all the files found by this command to see if the syntax
highlighting looked reasonable:
```
find {~/.config,/etc,/usr/share}/{pipewire,wireplumber} -type f -name \*.conf
```
References:
* pipewire config files: https://docs.pipewire.org/page_config.html
* wireplumber config files:
https://pipewire.pages.freedesktop.org/wireplumber/daemon/configuration/conf_file.html
and
* https://pipewire.pages.freedesktop.org/wireplumber/daemon/locations.html
closes: vim/vim#16950
https://github.com/vim/vim/commit/4e7b4308fb92628434bd7e07ab92910c33051431
Co-authored-by: David Mandelberg <david@mandelberg.org>
|
|
script
https://github.com/vim/vim/commit/40ab82b974a31ab483abee6357d97d9018d775a7
Co-authored-by: Christian Brabandt <cb@256bit.org>
|
|
fixes: vim/vim#16930
https://github.com/vim/vim/commit/711f4a07f356cbe6f1d6d67994519f0b36a100f2
Co-authored-by: Christian Brabandt <cb@256bit.org>
|
|
Problem: filetype: m17ndb files are not detected
Solution: detect m17ndb files as m17ndb filetype,
include filetype, syntax and indent files for the
new filetype (David Mandelberg).
References:
https://www.nongnu.org/m17n/manual-en/m17nDBFormat.html describes the
format. https://git.savannah.nongnu.org/cgit/m17n/m17n-db.git/tree/ has
examples of the files.
closes: vim/vim#16696
https://github.com/vim/vim/commit/ed7d8e55ac232758fc14fd132994b4a09b19350b
Also adjust the xkb parent pattern according to dev_vimpatch.txt.
Co-authored-by: David Mandelberg <david@mandelberg.org>
|
|
Problem: filetype: just files are not recognized
Solution: adjust filetype detection pattern, detect just shebang line,
include just ftplugin, indent and syntax plugin
(Peter Benjamin)
closes: vim/vim#16466
https://github.com/vim/vim/commit/72755b3c8e91ec90447969b736f080e0de36003d
Co-authored-by: Peter Benjamin <petermbenjamin@gmail.com>
|
|
Contribute the core of my vim-graphql project (ftplugin, indent, syntax)
to the Vim project. This replaces the basic ftplugin support that was
already in the runtime with a more complete set of filetype settings. I
can assume maintainership for all of these files.
I'll continue to maintain the higher-level embedded filetype support
separately (in vim-graphql) for now, because it's fairly complex, but we
can consider integrating that code directly into vim later.
runtime files use the MIT license.
closes: vim/vim#16273
https://github.com/vim/vim/commit/4ce1cb5bf1dc507224792543d8e56e6ab431a2b5
Co-authored-by: Jon Parise <jon@indelible.org>
|
|
update maintainer
closes: vim/vim#16192
https://github.com/vim/vim/commit/b66cac1a8ed8636a38e867226f5bb621c96ff322
Co-authored-by: Luca Saccarola <github.e41mv@aleeas.com>
|
|
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
|
|
indent script
closes: vim/vim#16052
https://github.com/vim/vim/commit/0acd3abfadf54a97a3cad999791603aa6a8b2248
Co-authored-by: Lukas Zapletal <lzap+git@redhat.com>
|
|
This brings the included Racket runtime files to commit c41bc5a (indent
for[*]/lists with accumulator clause correctly, 2024-11-12) of
https://github.com/benknoble/vim-racket.
Note that not all files from that repository are included.
closes: vim/vim#16046
https://github.com/vim/vim/commit/8e013b14211ee236f4866e7281ad4366e0ab18cd
Co-authored-by: D. Ben Knoble <ben.knoble+github@gmail.com>
|
|
for (L)Idris2 + ipkg
closes: vim/vim#15993
https://github.com/vim/vim/commit/5ca8f223f03dbd85f5e06c8e1d500c65f311eaf1
Co-authored-by: Serhii Khoma <srghma@gmail.com>
Co-authored-by: Christian Clason <ch.clason+github@icloud.com>
|
|
Terraform (#30266)
closes: vim/vim#15618
https://github.com/vim/vim/commit/150b5078ac886519083576124090489c3a21bd3b
|
|
It's a personal annoyance for me. I have to edit yaml files on a lot of
customer environments and whenever you type '#' at the start of the
line, the commented line will be indented by whatever indent the
previous line had.
I hate this seriously, because it makes un-commenting painful. So let's
fix this. But instead of messing with the indent function, let's just
remove the '0#' from cinkeys, so that Vim won't perform re-indenting
when commenting out such a yaml file.
closes: vim/vim#15494
https://github.com/vim/vim/commit/c6ed816761f44da92d8c61f5ea6cb7fdbb45fac5
Co-authored-by: Christian Brabandt <cb@256bit.org>
|
|
closes: vim/vim#15446
https://github.com/vim/vim/commit/39eff4cdc055a0f0db0d32fcf7a74fe30ea54f25
Co-authored-by: David Pedersen <limero@me.com>
|
|
in indentexpr
Problem:
- Current lua indentexpr does not indent for '(' ')'.
- Missing indent test for lua.
Solution:
- Match '(', ')' in `function GetLuaIndentIntern`.
- Add an indent test for lua.
closes: vim/vim#15364
https://github.com/vim/vim/commit/c0f7505edeb36bf3e19386f276cafad7cba717a2
Co-authored-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
|
|
Problem: Apache Thrift files misses ftplugin, indent and syntax scripts
Solution:
- add ftplugin and indent scripts
- add thrift indent test
- port the syntax script from apache/thrift (Apache License 2)
Reference:
https://diwakergupta.github.io/thrift-missing-guide/#_language_reference
closes: vim/vim#15387
https://github.com/vim/vim/commit/011f2223e5df68f45a382f6a9dff6eaf5ecac346
Co-authored-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
|
|
(#29831)
Problem: filetype: OpenGL Shading Language files are not detected
Solution: detect various file extensions as GLSL filetype, include
indent and syntax script, do no longer recognize '*.comp'
as Mason filetype (Gregory Anders)
closes: vim/vim#15317
https://github.com/vim/vim/commit/e4b991ed36f96dd01c6d75e46a04fd1a99180e58
|
|
closes: vim/vim#15234
https://github.com/vim/vim/commit/1cc4cae961a7b49608ef7bd56837cc723d49db4d
Co-authored-by: Gregory Anders <greg@gpanders.com>
|
|
Problem: ocaml runtime files are outdated
Solution: sync those files with the upstream repo,
detect a few more ocaml files
(Yinzuo Jiang)
closes: vim/vim#15260
https://github.com/vim/vim/commit/700cf8cfa1e926e2ba676203b3ad90c2c2083f1d
Co-authored-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
|
|
Taken from excerpts of the Python ftplugin and adapted,
indent script simply sources the python indent script.
closes: vim/vim#15171
https://github.com/vim/vim/commit/fc533c9f06aff579437f9f2348a21241a72c7967
Co-authored-by: Riley Bruins <ribru17@hotmail.com>
|
|
closes: vim/vim#15138
https://github.com/vim/vim/commit/11d599257310bb95a7d1a3537345ae26f36c6210
Co-authored-by: novenary <novenary@kwak.zip>
|