Quick vim svn blame snippet

written about about 1 month ago |
3 comments

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

said about about 1 month ago
Posted by author

Good tip! I’ve adjusted it for cvs for my $job.

said about 25 days ago
Posted by author

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 !

said about 25 days ago
Posted by author

Why don’t tried to display it to the left of the line directly in VIM like line number?

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.

Leave a comment...

formatting help...