aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/gitcommit.vim
blob: 035b835c17a2d909f7c602b15fd215fb22803fcd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
" Extra configuration for Git commit messages
if &filetype != 'gitcommit' || &compatible || v:version < 700
  finish
endif

" Make angle brackets behave like mail quotes
setlocal comments+=n:>
setlocal formatoptions+=coqr

" Add to undo script
if exists('b:undo_ftplugin')
  let b:undo_ftplugin = b:undo_ftplugin
        \ . '|setlocal comments<'
        \ . '|setlocal formatoptions<'
endif