Add and remove directories from vim run time, best practice/HOWTO

harish badrinath harishbadrinath at gmail.com
Fri Oct 21 13:45:09 UTC 2011


Hello,

Fristly, a similar mail was sent to another thread on this mailing list.
This post is a little verbose than the previous one and i hope this
does not come off as spamming this mailing list (that is not my intent
either).

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.

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.

echo [1] >> /etc/vim/vimrc, has no effect,

I tried creating a
(a) after directory in /usr/share/vim/vimfiles and added a vimrc
file,whose contents were [1].
It did not get "sourced".
(b) The same with creating file /var/lib/vim/addons/vimrc, which contained [1].
It had no effect.
(c) Creating a directory /var/lib/vim/addons/after and a vimrc inside
the directory,
which contained [1] had no effect.
(d) Creating a file /var/lib/vim/addons/after and then appending [1]
to the file, had
no effect.

The one thing that has effect is appending [1] to vimcurrrent/debian.vim.
Does vim package take care of "local" changes to debian.vim, is adding
content to this file the recommended approach ??


[1] : "set runtimepath+=/usr/share/vim-conque"

Thanks
Harish



More information about the pkg-vim-maintainers mailing list