From 71a1bbd78d629db58c9f322d1bef64cd27ee28e7 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 29 Aug 2023 14:05:21 +0000 Subject: [PATCH] home: vim: set line length in commit messages I'm already getting the correct wrapping behaviour from vim-fugitive, but the displayed width is wrong. --- home/vim/after/ftplugin/gitcommit.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/vim/after/ftplugin/gitcommit.vim b/home/vim/after/ftplugin/gitcommit.vim index f785ff8..29d182c 100644 --- a/home/vim/after/ftplugin/gitcommit.vim +++ b/home/vim/after/ftplugin/gitcommit.vim @@ -4,3 +4,7 @@ call ftplugined#check_undo_ft() " Enable spell checking on commit messages setlocal spell let b:undo_ftplugin.='|setlocal spell<' + +" Change max length of a line to 72 for this buffer +setlocal colorcolumn=72 +let b:undo_ftplugin.='|setlocal colorcolumn<'