Skip to content

Commit

Permalink
add <Plug>(agit-diff-with-local)
Browse files Browse the repository at this point in the history
  • Loading branch information
wonderful-panda committed Oct 15, 2016
1 parent 33d2c0b commit f96e843
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions autoload/agit/view/filelog.vim
Expand Up @@ -7,6 +7,7 @@ function! agit#view#filelog#new(git)
command! -buffer -nargs=? -complete=customlist,agit#diff#complete_revspec AgitDiff call agit#diff(<q-args>)
if !g:agit_no_default_mappings
nmap <silent><buffer> di <Plug>(agit-diff)
nmap <silent><buffer> dl <Plug>(agit-diff-with-local)
endif
return filelog
endfunction
Expand Down
1 change: 1 addition & 0 deletions autoload/agit/view/stat.vim
Expand Up @@ -42,6 +42,7 @@ function! s:stat.setlocal()
nmap <silent><buffer> q <Plug>(agit-exit)
nmap <silent><buffer> di <Plug>(agit-diff)
nmap <silent><buffer> dl <Plug>(agit-diff-with-local)
endif
set filetype=agit_stat
endfunction
1 change: 1 addition & 0 deletions plugin/agit.vim
Expand Up @@ -44,6 +44,7 @@ nnoremap <silent> <PLug>(agit-yank-hash) :<C-u>call agit#yank_hash()<CR>
nnoremap <silent> <Plug>(agit-show-commit) :<C-u>call agit#show_commit()<CR>
nnoremap <silent> <Plug>(agit-print-commitmsg) :<C-u>call agit#print_commitmsg()<CR>
nnoremap <silent> <Plug>(agit-diff) :<C-u>AgitDiff<CR>
nnoremap <silent> <Plug>(agit-diff-with-local) :<C-u>AgitDiff <hash><CR>
nnoremap <silent> <Plug>(agit-git-checkout) :<C-u>AgitGit checkout <branch><CR>
nnoremap <silent> <Plug>(agit-git-checkout-b) :<C-u>AgitGit checkout -b \%# <hash><CR>
Expand Down

0 comments on commit f96e843

Please sign in to comment.