I'm re-learning Vim, and now I'm building my own ~/.vim/.vimrc
file. Yes, it is store under the .vim/
folder, which is created by MacOSX after I updated to Big Sur. What I want is simply this
set belloff=all
when I put this line in ~/.vimrc
it works, while in ~/.vim/.vimrc
it's not. So my questions are:
- What's the first file Vim read so it knows Oh, so Mr. .vimrc your home is at
$HOME
(or~
)? - Which file should I change so that Vim will say Ok, I should read Mr. .vimrc from
~/.vim/
?
:h vimrc
and read what is written there?~/.vim
isvimrc
not.vimrc
. You only need one dot:~/.vimrc
or~/.vim/vimrc
.