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

Re: Vim editor: automatic subversion-style indenting

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Thu, 9 Oct 2008 22:15:03 +0200 (Jerusalem Standard Time)

Peter Samuelson wrote on Thu, 9 Oct 2008 at 13:43 -0500:
>
> [Daniel Shahaf]
> > This thread might be a good time to post the Subversion-related parts of
> > my vimrc. Attached.
>
> I don't use vim, but I may be interested in shipping your vimrc bits as
> example code in Debian's subversion packages (we already ship psvn.el).
>

Thanks for your interest.

> 1) Do you think your vim code would be of general interest for this?
>

Parts. The first (and most of the fifth) sections[1] are primarily for
Windows folks. The third and sixth sections are only useful to people
working on Subversion and APR themselves (they set up the coding style,
install folding for STATUS, and run 'ctags' with some useful flags). The
second and fourth sections (':SvnRediff' and 'svn:log') are potentially
useful.

':SvnRediff' opens a buffer on 'svn diff' output and remembers the 'svn
diff' invocation, and the 'svn:log' section sets up an autocommand that,
when 'svn ci' is run (without -m or -F), splits a window on the diff being
committed.

The comparison to the 301KB psvn.el is flattering. Those 57 lines don't
even have a name and are not packaged as a standalone script (they make
some assumptions[2] about their environment). They don't attempt to be
a general-purpose Subversion package, either; they are nothing more or
less than two sections of code that I have found useful.

I can fix the packaging and standalone-ness, if there is interest; but
please don't paint those excerpts as something they aren't.

> 2) Assuming you have copyright on your file (i.e., you wrote it, and
> not "on company time"), could you declare a copyright and a license
> grant? Either by adding comments to the vimrc file, or just via
> email if you prefer.
>

I do have copyright on it. The Apache License v2 works for you?

Thanks,

Daniel

[1] 'Section' starts in a line starting with exactly two double quotes.
Open the file in Vim and you'll see...

[2] Most noticeably, I accidentally left in at least 2 calls to functions
from my vimrc that aren't included in the file. Sorry about that; I'll
fix it.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-10-09 22:15:23 CEST

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.