Skip to content

Instantly share code, notes, and snippets.

@gerred
Created April 25, 2011 18:11
Show Gist options
  • Save gerred/940917 to your computer and use it in GitHub Desktop.
Save gerred/940917 to your computer and use it in GitHub Desktop.
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