diff options
Diffstat (limited to 'vim/after/ftplugin/gitcommit.vim')
-rw-r--r-- | vim/after/ftplugin/gitcommit.vim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vim/after/ftplugin/gitcommit.vim b/vim/after/ftplugin/gitcommit.vim new file mode 100644 index 00000000..b53854be --- /dev/null +++ b/vim/after/ftplugin/gitcommit.vim @@ -0,0 +1,16 @@ +" Extra configuration for 'gitcommit' filetypes +if &compatible || v:version < 700 || exists('b:did_ftplugin_after') + finish +endif +if &filetype !=# 'gitcommit' + finish +endif +let b:did_ftplugin_after = 1 +let b:undo_ftplugin = b:undo_ftplugin + \ . '|unlet b:did_ftplugin_after' + +" Make angle brackets behave like mail quotes +setlocal comments+=n:> +setlocal formatoptions+=or +let b:undo_ftplugin = b:undo_ftplugin + \ . '|setlocal comments< formatoptions<' |