vim script for a debian sources.list

Pierre Habouzit pierre.habouzit at m4x.org
Tue Mar 28 08:41:03 UTC 2006


Le Mar 28 Mars 2006 10:12, Bram Moolenaar a écrit :
> Matthijs -
>
> > I've written a script that highlights the sources.list in Debian. I
> > would like it if it could be included into the vim 7 release. The
> > files only exists in two places:
> > /etc/apt/sources.list and
> > /etc/apt/sources.list.d/*
> >
> > The script is attached on this mail.
> >
> > Thanks for considering to include this script.
>
> Yes, I can include this.  But first a few remarks.
>
> The filetype is "debsources", therefore all the items in the syntax
> file should start with that, not "sources".  To keep it consistent.
>
> The use of HiLink for backwards compatibility with Vim 5.x isn't all
> that relevant now.  You can use "hi def link" to keep it simple.  I
> have done that for the C syntax file as well.
>
> > " deb-src is a keyword
> > setlocal iskeyword+=-
>
> It appears you hardly use the '-' in a keyword though.  You could
> also use a match to avoid changing 'iskeyword' from what a user
> expects.

yes, in the keywords I suppose there is URL's, and '-' is a valid 
character in domain names.

> Aren't there ANY other files in the /etc/apt/sources.list.d/
> directory?
not that I can think of.
-- 
·O·  Pierre Habouzit
··O                                                madcoder at debian.org
OOO                                                http://www.madism.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20060328/89aa9903/attachment.pgp


More information about the pkg-vim-maintainers mailing list