diff --git a/vimrc b/vimrc index dd96013..4b7d093 100644 --- a/vimrc +++ b/vimrc @@ -44,6 +44,7 @@ nnoremap :call ACPActodoTodo() nnoremap :NERDTreeToggle nnoremap :vsplit nnoremap :call ACPToggleSpellEnUs() +nnoremap :call ACPToggleMargins() nnoremap :call ACPAdocTodo() nnoremap :split nnoremap :call ACPToggleSpellEnGb() @@ -152,6 +153,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") + echo "tw=" . &textwidth . " & cc=" . &colorcolumn endfunction function! ACPToggleSpellEnUs()