An extremely easy way to do this is by using vim-fugitive. Just open the file in vim, select the line(s) you're interested in using V
, then enter
:Glog
Now you can use :cnext
and :cprev
to see all the revisions of the file where that line is modified. At any point, enter :Gblame
to see the sha, author, and date info.