Skip to content

Commit 508b3bf

Browse files
committed
Add .editorconfig to aid collaboration
Fuzzyy has used 4 space indent for vimscript. There is no hard rule here, but 2 space is probably more common (Vim's own runtime files are mostly 2 space indent, Google VimScript style guide suggests 2 spaces), so better to make this explicit for people who don't use anything to perform automatic detection, e.g. vim-sleuth or vim-polyglot plugins. Also, as the README is now being used as the source to generate the vim docs, a max line length helps write documentation that looks similar both in the source README and the generated vim docs.
1 parent 7326bcc commit 508b3bf

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.editorconfig

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[*]
2+
charset = utf-8
3+
end_of_line = lf
4+
indent_size = 2
5+
indent_style = space
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
9+
[*.vim]
10+
indent_size = 4
11+
12+
[*.md]
13+
max_line_length = 80
14+
trim_trailing_whitespace = false

0 commit comments

Comments
 (0)