vimrc: set textwidth to 78, colorcolumn -1

This commit is contained in:
Aminda Suomalainen 2023-04-04 09:16:19 +03:00
parent 8309e9254e
commit e669ab9817
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
1 changed files with 7 additions and 3 deletions

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