rkitover/vimpager — Issue #21: can't open $MYVIMRC (version 1.6)
Author: lucc
Created: 2011-11-22 06:20:28+00:00
State: open

I'm using
system: Mac OS X (10.6.8)
vim: 7.3.315 (MacVim, compiled with brew)
vimpager: 1.6
If I use vimpager to read a file or view a man page I get this error inside vim, before the contents are displayed correctly:

```
"/tmp/vimpager_82068/stdin" [readonly] 45 lines, 1555 characters
Error detected while processing command line:
E484: Can't open file $MYVIMRC
Press ENTER or type command to continue
```

I have searched the source file of vimpager but only found four occurrences of the string "MYVIMRC", all in command lines to call vim but none where the variable was set. But the variable is not described in the man page for vimpager. So do I have to put it in my environment? Because if I run `MYVIMRC=/dev/null man vimpager` all works fine. But then there is the VIMPAGER_RC environment variable already. Why would we need two?

If it is possible I suggest to set the variable to a meaningful value or remove it. If that is not possible I would like to see it documented in the man page.

Thanks for your effort
lucc