07c37f6645
vim-patch:1f33732: runtime: guard recommended style settings consistently
...
Normalize the 15 existing guards to the documented two-level form
get(g:, 'X_recommended_style', get(g:, 'filetype_recommended_style', 1)):
fix the two non-standard "!exists() || != 0" guards (python, arduino) and
tolk's wrong fallback variable, and convert the simple one-level guards.
Add the guard to filetype plugins that set stylistic indentation/format
options without one: aap, abap, ada, cabal, cobol, elixir, falcon,
graphql, heex, idris2, mermaid, occam, racket, scala, swift, tera.
Settings that are required rather than stylistic are left untouched, e.g.
make/gomod/scdoc (mandatory tabs), chatito and vroom (indent mandated by
the format), and the textwidth/formatoptions cases in gitcommit/help/
jjdescription.
Supported by AI.
fixes: vim/vim#20036
closes : vim/vim#20650
https://github.com/vim/vim/commit/1f33732613304958c935f302d8cb44bddc7f672f
Co-authored-by: Christian Brabandt <cb@256bit.org >
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-29 08:47:54 +08:00
zeertzjq and Christian Brabandt
ab20681c52
vim-patch:62d8f3d: runtime: Revert several "mark invalid contact addresses" 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-02 06:53:44 +08:00
zeertzjq and Christian Brabandt
65e7aa9255
vim-patch:partial:2f689d5: runtime: mark more invalid email addresses
...
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 >
2026-01-01 08:17:57 +08:00
zeertzjq and Aaron Jacobs
58d5d97719
vim-patch:98ef843: runtime(rust): use textwidth=100 for the Rust recommended style ( #36875 )
...
The help text here said 99 was the recommended style for the standard
library, but I can't find a citation for this anywhere. In contrast the
Rust Style Guide hosted on rust-lang.org
[says](https://doc.rust-lang.org/stable/style-guide/#indentation-and-line-width )
the maximum line width is 100, and rustfmt
[agrees](https://github.com/rust-lang/rust/blob/37aa2135b5d0936bd13aa699d941aaa94fbaa645/src/tools/rustfmt/src/config/options.rs#L570 ).
Having the two disagree causes an annoying off-by-one error in vim: if
you configure vim to highlight too-long lines then it will occasionally
complain about a line that rustfmt refuses to fix.
closes : vim/vim#18892
https://github.com/vim/vim/commit/98ef8433b654ee96c57b66348b767edc73a44406
Co-authored-by: Aaron Jacobs <jacobsa@google.com >
2025-12-09 20:42:12 +08:00
zeertzjq and Aaron Jacobs
59a44caac6
vim-patch:eba5133: runtime(rust): Do not use rustfmt as 'formatprg' by default ( #36361 )
...
This reverts commit 4ac995bf9366c6624a0724d19b2226f4c95694b3.
This was added in vim/vim#16807 , with no explanation for why it was necessary beyond
"it's an example of an idea". It completely breaks `gq` for me—rustfmt doesn't
reflow comments so is not an appropriate tool here! Beyond that, formatting a
selection with rustfmt treats that selection as if it were an entire file,
throwing away any indentation.
For example, the commit causes `gq` to turn this:
```rust
pub fn foo() {
// blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah
}
```
into this:
```rust
pub fn foo() {
// blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah
}
```
which is totally wrong. In contrast, if I clear `formatprg` then `gq` does the
right thing again:
```rust
pub fn foo() {
// blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah
// blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah
// blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah
// blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah
// blah blah blah blah blah blah
}
```
related: vim/vim#16967
related: vim/vim#17055
closes : vim/vim#18640
https://github.com/vim/vim/commit/eba51337d4b8051b768164f3394d680742234ca8
Co-authored-by: Aaron Jacobs <jacobsa@google.com >
2025-10-27 23:45:14 +00:00
zeertzjq and Konfekt
2322ae403b
vim-patch:4ac995b: runtime(rust): set formatprg to rustfmt ( #33245 )
...
closes : vim/vim#16967
https://github.com/vim/vim/commit/4ac995bf9366c6624a0724d19b2226f4c95694b3
Co-authored-by: Konfekt <Konfekt@users.noreply.github.com >
2025-04-01 17:20:11 +08:00
Christian Clason and Konfekt
88085c2e80
vim-patch:7c3f9af: runtime(misc): unset compiler in various ftplugins
...
just to foster best practices
closes : vim/vim#15798
https://github.com/vim/vim/commit/7c3f9af0ed5dd7035f8a3fbb2f0bf965a453e359
Co-authored-by: Konfekt <Konfekt@users.noreply.github.com >
2024-10-07 19:19:15 +02:00
Christian Clason and Riley Bruins
2f5b8a0092
vim-patch:9.1.0464: no whitespace padding in commentstring option in ftplugins
...
Problem: no whitespace padding in commentstring option in ftplugins
Solution: Change default to include whitespace padding, update
existing filetype plugins with the new default value
(Riley Bruins)
closes : vim/vim#14843
https://github.com/vim/vim/commit/0a0830624a260660c7fa692ecb7e6e5de09114ba
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2024-06-04 10:38:55 +02:00
Christian Clason and MyyPo
920ef1fd71
vim-patch:ef21bcaab145
...
runtime(rust): Respect no_plugin_maps and no_rust_maps globals (vim/vim#14221 )
https://github.com/vim/vim/commit/ef21bcaab145d6b22fb7c823607de23700f82653
Co-authored-by: MyyPo <110892040+MyyPo@users.noreply.github.com >
2024-03-18 22:01:33 +01:00
Christian Clason and Gregory Anders
2dd5e472df
vim-patch:fc93594d562d
...
runtime(rust): sync rust runtime files with upstream (vim/vim#13075 )
https://github.com/vim/vim/commit/fc93594d562dbbd9da03c89754538f91efd0c7ca
Co-authored-by: Gregory Anders <8965202+gpanders@users.noreply.github.com >
2023-09-13 17:23:45 +02:00
Christian Clason and Lily Ballard
278805dfac
vim-patch:21aaff3faa82
...
Update my name and email in runtime files (vim/vim#12763 )
https://github.com/vim/vim/commit/21aaff3faa828c5c2677a0a9f1b90a0b780d57f6
Co-authored-by: Lily Ballard <lily@ballards.net >
2023-08-11 22:06:37 +02:00
Justin M. Keyes
0312fc2ddb
vim-patch:3c2881dc1195
...
Update runtime files. Add Rust support.
https://github.com/vim/vim/commit/3c2881dc1195f53ebafc387378399ddd6cb677a7
2017-11-07 01:04:17 +01:00