Sudo notes

From raju

source my ~/.vimrc when using sudo

Use "sudo -E vim" instead of sudo vim to source the user's .vimrc instead of root's .vimrc . Here is the excerpt from "man sudo"

     -E, --preserve-env
                 Indicates to the security policy that the user wishes to pre‐
                 serve their existing environment variables.  The security
                 policy may return an error if the user does not have permis‐
                 sion to preserve the environment.