From a98457e66b3084e0c605a2647970b6213c08e06d Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Wed, 16 Feb 2022 00:54:19 +0100 Subject: [PATCH] vim:autocmd: Adjust colorcolumn with &textwidth --- .config/vim/vimrc.d/80-autocommands.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/vim/vimrc.d/80-autocommands.vim b/.config/vim/vimrc.d/80-autocommands.vim index 83618ec..72a80bf 100644 --- a/.config/vim/vimrc.d/80-autocommands.vim +++ b/.config/vim/vimrc.d/80-autocommands.vim @@ -56,3 +56,6 @@ endif " Custom bindings when debugging autocmd SourcePost termdebug.vim tnoremap + +" Adjust the colorcolumn together with &textwidth +autocmd OptionSet textwidth let &colorcolumn=&textwidth