I'm working on a centos7 machine. In my home directory i have my .vimrc file
If i had a .vimrc file in the directory aswell, what one would Vim use and why?
Without any special configurations, Vim
assumes that there is only a simple .vimrc
file under ~/.vimrc
.
Vim
is not going to search for another .virmc
, in any other directory, unless you specifically instruct it to load another .vimrc
from the ~/.vimrc
file
Vim will use the ~/.vimrc
by default. If you wish to specify another initialization script, just do:
vim -u <PATH TO FILE>
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.