Open Macvim within terminal without opening a new window

Posted on


Every time I try to edit a file, I do mvim file.txt in the terminal then a new MacVim window pops up. But if I do vim file.txt, it will not open a new window. Instead, it will initialise vim within the terminal.

Question: How can I make sure that when I do mvim file.txt, MacVim will be opened up within the terminal just like what I did using vim.

I have tried the following solution already but it doesn’t work.


$ mvim -v file.txt

does what you want.

You should alias vim to mvim -v, IMO.

Leave a Reply

Your email address will not be published. Required fields are marked *