Add DBlame command to vim
This commit is contained in:
parent
c01fecb8b2
commit
92daf8b59c
1 changed files with 1 additions and 0 deletions
1
git.vim
1
git.vim
|
@ -172,6 +172,7 @@ function! s:git_blame(first, last)
|
||||||
endfun
|
endfun
|
||||||
|
|
||||||
command! -range Blame echom join(uniq(sort(<sid>git_blame(<line1>, <line2>))), ', ')
|
command! -range Blame echom join(uniq(sort(<sid>git_blame(<line1>, <line2>))), ', ')
|
||||||
|
command! -range DBlame !git blame % -L <line1>,<line2>
|
||||||
command! GitNext try
|
command! GitNext try
|
||||||
\| call s:gitroot() | call <sid>git_next() | call s:git_info()
|
\| call s:gitroot() | call <sid>git_next() | call s:git_info()
|
||||||
\| catch | echo 'Not a git repo!'
|
\| catch | echo 'Not a git repo!'
|
||||||
|
|
Loading…
Reference in a new issue