Create a gist now

Instantly share code, notes, and snippets.

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