Add and remove directories from vim run time, best practice/HOWTO
James McCoy
jamessan at debian.org
Sat Oct 22 14:57:31 UTC 2011
On Fri, Oct 21, 2011 at 07:15:09PM +0530, harish badrinath wrote:
> Are there any best practices or a HOWTO to add and remove directories
> from the run time path ??
>
> I would prefer the most dpkg-friendly approach.
Your package shouldn't do anything to modify 'runtimepath'. Just
register your files with vim-addon-manager and the user can decide if
they want to enable the script you packaged.
> Suppose my package has to
> (a) add the directory path /usr/share/vim-conque during package installation
> (b) remove the directory path /usr/share/vim-conque during package removal
> (c) the package and/or its parent has to ensure that /usr/share/vim-conque
> is found after upgrades, this could be the responsibility of the
> package in question,
> its "parent" package (vim) and/or a combination of both.
(d) Put a conque.yaml file in /usr/share/vim/registry/ so
vim-addon-manager knows about the plugin.
Then the user can use “vim-addons install conque” to enable the plugin.
Cheers,
--
James
GPG Key: 1024D/61326D40 2003-09-02 James McCoy <jamessan at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20111022/c3d98fc2/attachment.pgp>
More information about the pkg-vim-maintainers
mailing list