aboutsummaryrefslogtreecommitdiff
path: root/vim/after/syntax/gitcommit.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-19 09:15:08 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-19 09:15:08 +1200
commit45f31a03c727a8b29dfe65ac27ecfbbdf8f58d15 (patch)
treede25a609059dc8fb2f89e73b002e5c82f16f8f0b /vim/after/syntax/gitcommit.vim
parentRemove line continuations from VimL indent after (diff)
downloaddotfiles-45f31a03c727a8b29dfe65ac27ecfbbdf8f58d15.tar.gz
dotfiles-45f31a03c727a8b29dfe65ac27ecfbbdf8f58d15.zip
Add compatible/version guard to syntax after files
Diffstat (limited to 'vim/after/syntax/gitcommit.vim')
-rw-r--r--vim/after/syntax/gitcommit.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/vim/after/syntax/gitcommit.vim b/vim/after/syntax/gitcommit.vim
index e47091f9..2232e499 100644
--- a/vim/after/syntax/gitcommit.vim
+++ b/vim/after/syntax/gitcommit.vim
@@ -1,2 +1,8 @@
+" Don't try to make these corrections if running 'compatible' or if the
+" runtime files are too old
+if &compatible || v:version < 700
+ finish
+endif
+
" If my commit subject is too long, highlight it as an error.
highlight link gitCommitOverflow Error