I've set MacVim as my default text editor, and when I double click files it opens up a new window. Is there a way to set it to open up in a new tab instead?
views:
448answers:
2
+3
Q:
MacVim set as default text editor: How to set files to open in a new tab as opposed to a new window?
+1
A:
In the Preferences (under MacVim in the menubar) you can change the selection of the radio button "Open files from applications" from "in a new window" to "in the current window" and then select "with a tab for each file" from the drop-down menu below.
Michael Dunn
2009-11-08 10:51:06
This doesn't work when using the mvim script from terminal, although the other answer by déo does.
Trevor Hartman
2010-07-13 16:22:49
That's true, but to be fair, it isn't what the questioner asked for either.
Michael Dunn
2010-07-15 10:58:43
+2
A:
You can also edit the mvim
script and look for the opts
definition. Change it to something like:
opts="--remote-tab"
or
opts="--remote-tab-silent"
or
opts="--remote-tab-wait"
Depending on your taste, of course... ;-)
déo
2009-12-19 06:08:54