diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-01-06 15:24:12 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-01-06 15:24:12 +1300 |
commit | 533c224c7522950385b0ff833c37ca404b14e2ea (patch) | |
tree | a70b54f44e2113399a2acd7a95bc90db79a02214 /vim | |
parent | Clarify a comment (diff) | |
download | dotfiles-533c224c7522950385b0ff833c37ca404b14e2ea.tar.gz dotfiles-533c224c7522950385b0ff833c37ca404b14e2ea.zip |
Make name of autocmd group more specific
Diffstat (limited to 'vim')
-rw-r--r-- | vim/after/ftplugin/gitcommit.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vim/after/ftplugin/gitcommit.vim b/vim/after/ftplugin/gitcommit.vim index 618b9324..465c0e81 100644 --- a/vim/after/ftplugin/gitcommit.vim +++ b/vim/after/ftplugin/gitcommit.vim @@ -5,12 +5,12 @@ let b:undo_ftplugin .= '|setlocal comments< formatoptions<' " Choose the color column depending on non-comment line count if has('autocmd') && exists('+cursorcolumn') - augroup gitcommit + augroup gitcommit_cursorcolumn autocmd CursorMoved,CursorMovedI <buffer> - \ let &l:colorcolumn = gitcommit#CursorColumn() + \ let &l:colorcolumn = gitcommit_cursorcolumn#CursorColumn() augroup END - let b:undo_ftplugin .= '|execute ''autocmd! gitcommit''' - \ . '|augroup! gitcommit' + let b:undo_ftplugin .= '|execute ''autocmd! gitcommit_cursorcolumn''' + \ . '|augroup! gitcommit_cursorcolumn' \ . '|setlocal colorcolumn<' endif |