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

Re: Adding vim comment string to files

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2001-09-06 20:22:33 CEST

 
> Unfortunately, it isn't possible to have it load an external file. From the
> VIM documentation (section Automatically setting options)
>
> 'No other commands than "set" are supported, for security reasons (somebody
> might create a Trojan Horse text file with modelines).'

i guess that makes sense...

how about providing a svn.vim file that people can source from their
vimrv and just set a variable to turn on all that stuff in the actual
files. it just seems like a whole lot of crud to have in every file.
there's gotta be a better way to do this.

> The lines to be added are:
>
> * vim:ts=4:sw=4:expandtab:tw=80:fo=tcroq
> * vim:isk=a-z,A-Z,48-57,_,.,-,>
> * vim:cino=>1s,e0,n0,f0,{.5s,}0,^-.5s,=.5s,t0,+1s,c3,(0,u0,\:0
>
> Which are fairly uniqe and easy to sed, if there is a need to change them.
>
> What I would like is for someone else who uses VIM to look at them, and see if
> they match Subversion coding style. (I think they do, based on my tests, but
> thought I would check with someone else).

it looks about right, but i'm at work right now so i can't really give
it the attention it deserves...

-- 
garrett rooney                     Unix was not designed to stop you from 
rooneg@electricjellyfish.net       doing stupid things, because that would  
http://electricjellyfish.net/      stop you from doing clever things.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:40 2006

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.