From a5e5bf791890bfb4332287cfcd5a9017b8d818bc Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Mon, 6 Feb 2023 15:13:23 +0000 Subject: [PATCH] Create an ACPAuthorMode function --- vimrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index 4021e4b..dfddd88 100644 --- a/vimrc +++ b/vimrc @@ -35,7 +35,7 @@ inoremap inoremap inoremap -nnoremap :Limelight!!:set colorcolumn=0 +nnoremap :call ACPAuthorMode() nnoremap :w nnoremap :setlocal spell! spelllang=en_gb nnoremap @@ -221,6 +221,12 @@ if has('wildmenu') set wildmenu endif +function! ACPAuthorMode() + execute "set colorcolumn=" . (&colorcolumn == "" ? "73,81" : "") + execute "set textwidth=" . (&textwidth == "0" ? "80" : "0") + Limelight!! +endfunction + " Customise colour schemes. Keep this near the end. if &background ==# 'light' highlight SpecialKey ctermfg=lightgray ctermbg=NONE