You can pass a custom location for the ~/.vimrc file; :help startup contains all the details. For example, you can pass the file location via -u or define the command :source file in the VIMINIT environment VIMINIT .
Once you run your own vimrc file, loading plugins is determined by the 'runtimepath' option. Therefore, if you want to use a non-default location (not ~/.vim / ~/vimfiles ), simply :set runtimepath=... to it.
source share