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