From 3950864bd41ce990278ac3a5627f785e1d6e4750 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 29 Apr 2017 07:31:32 +0200 Subject: 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 --- ftplugin/gitcommit/gitcha.vim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ftplugin/gitcommit/gitcha.vim') 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 GitchaCompleteSHA gitcha#StartGitSHACompletion() endif + +let b:undo_ftplugin = 'iunmap ' -- cgit v1.2.3