commit d97ae2b925c33b8a5919f70a86d5771631cdbb9a
parent 8f5fe0e3857c495396770666feb36417ec6acd6c
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Sat, 14 Nov 2020 12:57:28 +0100
vim: move colorcolumn highlight to augroup
Former-commit-id: 129162a173b2fa27046c6b0950f15f390e6430a1
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/vim/vimrc b/vim/vimrc
@@ -522,8 +522,6 @@ if &term =~ '^screen' || $TMUX !=# ""
set ttymouse=xterm2
endif
-highlight ColorColumn ctermbg=233
-
" How to split new windows
set splitbelow splitright
@@ -895,10 +893,12 @@ if has('autocmd')
autocmd!
autocmd InsertEnter * setlocal nocursorline
autocmd InsertLeave * setlocal cursorline
+ autocmd ColorScheme * highlight ColorColumn ctermbg=233
augroup END
augroup vimrc_commands
autocmd!
autocmd BufWritePre * silent StripTrailingWhitespace
+
augroup END
endif
" }}}