[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Seeing Blame/Annotate in the margin in Vim

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Fri, 30 Oct 2009 14:03:57 +0000

Daniel Shahaf wrote:
> Julian Foad wrote on Thu, 29 Oct 2009 at 12:16 +0100:
> > I committed this script as contrib/client-side/vim/vim-blame.vimrc.
> >
> > I added another Vim script, to display the log message of the revision
> > number under the cursor, at the same time, as
> > contrib/client-side/vim/vim-show-log-msg.vimrc.
> >
>
> Haven't tested, but what's the :NoSpaceHi command? I don't have it, is
> it from your vimrc or another plugin?

Oh, sorry. It turns off highlighting of whitespace at end of line. It's
part of the SpaceHi(?) script I got from the olf Vim Tips web site and
pasted into my .vimrc.

I'll remove it.

> Also:
>
> - This svnLog command needs cursor on a revision number.
> + echoerr or equivalent

Ah yes, executing an invalid command was a terrible way to indicate "no
rev num found". Rather than an error message, I think I'll just make it
echo an informative message.

Committed r40310 with the above.

> Also:
>
> should the maps use <Leader>?

No idea. I have just read the help on it, but don't have enough context
to decide whether I should use it.

Feel free to edit the script if you have the inclination. Thanks for the
feedback.

A more difficult but really useful enhancement: Annotate the current
(not saved to disk) contents of the buffer, and/or automatically adjust
to account for inserted/deleted lines after the "blame" window is first
populated. (Does Vim have a way of actually attaching annotations to
lines in the buffer, a bit like the "fold" markers, rather than just
displaying a separate buffer as I do currently?)

- Julian

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2413003
Received on 2009-10-30 15:04:19 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.