Add default mappings.

This commit is contained in:
Andy Stewart
2013-04-17 11:23:11 +02:00
parent bcef63b7d5
commit 935184bd18
2 changed files with 16 additions and 6 deletions

View File

@@ -524,6 +524,14 @@ function! GitGutterGetHunks()
return s:is_active() ? s:hunks : []
endfunction
nnoremap <silent> <Plug>GitGutterNextHunk :<C-U>execute v:count1 . "GitGutterNextHunk"<CR>
nnoremap <silent> <Plug>GitGutterPrevHunk :<C-U>execute v:count1 . "GitGutterPrevHunk"<CR>
if !hasmapto('<Plug>GitGutterNextHunk') && maparg(']h', 'n') ==# ''
nmap ]h <Plug>GitGutterNextHunk
nmap [h <Plug>GitGutterPrevHunk
endif
augroup gitgutter
autocmd!
if g:gitgutter_eager