From dc76a341a0c53f899bbc1fb1a55ec7bb3c3a185e Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Mon, 28 Mar 2022 23:42:22 +0200 Subject: [PATCH] vim:ftplugin: Adjust to new colorcolumn settings Since a98457e66b30 ("vim:autocmd: Adjust colorcolumn with &textwidth") or correctly sine fc0969abbaf4 ("vim: Drop textwidth autocmd for native way") it is not necessary to add the `textwidth` manually to `colorcolumn`. The colorcolumns are now also placed *behind* textwidth. --- .config/vim/ftplugin/gitcommit.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/vim/ftplugin/gitcommit.vim b/.config/vim/ftplugin/gitcommit.vim index 9ec8cae..05b7697 100644 --- a/.config/vim/ftplugin/gitcommit.vim +++ b/.config/vim/ftplugin/gitcommit.vim @@ -1,5 +1,5 @@ " Shorter lines. Subject should be max 50 and body max 72 -setlocal colorcolumn=50,72 +setlocal colorcolumn+=51 setlocal textwidth=72 " Spell checking always enabled setlocal spell spelllang=en