diff options
-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() |