if exists('g:no_plugin_maps') || exists('g:no_git_shortcut_maps') finish endif let b:undo_ftplugin = '' if !hasmapto('GitShortcutsCommitBackward') nmap [[ GitShortcutsCommitBackward let b:undo_ftplugin .= '| nunmap [[' endif if !hasmapto('GitShortcutsCommitForward') nmap ]] GitShortcutsCommitForward let b:undo_ftplugin .= '| nunmap ]]' endif nnoremap GitShortcutsCommitBackward :call git_shortcuts#CommitBackward() nnoremap GitShortcutsCommitForward :call git_shortcuts#CommitForward()