From e669ab9817e498c0ca5f746de94d36bf3d5f8b13 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Tue, 4 Apr 2023 09:16:19 +0300 Subject: [PATCH] vimrc: set textwidth to 78, colorcolumn -1 --- rc/vimrc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/rc/vimrc b/rc/vimrc index a56f1e55..d58904d8 100644 --- a/rc/vimrc +++ b/rc/vimrc @@ -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