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

Re: what is 'outline mode'?

From: Scott Lamb <slamb_at_slamb.org>
Date: 2002-10-31 22:51:31 CET

Kevin Pilch-Bisson wrote:

>The last I proposed it, it was shot down, because the settings would have to
>be in every source file, since vim won't load another file from a modeline
>(for security reasons). The concern was that if the coding style changed, it
>would require a change to every source file in the repos.
>
An alternative might be to suggest .vimrc settings that apply only to
the Subversion directory. I have something like this:

fun GnuStyle()
    setlocal cinoptions={.5s,:.5s,+.5s,t0,g0,^-2,e-2,n-2,p2s,(0,=.5s
    setlocal formatoptions=croql cindent sw=4 ts=8 expandtab
endfun
autocmd BufRead,BufNewFile */subversion/*.[ch] call GnuStyle()

the GnuStyle function stolen from <http://www.zellner.org/vim/vimrc>.

That's not as good for special cases like the outline file. There, I
think embedding the modelines would be best.

Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 31 22:52:38 2002

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.