aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-01-06 15:24:12 +1300
committerTom Ryder <tom@sanctum.geek.nz>2019-01-06 15:24:12 +1300
commit533c224c7522950385b0ff833c37ca404b14e2ea (patch)
treea70b54f44e2113399a2acd7a95bc90db79a02214 /vim/after/ftplugin
parentClarify a comment (diff)
downloaddotfiles-533c224c7522950385b0ff833c37ca404b14e2ea.tar.gz
dotfiles-533c224c7522950385b0ff833c37ca404b14e2ea.zip
Make name of autocmd group more specific
Diffstat (limited to 'vim/after/ftplugin')
-rw-r--r--vim/after/ftplugin/gitcommit.vim8
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