5

I just switched to using vim, and am working on my vimrc. My problem is MacVim is not loading my vimrc when it opens, I have to explicitly run :source ~/.vimrc for my settings to be applied. Any ideas what I can do?

moinudin
  • 134,091
  • 45
  • 190
  • 216
trobrock
  • 46,549
  • 11
  • 40
  • 46

1 Answers1

3

Do you perhaps have a ~/_vimrc file? Mac looks for a vimrc file in both locations, but it may stop looking if it checks for and finds a ~/_vimrc file first.

If that doesn't help, you can also workaround this by running vim -u ~/.vimrc. Although take note of this issue raised in this question.

Community
  • 1
  • 1
moinudin
  • 134,091
  • 45
  • 190
  • 216