简体   繁体   中英

vimrc file, viminfo file

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM