diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-01-07 09:48:46 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-01-07 09:48:46 +1300 |
commit | 5d56356e22b6ac6888051ac000f4542a41bc4ae2 (patch) | |
tree | 0bcec57a939388b27acaf1ee42033d6ad6cfecde /vim/after/ftplugin/gitcommit.vim | |
parent | Merge branch 'release/v4.8.0' (diff) | |
parent | Bump VERSION (diff) | |
download | dotfiles-5d56356e22b6ac6888051ac000f4542a41bc4ae2.tar.gz dotfiles-5d56356e22b6ac6888051ac000f4542a41bc4ae2.zip |
Merge branch 'release/v4.9.0'v4.9.0
* release/v4.9.0:
Bump VERSION
Return to vi as default visual editor
Remove superfluous unmappings for mail filetype
Clarify a comment for HTML indentation
Add test to 'keywordprg' setting for Vim help
Make name of autocmd group more specific
Clarify a comment
Refactor Vim mail header field shortcuts
Explain .bashrc $- 'r' flag problem fully
Diffstat (limited to 'vim/after/ftplugin/gitcommit.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 |