rkitover/vimpager — pull request #32 by goodell (2012-06-05 05:14:00+00:00)
Title: only source $MYVIMRC/$MYGVIMRC if using non-default rcfiles

In my `.vimrc` I was hijacking `$MYVIMRC` and sourcing a different
`.vimrc` in a different directory. This causes `vimpager` to source the
second `.vimrc` file for a second time, which elicited various
complaints from vim about redefined commands and functions.

I know clobbering MYVIMRC is probably questionable, but it doesn't make sense to me that this ever worked correctly if I wasn't clobbering it. Indeed, some quick testing seems to confirm this is double-sourcing any `.vimrc` if a `$VIMPAGER_RC` (or similar) is not set/found even if `$MYVIMRC` is not clobbered anywhere.