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

-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[email protected]>

Attachment: signature.asc
Description: Digital signature

Reply via email to