From 19bcab85fd662ea1b54c42d354730bdb1217d6cc Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Fri, 8 Apr 2022 14:25:22 +0000 Subject: [PATCH] Stop being fancy with colorcolumn --- vimrc | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/vimrc b/vimrc index bf6aab1..8bb332e 100644 --- a/vimrc +++ b/vimrc @@ -55,6 +55,7 @@ set autoread set background=dark set backspace=indent,eol,start set cmdheight=1 +set colorcolumn=73,81 set directory=$TEMP//,/tmp//,. set display+=lastline set encoding=utf-8 @@ -160,21 +161,6 @@ if has('autocmd') autocmd BufRead,BufNewFile *.xml set et sw=2 autocmd BufRead,BufNewFile *.yaml set et sw=2 autocmd BufRead,BufNewFile *.yml set et sw=2 - - " Set the colorcolumn to textwidth + 1. - function! s:SetColorColumn() - if &textwidth == 0 - setlocal colorcolumn=81 - else - setlocal colorcolumn=+1 - endif - endfunction - augroup colorcolumn - autocmd! - autocmd OptionSet textwidth call s:SetColorColumn() - autocmd BufEnter * call s:SetColorColumn() - augroup end - endif if has('folding')