aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/gitcommit.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-30 01:00:26 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-30 01:00:26 +1200
commit85279d055ad6131eafadbecd2108f0042920b698 (patch)
tree0bc85ec00d571c03dc5438381ce278672060e670 /vim/after/ftplugin/gitcommit.vim
parentd18886688821e5d67c3f698cebd1f31da1c253fc (diff)
downloaddotfiles-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.vim9
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:>