Skip to content

Instantly share code, notes, and snippets.

Last active August 14, 2017 22:07
What would you like to do?
View the history of selected lines in git
function! GitLineHistory() range
exec ":vs | te git log -L '" . a:firstline . "," . a:lastline . ":%'"
command! -range GitLineHistory <line1>,<line2>call GitLineHistory()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment