Update textwidth and colorcolumn for git

Color a first column at 51 for subject with maximum 50 characters.
Color a second column at 72 characters for body content + wrap it.
This commit is contained in:
Jeremy Gardais 2022-12-01 15:34:04 +01:00
parent 4f94ced9ff
commit 9976ad1144
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 2 additions and 2 deletions

4
vimrc
View File

@ -82,8 +82,8 @@ set encoding=utf-8
set fileencoding=utf-8 set fileencoding=utf-8
" Specific to git commit (COMMIT_EDITMSG) {{{ " Specific to git commit (COMMIT_EDITMSG) {{{
autocmd Filetype gitcommit setlocal textwidth=50 autocmd Filetype gitcommit setlocal textwidth=72
autocmd Filetype gitcommit setlocal colorcolumn=51 autocmd Filetype gitcommit setlocal colorcolumn=51,72
" }}} " }}}
" Path pour la recherche de fichier avec :find, :sfind et :tabfind " Path pour la recherche de fichier avec :find, :sfind et :tabfind