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