Quick vim svn blame snippet
Just to prove the theory that every incredibly incomprehensible piece of code you come across is probably your own, I penned a quick svn blame vim command.
vmap gl :<C-U>!svn blame <C-R>=expand("%:p") <CR> \| sed -n <C-R>=line("'<") <CR>,<C-R>=line("'>") <CR>p <CR>
Just highlight the disgusting code in question, and bask in your own shame!

Comments
Good tip! I’ve adjusted it for cvs for my $job.
Thanks for this great feature.
Why don’t tried to display it to the left of the line directly in VIM like line number ? With a map to a key that activate or desactivate the feature. I will continue my searches for this !
Cheers !
It’s much easier to get the output that’s there. It would be great to get the information on the sidebar, but I’m not sure how feasible it would be. Definitely let me know if you figure it out.
Hi,
I don’t know if you’ll find this useful, as it works better in a console vim rather than a gvim, but here you are anyway:
This will split the window, and display the blame markup in a small window on the left. If you want the blame file highlighted, defined a syntax file for ‘blame’.
A slightly better version of the above script, that preserves line-numbering, and toggles on and off when called:
map gl :call SvnBlame_blameCurrentFile()
Leave a comment...