From 58e65523a7fb7b007a1c6627def60104b8108f6f Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Mon, 6 Feb 2023 15:30:14 +0000 Subject: [PATCH] Disable margins by default --- vimrc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/vimrc b/vimrc index 8081527..5abed8d 100644 --- a/vimrc +++ b/vimrc @@ -35,7 +35,8 @@ inoremap inoremap inoremap -nnoremap :call ACPAuthorMode() +nnoremap :call ACPToggleMargins() +nnoremap :Limelight!! nnoremap :w nnoremap :setlocal spell! spelllang=en_gb nnoremap @@ -55,7 +56,7 @@ nnoremap gb :bnext " larger than the textwidth. E.g. to include a 'margin-bell' line also: " set tw=80 cc=73,81 " Clear the colorcolumn highlighting with cc=0. -set colorcolumn=73,81 " Suggestions: 73, 81, 101 +set colorcolumn=0 set textwidth=80 " Suggestions: 72, 80, 100 " All other settings. @@ -222,10 +223,8 @@ if has('wildmenu') set wildmenu endif -function! ACPAuthorMode() - execute "set colorcolumn=" . (&colorcolumn == "" ? "73,81" : "") - execute "set textwidth=" . (&textwidth == "0" ? "80" : "0") - Limelight!! +function! ACPToggleMargins() + execute "set colorcolumn=" . (&colorcolumn == "0" ? "73,81" : "0") endfunction " Customise colour schemes. Keep this near the end.