aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-15 00:13:22 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-15 00:13:22 +1200
commit6e29ed7b005212e9d8f31d2be76ff76de0aa3b5f (patch)
tree76e5254b09af07506f2a96539ce8098b63f2ff3e /vim/after/ftplugin
parent52a738b89278e15a4d22418c68e4a142d849bca3 (diff)
downloaddotfiles-6e29ed7b005212e9d8f31d2be76ff76de0aa3b5f.tar.gz
dotfiles-6e29ed7b005212e9d8f31d2be76ff76de0aa3b5f.zip
Check for +autocmd before gitcommit ftplugin hooks
Diffstat (limited to 'vim/after/ftplugin')
-rw-r--r--vim/after/ftplugin/gitcommit.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/after/ftplugin/gitcommit.vim b/vim/after/ftplugin/gitcommit.vim
index d390fa3c..d4bfd369 100644
--- a/vim/after/ftplugin/gitcommit.vim
+++ b/vim/after/ftplugin/gitcommit.vim
@@ -9,7 +9,7 @@ setlocal formatoptions+=coqr
let b:undo_ftplugin .= '|setlocal comments< formatoptions<'
" Choose the color column depending on non-comment line count
-if exists('+cursorcolumn')
+if has('autocmd') && exists('+cursorcolumn')
augroup gitcommit
autocmd CursorMoved,CursorMovedI <buffer>
\ let &l:colorcolumn = gitcommit#CursorColumn()