Default to tw=0

This commit is contained in:
Anthony Rose 2023-05-23 09:37:36 +01:00
parent c7b36e1e5d
commit 8aabc6d93e

4
vimrc
View file

@ -79,7 +79,7 @@ map <ScrollWheelUp> 3<C-Y>
" set tw=80 cc=73,81 " set tw=80 cc=73,81
" Clear the colorcolumn highlighting with cc=0. " Clear the colorcolumn highlighting with cc=0.
set colorcolumn=0 set colorcolumn=0
set textwidth=80 " Suggestions: 72, 80, 100 set textwidth=0 " Suggestions: 72, 80, 100
" All other settings. " All other settings.
set autoindent set autoindent
@ -158,7 +158,7 @@ if has('eval')
function! ACPToggleMargins() function! ACPToggleMargins()
execute "set colorcolumn=" . (&colorcolumn == "0" ? "73,81" : (&colorcolumn == "73,81" ? "101" : "0")) 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 echo "tw=" . &textwidth . " & cc=" . &colorcolumn
endfunction endfunction