Skip to content

Instantly share code, notes, and snippets.

@statianzo
Last active August 14, 2017 22:07
Embed
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 . ":%'"
endfunction
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