diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-30 01:00:26 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-30 01:00:26 +1200 |
commit | 85279d055ad6131eafadbecd2108f0042920b698 (patch) | |
tree | 0bc85ec00d571c03dc5438381ce278672060e670 /vim/after/ftplugin/gitcommit.vim | |
parent | Join some b:undo_ftplugin addenda (diff) | |
download | dotfiles-85279d055ad6131eafadbecd2108f0042920b698.tar.gz dotfiles-85279d055ad6131eafadbecd2108f0042920b698.zip |
Conform all after/ftplugin files
Diffstat (limited to 'vim/after/ftplugin/gitcommit.vim')
-rw-r--r-- | vim/after/ftplugin/gitcommit.vim | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/vim/after/ftplugin/gitcommit.vim b/vim/after/ftplugin/gitcommit.vim index d64c7f6e..b53854be 100644 --- a/vim/after/ftplugin/gitcommit.vim +++ b/vim/after/ftplugin/gitcommit.vim @@ -1,10 +1,13 @@ " Extra configuration for 'gitcommit' filetypes -if &compatible || v:version < 700 || exists('b:did_ftplugin_gitcommit') +if &compatible || v:version < 700 || exists('b:did_ftplugin_after') finish endif -let b:did_ftplugin_gitcommit = 1 +if &filetype !=# 'gitcommit' + finish +endif +let b:did_ftplugin_after = 1 let b:undo_ftplugin = b:undo_ftplugin - \ . '|unlet b:did_ftplugin_gitcommit' + \ . '|unlet b:did_ftplugin_after' " Make angle brackets behave like mail quotes setlocal comments+=n:> |