~/.vimrc is loaded by default when vim starts. How to specify to load .vimrc elsewhere?
PHPz2017-05-16 16:43:29
To load the Vim configuration in the specified directory, this is actually what I did (in the zsh initialization script):
path=(~/lily/bin $path)
export SHELL=/bin/zsh
export MYVIMRC=$HOME/lily/.vim/vimrc
export VIMINIT="let &rtp='$HOME/lily/.vim,' . &rtp
so $MYVIMRC"
export VIMTMP=$HOME/lily/tmpfs