Skip to content

Commit

Permalink
home: vim: set line length in commit messages
Browse files Browse the repository at this point in the history
I'm already getting the correct wrapping behaviour from vim-fugitive,
but the displayed width is wrong.
  • Loading branch information
ambroisie committed Aug 29, 2023
1 parent 5b59a9c commit 71a1bbd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions home/vim/after/ftplugin/gitcommit.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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<'

0 comments on commit 71a1bbd

Please sign in to comment.