Compare commits

...

5 Commits

3 changed files with 25 additions and 4 deletions

View File

@ -5,7 +5,9 @@ root = true
# Defaults
[*]
# Future: https://github.com/editorconfig/editorconfig/issues/89
# Linux line endings, this repo/file is unlikely to be used in Windows
# Remember to always .gitattributes. lf line-endings are prettier default and
# required by doctoc, so enabling either of those breaks on Windows unless lf
# is specified here and in .gitattributes
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
@ -13,11 +15,15 @@ charset = utf-8
# Accessibility reasons. Vim: :%retab! (note also :set ts=4)
indent_style = tab
indent_size = tab
# Usable in common Braille displays? Line continuation marker and diffing
# take two. Prettier default 80. WCAG requirement 80.
max_line_length = 78
# Opinionated affecting only display, better to not set
#tab_width =
# *nix, just in case
[*.{bash,sh}]
# .gitattributes !
end_of_line = lf
# Limnoria/Supybot config files use trailing spaces for empty config files,
@ -30,6 +36,9 @@ trim_trailing_whitespace = false
indent_style = space
indent_size = 2
[*.csv]
max_line_length =
# Markdown apparently allows linebreaks by two trailing spaces, while I
# never seem to do that, maybe I should accept it
[{LICENSE,*.{markdown,md}}]
@ -64,9 +73,15 @@ indent_style = tab
indent_size = tab
# empty last columns/fields
trim_trailing_whitespace = false
max_line_length =
# RFC 678
#[*.txt]
#max_line_length = 72
# Windows line-endings for Windows
[*.{reg,bat,ahk}]
# Remember the .gitattributes !
end_of_line = crlf
# YAML requires spaces. The GitHub citation files look YAML to me.

View File

@ -19,3 +19,5 @@ repos:
hooks:
- id: editorconfig-checker
alias: ec
# I don't actually care about line lengths as more than a guideline
args: [-disable-max-line-length]

View File

@ -105,6 +105,10 @@ autocmd BufReadPost *
" Highlight all search results
set hlsearch
" Red column on the right as indication on what I wish to consider as the
" maximum length of a line.
set colorcolumn=76
" Keep text under 78 chars. Common Braille displays have 80, one reserved for
" line continuation, one for diffing?
" https://github.com/prettier/prettier/issues/7475#issuecomment-1484238440
set textwidth=78
" Marginal/line just before that. Set separately so it gets affected by
" editorconfig and modelines?
set colorcolumn=-1