Bug#499563: Please warn when using "vim-addons install" as root
jamessan at debian.org
Thu Dec 17 13:21:33 UTC 2009
On Fri, Sep 19, 2008 at 09:50:32PM +0100, Chris Lamb wrote:
> I would find it extremely useful if "vim-addons install" displayed a warning
> when run as root.
> My brain must think "Oh, I'm installing something, so I therefore require
> root" and my fingers respond by prefixing with sudo, resulting in dirs in
> ~/.vim that are owned by root, etc.
It's normal to run vim-addons as root though, in the case that the addon
is being installed globally. I guess warning if vim-addons is being run
as root or SUDO_COMMAND is in the environment and the --system-wide
directory isn't set could work.
I've also added the target directory to the installation message.
Info: installing removed addon 'cvsmenu' to /home/jamessan/.vim
GPG Key: 1024D/61326D40 2003-09-02 James Vega <jamessan at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the pkg-vim-maintainers