nix-config/home/vim/after/ftplugin/gitcommit.vim
Bruno BELANYI 71a1bbd78d
Some checks failed
ci/woodpecker/push/check Pipeline failed
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.
2023-08-29 14:06:19 +00:00

11 lines
314 B
VimL

" Create the `b:undo_ftplugin` variable if it doesn't exist
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<'