From e1b5c21c6be56898616505c94973fb3fb05e90d5 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Fri, 12 May 2023 09:01:52 +0100 Subject: [PATCH] Rotate through widths --- vimrc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/vimrc b/vimrc index 6f3d00b..dd96013 100644 --- a/vimrc +++ b/vimrc @@ -44,7 +44,6 @@ nnoremap :call ACPActodoTodo() nnoremap :NERDTreeToggle nnoremap :vsplit nnoremap :call ACPToggleSpellEnUs() -nnoremap :call ACPToggleWideMargins() nnoremap :call ACPAdocTodo() nnoremap :split nnoremap :call ACPToggleSpellEnGb() @@ -151,13 +150,8 @@ if has('eval') colorscheme tempus_night function! ACPToggleMargins() - execute "set colorcolumn=" . (&colorcolumn == "0" ? "73,81" : "0") - execute "set textwidth=" . (&textwidth == "0" ? "80" : "0") - endfunction - - function! ACPToggleWideMargins() - execute "set colorcolumn=" . (&colorcolumn == "0" ? "121" : "0") - execute "set textwidth=" . (&textwidth == "0" ? "120" : "0") + execute "set colorcolumn=" . (&colorcolumn == "0" ? "73,81" : (&colorcolumn == "73,81" ? "101" : "0")) + execute "set textwidth=" . (&colorcolumn == "101" ? "100" : "80") endfunction function! ACPToggleSpellEnUs()