0

I have a little bit convoluted question about location of vimrc file. I am using gvim/vim on windows. I tried to find the location of vimrc file. ":version" showed following data: user: $HOME/_vimrc system: $VIM/vimrc $Home: c:\users\xyz $VIM: c:\program files(x86)\vim

I tried to search for "$HOME/_vimrc". I could not find it. So, I did :e $MYVIMRC and system "vimrc" poped up. Now I am wondering how come vim is taking "vimrc" from system folder and why there is no user "vimrc" file.

However, viminfo file is getting updated in the user folder. "$HOME/_viminfo"

Thanks

1 Answer 1

3

The user .vimrc (or _vimrc, in your case) is not created by default in the $HOME directory. It is used as an override for the system vimrc configuration.

If you create that file, you can override the system vimrc profile.

1
  • u r rite. This makes sense. viminfo needs to be separate for every user. So, it gets created separately for every user. However, same vimrc is used as long as user does not want to create his own. Sep 19, 2011 at 18:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.