aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-11-29 19:54:49 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-11-29 23:18:57 +1300
commit59a0e5e3201c6041d3ca3da8efcb6e2b2b81fedd (patch)
tree48324405e9119a80e8f1d87b1430b7e15f824af8
parentWrap Vim gitcommit autocmd clear in :execute (diff)
downloaddotfiles-59a0e5e3201c6041d3ca3da8efcb6e2b2b81fedd.tar.gz
dotfiles-59a0e5e3201c6041d3ca3da8efcb6e2b2b81fedd.zip
Restore value of 'colorcolumn' after ft=gitcommit
-rw-r--r--vim/after/ftplugin/gitcommit.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/vim/after/ftplugin/gitcommit.vim b/vim/after/ftplugin/gitcommit.vim
index 0ba80c92..18bacfb8 100644
--- a/vim/after/ftplugin/gitcommit.vim
+++ b/vim/after/ftplugin/gitcommit.vim
@@ -16,6 +16,7 @@ if has('autocmd') && exists('+cursorcolumn')
augroup END
let b:undo_ftplugin .= '|execute ''autocmd! gitcommit'''
\ . '|augroup! gitcommit'
+ \ . '|setlocal colorcolumn<'
endif
" Stop here if the user doesn't want ftplugin mappings