diff options
Diffstat (limited to 'bundle')
-rw-r--r-- | bundle/git-shortcuts/ftplugin/git/git_shortcuts.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bundle/git-shortcuts/ftplugin/git/git_shortcuts.vim b/bundle/git-shortcuts/ftplugin/git/git_shortcuts.vim index 1c844b7..f57db66 100644 --- a/bundle/git-shortcuts/ftplugin/git/git_shortcuts.vim +++ b/bundle/git-shortcuts/ftplugin/git/git_shortcuts.vim @@ -6,13 +6,22 @@ let b:undo_ftplugin = '' if !hasmapto('<Plug>GitShortcutsCommitBackward') nmap <buffer> [[ <Plug>GitShortcutsCommitBackward + omap <buffer> [[ <Plug>GitShortcutsCommitBackward + let b:undo_ftplugin .= '| nunmap <buffer> [[' + let b:undo_ftplugin .= '| ounmap <buffer> [[' endif if !hasmapto('<Plug>GitShortcutsCommitForward') nmap <buffer> ]] <Plug>GitShortcutsCommitForward + omap <buffer> ]] <Plug>GitShortcutsCommitForward + let b:undo_ftplugin .= '| nunmap <buffer> ]]' + let b:undo_ftplugin .= '| ounmap <buffer> ]]' endif nnoremap <buffer> <Plug>GitShortcutsCommitBackward :call git_shortcuts#CommitBackward()<CR> nnoremap <buffer> <Plug>GitShortcutsCommitForward :call git_shortcuts#CommitForward()<CR> + +onoremap <buffer> <Plug>GitShortcutsCommitBackward :call git_shortcuts#CommitBackward()<CR> +onoremap <buffer> <Plug>GitShortcutsCommitForward :call git_shortcuts#CommitForward()<CR> |