diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-15 00:13:22 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-15 00:13:22 +1200 |
commit | 6e29ed7b005212e9d8f31d2be76ff76de0aa3b5f (patch) | |
tree | 76e5254b09af07506f2a96539ce8098b63f2ff3e /vim/after/ftplugin | |
parent | Adaptive 'colorcolumn' for gitcommit filetype (diff) | |
download | dotfiles-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.vim | 2 |
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() |