aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2017-04-29 07:31:32 +0200
committerTeddy Wing2017-04-29 07:31:32 +0200
commit3950864bd41ce990278ac3a5627f785e1d6e4750 (patch)
tree37ceb682b8fc2e4d51f41c5c1547770a1f8cb6b9
parent39ede0a12240d6be3e3d394fd29313d08212da50 (diff)
downloadvim-gitcha-3950864bd41ce990278ac3a5627f785e1d6e4750.tar.bz2
ftplugin/gitcommit: Add `b:undo_ftplugin`
Allow the plugin's actions to be undone. Will be executed automatically when users change the filetype, as explained here: :h undo_ftplugin
-rw-r--r--ftplugin/gitcommit/gitcha.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/ftplugin/gitcommit/gitcha.vim b/ftplugin/gitcommit/gitcha.vim
index cdaea61..43c4f23 100644
--- a/ftplugin/gitcommit/gitcha.vim
+++ b/ftplugin/gitcommit/gitcha.vim
@@ -5,3 +5,5 @@ if !exists('g:no_plugin_maps') && !exists('g:no_gitcha_maps')
inoremap <buffer> <expr> <Plug>GitchaCompleteSHA gitcha#StartGitSHACompletion()
endif
+
+let b:undo_ftplugin = 'iunmap <buffer> <C-x><C-s>'