On 12/13/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:

To see if Vim finds your vimrc, look at the top of the output of the

        :scriptnames

command. To see _where_ it looks for a vimrc, use (on [g]vim for Windows)

        :echo $HOME
        :echo $VIM


In Vim7, Vim sets the MYVIMRC environment variable to the first
found .vimrc/_vimrc file. Similarly sets the MYGVIMRC variable to
the first found .gvimrc/_gvimrc file.

So to get the location of the vimrc used by Vim, use

   :echo $MYVIMRC
   :echo $MYGVIMRC

- Yegappan

Reply via email to