Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
function Blame()
let g:old_ft=&ft
let g:old_fname=expand('%')
exec "0r!git blame " . g:old_fname
exec "set ft=" . g:old_ft
normal! zt
command! -nargs=0 Blame call Blame()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment