Add DBlame command to vim

This commit is contained in:
Talia 2019-05-21 08:43:46 +02:00
parent c01fecb8b2
commit 92daf8b59c

View file

@ -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!'