[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: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Fri, 30 Oct 2009 16:32:23 +0200 (Jerusalem Standard Time)

Julian Foad wrote on Fri, 30 Oct 2009 at 14:03 -0000:
> Daniel Shahaf wrote:
> > 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.

Okay. (I don't use this plugin myself.)

> > 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.

Thanks. I've already added a few followups of my own. :-)

> > 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.

*nod* I'm not sure what's best --- or what I like best --- so I'll leave
it untouched.

> 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.

Definitely possible (at least the first), but wouldn't it be easier to
just write the buffer to disk? :-)

(maybe it's just a matter of ':set autowrite'? it triggers a write
before shell commands.)

> (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?)

There is

    :help :sign


> - Julian

Received on 2009-10-30 15:32:36 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.