[Fedora-packaging] How to install vim syntax files?

Chen Lei supercyper1 at gmail.com
Sat Aug 28 11:12:58 UTC 2010


2010/8/28 Martin Gieseking <martin.gieseking at uos.de>:
> Hi,
>
> it seems, there's currently no common way how to add vim add-ons (e.g.
> syntax files) provided by several packages. Some packages place them in
> the versioned folder /usr/share/vim/vimXY, some in
> /usr/share/vim/vimfiles. The latter seems to be the better alternative
> to me.
>
> However, what's about directory ownership? Should we always add a
> dependency to vim-common (and use subpackages containing some small vim
> files), or should the package own the affected folders (multiple
> ownership like /etc/bash-completion.d)? I found several packages that either
> a) add Requires: vim-common, or
> b) add %dir %{datadir}/vim/vimfiles/syntax, or
> c) just put the syntax files somewhere below %{datadir}/vim without
> considering directory ownership, or
> d) add the vim files with %doc for manual installation in ~/.vim/syntax
>
> So what's the recommended way to add these kind of add-ons?
>
> Martin
> --
I suggest to split a vim-* subpackage like emacs addons, then this
subpackage can depend on vim-common. Also, I think those vim-*
subpackage don't need to depend on mainpackage since they work pretty
fine without mainpackage.


See http://fedoraproject.org/wiki/Packaging:Emacs

Regards,
Chen Lei


More information about the packaging mailing list