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()