Skip to content

Commit 58706ac

Browse files
dlejaychrisbra
authored andcommitted
Update editorconfig and the documented C-style for sign.c/sound.c
closes: #17786 Signed-off-by: Damien Lejay <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent 2f7c957 commit 58706ac

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,12 @@ trim_trailing_whitespace = false
3535
[src/testdir/test*.vim]
3636
# Some tests need trailing whitespaces, for example `set showbreak=>>\ `
3737
trim_trailing_whitespace = false
38+
39+
#
40+
# Some custom files do not use tabs
41+
#
42+
[src/sign.c]
43+
indent_style = space
44+
45+
[src/sound.c]
46+
indent_style = space

runtime/doc/develop.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*develop.txt* For Vim version 9.1. Last change: 2025 May 05
1+
*develop.txt* For Vim version 9.1. Last change: 2025 Jul 18
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -237,6 +237,10 @@ you don't need to do anything due to the |modeline|.
237237

238238
For other editors an `.editorconfig` is provided at the root of the repo.
239239

240+
For the source files `sign.c` and `sound.c` and any new file use only spaces,
241+
no tabs. In addition, any new file must include a modeline with `set et` to
242+
pass the indentation test.
243+
240244

241245
DECLARATIONS *style-declarations*
242246

0 commit comments

Comments
 (0)