MacOS – Where is the file .vimrc in macOS? (Downloaded Macvim through Homebrew)

homebrewmacmacosmacvim

I have Yosemite 10.10.3 and I recently downloaded macvim using homebrew. I find a vimrc file under the directory:

/usr/share/vim

However, after putting some modification like setting the background theme to dark, nothing changed when I opened macvim. Am I doing something wrong? Is it the wrong vimrc file? Does it mean the vimrc file is in a different directory if it was downloaded from homebrew?

Best Answer

If you use vim before the installation, the file .vimrc should be on your $HOME directory (/Users/your-username/.vimrc). Macvim will use that file if exists.