[pacman-dev] FS7228: Update {PKGBUILD,install}.proto

Dan McGee dpmcgee at gmail.com
Mon Jul 9 20:43:44 EDT 2007


On 7/9/07, Tobias Kieslich <tobias at justdreams.de> wrote:
> On Tue, 10 Jul 2007, Alessio 'mOLOk' Bolognino wrote:
>
> >
> > I agree, just add:
> > autocmd BufReadPost *PKGBUILD*  set filetype=sh
> > autocmd BufReadPost *.install  set filetype=sh
> Shouldn't be necessary anymore for several versions of vim now. It is taken
> care of by the filetype.patch and the latest version takes care by a sed
> command. So actually people have problems with it?

First off, this is the mode line that was put in:
# vim:set ts=2 sw=2 et:

Nowhere in there does it do set syntax=sh or anything like that. It
only sets tabs to 2 spaces expanded. I personally use the PKGBUILD
highlighting that is in the contrib/ directory in the pacman repo**,
so I wouldn't want to force a certain syntax on anyone, but using two
spaces in PKGBUILD files seems pretty standard across Arch PKGBUILDs.
It's not like this change affects existing PKGBUILDs anyway- only
those that bother to start with the proto files, and even then they
are easily editable.

** http://projects.archlinux.org/git/?p=pacman.git;a=blob_plain;f=contrib/PKGBUILD.vim;h=86862e2eeb2dca2b6c6610ae0babe28a0792bc16

-Dan




More information about the pacman-dev mailing list