Figured out that I had two different versions of MacVim which is why they opened in different windows. Removed code from my bashrc which as a side effect makes the code I am going to write not require any external dependencies