From 8aabc6d93edbf87a5786268ecf47752d8dd89c65 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Tue, 23 May 2023 09:37:36 +0100 Subject: [PATCH] Default to tw=0 --- vimrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vimrc b/vimrc index a4447ae..2daaa83 100644 --- a/vimrc +++ b/vimrc @@ -79,7 +79,7 @@ map 3 " set tw=80 cc=73,81 " Clear the colorcolumn highlighting with cc=0. set colorcolumn=0 -set textwidth=80 " Suggestions: 72, 80, 100 +set textwidth=0 " Suggestions: 72, 80, 100 " All other settings. set autoindent @@ -158,7 +158,7 @@ if has('eval') function! ACPToggleMargins() execute "set colorcolumn=" . (&colorcolumn == "0" ? "73,81" : (&colorcolumn == "73,81" ? "101" : "0")) - execute "set textwidth=" . (&colorcolumn == "101" ? "100" : "80") + execute "set textwidth=" . (&colorcolumn == "73,81" ? "80" : (&colorcolumn == "101" ? "100" : "0")) echo "tw=" . &textwidth . " & cc=" . &colorcolumn endfunction