summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/indent
AgeCommit message (Collapse)AuthorFiles
2026-03-06vim-patch:99ea2b5: runtime(handlebars): adds handlebars template syntax & ↵zeertzjq1
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>
2026-02-10vim-patch:5ed3723: runtime(ruby): Update for Vim 9.2 release (#37806)zeertzjq2
closes: vim/vim#19316 https://github.com/vim/vim/commit/5ed37232bb23245f6d59fa928a7654d3933a2f0a Co-authored-by: Doug Kearns <dougkearns@gmail.com>
2026-02-06vim-patch:56d470a: runtime(lf): update syntax to support lf version r41 (#37750)zeertzjq1
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>
2026-01-29vim-patch:663d809: runtime(rust): Fix Rust indentation when string contains "if"zeertzjq1
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>
2026-01-16vim-patch:af973d4: runtime(yaml): fix indentation scriptzeertzjq1
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>
2026-01-09vim-patch:8e07908: runtime(sh): Update indent scriptzeertzjq1
closes: vim/vim#19110 https://github.com/vim/vim/commit/8e079085d23c9ca5eb352519a1142f91d247ab55 Co-authored-by: Christian Brabandt <cb@256bit.org>
2026-01-09vim-patch:9179ddc: runtime(yaml): update YAML indentation for mapping keys ↵zeertzjq1
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>
2026-01-08vim-patch:5eb10c5: runtime(xml): update XML runtime fileszeertzjq1
closes: vim/vim#19112 https://github.com/vim/vim/commit/5eb10c5359e05338050819b8229bd4c8af36d365 Co-authored-by: Christian Brabandt <cb@256bit.org>
2026-01-03vim-patch:57352b2: runtime: mention subscription only ml, fix typo in ↵zeertzjq2
maintainer email (#37222) https://github.com/vim/vim/commit/57352b279d4de492dee4be07d6bc4a116599bbac Co-authored-by: Christian Brabandt <cb@256bit.org>
2026-01-02vim-patch:62d8f3d: runtime: Revert several "mark invalid contact addresses" ↵zeertzjq30
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>
2026-01-01vim-patch:a025a46: runtime: mark more invalid email addresseszeertzjq4
https://github.com/vim/vim/commit/a025a46d4169587145fb54f04af349cd05cb6122 Co-authored-by: Christian Brabandt <cb@256bit.org>
2026-01-01vim-patch:partial:2f689d5: runtime: mark more invalid email addresseszeertzjq26
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>
2025-12-31vim-patch:5c2b594: runtime(rust): Update indentation after nested array ↵zeertzjq1
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>
2025-12-29vim-patch:1bc3610: runtime(rust): partly revert e426245b, it causes more ↵zeertzjq1
issues than it solves (#37156) related: vim/vim#18974 https://github.com/vim/vim/commit/1bc3610b0a59ea89d9f58f2abab9f9b1062c1698 Co-authored-by: Christian Brabandt <cb@256bit.org>
2025-12-28vim-patch:e426245: runtime(rust): clean-up indent script, handle opening ↵zeertzjq1
empty line correctly (#37139) fixes: vim/vim#18974 https://github.com/vim/vim/commit/e426245bb38fbafb504d8bf9f327a28c2785897c Co-authored-by: Christian Brabandt <cb@256bit.org>
2025-12-28vim-patch:ee3f10a: runtime(bpftrace): add indention plugin (#37132)zeertzjq1
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>
2025-12-09vim-patch:f958d35: runtime(julia): Update Julia runtime files (#36876)zeertzjq1
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>
2025-12-02vim-patch:cce452f: runtime(lf): update syntax to support lf version r39 (#36790)zeertzjq1
closes: vim/vim#18846 https://github.com/vim/vim/commit/cce452f52d6b52b1f1b630206ba3b54a12465152 Co-authored-by: CatsDeservePets <145048791+CatsDeservePets@users.noreply.github.com>
2025-11-21vim-patch:d128850: runtime(php): Update indent script to 1.76 (from 1.75)zeertzjq1
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>
2025-11-06vim-patch:7dfdc7f: runtime(sml): add filetype plugin, move options from ↵zeertzjq1
indent to ftplugin (#36460) closes: vim/vim#18680 https://github.com/vim/vim/commit/7dfdc7f6cb802d5283e2e0eedb87932b9cd2cb33 Co-authored-by: tocariimaa <tocariimaa@pissmail.com>
2025-10-14vim-patch:64c8105: runtime(rst): Preserve indentation of directiveszeertzjq1
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>
2025-09-27build(vim-patch.sh): ignore runtime/*/testdir/Eisuke Kawashima38
tracked files are removed
2025-09-13vim-patch:becf184: runtime(misc): removing saccarosium from maintainer list ↵zeertzjq1
(#35740) closes: vim/vim#17848 https://github.com/vim/vim/commit/becf1844e03462b2c997689caafc77bc9c812252 Co-authored-by: Luca Saccarola <github.e41mv@aleeas.com>
2025-09-07vim-patch:6505dc6: runtime(nu): Add new Nushell runtime fileszeertzjq1
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>
2025-08-11vim-patch:7270a5a: runtime(racket): update Racket runtime fileszeertzjq1
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>
2025-06-06vim-patch:eb59129: runtime(typescript): remove Fixedgq() function from ↵Phạm Bình An1
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
2025-05-26vim-patch:c8b7e61: runtime: Add license information for HCL and Terraform ↵Christian Clason1
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>
2025-04-23vim-patch:7bc9880: runtime(make): do not automatically indent after a ↵Christian Clason3
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>
2025-04-17vim-patch:fbbaa6e: runtime: set 'cpoptions' for line-continuation in various ↵Christian Clason1
runtime files closes: vim/vim#17121 https://github.com/vim/vim/commit/fbbaa6ebe92b938f1f9ef008571c330a8d29166a Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
2025-03-23vim-patch:9.1.1231: filetype: SPA JSON files are not recognizedChristian Clason1
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>
2025-03-19vim-patch:40ab82b: runtime(sh): remove invalid commented out line in syntax ↵Christian Clason1
script https://github.com/vim/vim/commit/40ab82b974a31ab483abee6357d97d9018d775a7 Co-authored-by: Christian Brabandt <cb@256bit.org>
2025-03-19vim-patch:711f4a0: runtime(sh): update sh indent scriptChristian Clason1
fixes: vim/vim#16930 https://github.com/vim/vim/commit/711f4a07f356cbe6f1d6d67994519f0b36a100f2 Co-authored-by: Christian Brabandt <cb@256bit.org>
2025-02-25vim-patch:9.1.1140: filetype: m17ndb files are not detected (#32618)zeertzjq1
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>
2025-01-23vim-patch:9.1.1042: filetype: just files are not recognizedChristian Clason1
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>
2024-12-23vim-patch:4ce1cb5: runtime(graphql): contribute vim-graphql to Vim coreChristian Clason1
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>
2024-12-10vim-patch:b66cac1: runtime(typst): add definition lists to formatlistpat, ↵Christian Clason1
update maintainer closes: vim/vim#16192 https://github.com/vim/vim/commit/b66cac1a8ed8636a38e867226f5bb621c96ff322 Co-authored-by: Luca Saccarola <github.e41mv@aleeas.com>
2024-11-21docs: misc (#31138)dundargoc1
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2024-11-15vim-patch:0acd3ab: runtime(sh): better function support for bash/zsh in ↵Christian Clason3
indent script closes: vim/vim#16052 https://github.com/vim/vim/commit/0acd3abfadf54a97a3cad999791603aa6a8b2248 Co-authored-by: Lukas Zapletal <lzap+git@redhat.com>
2024-11-14vim-patch:8e013b1: runtime(racket): update Racket runtime filesChristian Clason1
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>
2024-11-13vim-patch:5ca8f22: runtime(idris2): include filetype,indent+syntax plugins ↵Christian Clason1
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>
2024-09-04vim-patch:150b507: runtime(hcl,terraform): Add runtime files for HCL and ↵Gregory Anders2
Terraform (#30266) closes: vim/vim#15618 https://github.com/vim/vim/commit/150b5078ac886519083576124090489c3a21bd3b
2024-08-17vim-patch:c6ed816: runtime(yaml): do not re-indent when commenting out linesChristian Clason1
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>
2024-08-08vim-patch:39eff4c: runtime(proto): Add indent script for protobuf filetypeChristian Clason1
closes: vim/vim#15446 https://github.com/vim/vim/commit/39eff4cdc055a0f0db0d32fcf7a74fe30ea54f25 Co-authored-by: David Pedersen <limero@me.com>
2024-08-04vim-patch:c0f7505: runtime(lua): add/subtract a 'shiftwidth' after '('/')' ↵Christian Clason3
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>
2024-07-30vim-patch:011f222: runtime(thrift): add ftplugin, indent and syntax scriptsChristian Clason3
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>
2024-07-23vim-patch:9.1.0610: filetype: OpenGL Shading Language files are not detected ↵Gregory Anders1
(#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
2024-07-16vim-patch:1cc4cae: runtime(typst): Add typst runtime filesChristian Clason1
closes: vim/vim#15234 https://github.com/vim/vim/commit/1cc4cae961a7b49608ef7bd56837cc723d49db4d Co-authored-by: Gregory Anders <greg@gpanders.com>
2024-07-14vim-patch:9.1.0586: ocaml runtime files are outdatedChristian Clason1
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>
2024-07-12vim-patch:fc533c9: runtime(mojo): include mojo ftplugin and indent scriptChristian Clason1
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>
2024-07-04vim-patch:11d5992: runtime(rust): use shiftwidth() in indent scriptChristian Clason1
closes: vim/vim#15138 https://github.com/vim/vim/commit/11d599257310bb95a7d1a3537345ae26f36c6210 Co-authored-by: novenary <novenary@kwak.zip>