diff options
| author | Teddy Wing | 2017-04-29 07:31:32 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-04-29 07:31:32 +0200 |
| commit | 3950864bd41ce990278ac3a5627f785e1d6e4750 (patch) | |
| tree | 37ceb682b8fc2e4d51f41c5c1547770a1f8cb6b9 /ftplugin/gitcommit | |
| parent | 39ede0a12240d6be3e3d394fd29313d08212da50 (diff) | |
| download | vim-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
Diffstat (limited to 'ftplugin/gitcommit')
| -rw-r--r-- | ftplugin/gitcommit/gitcha.vim | 2 |
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>' |
