开发者

MacVim set as default text editor: How to set files to open in a new tab as opposed to a new window?

开发者 https://www.devze.com 2022-12-11 07:45 出处:网络
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 inst开发者_运维技巧ead?You can also edit the mvim sc

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 inst开发者_运维技巧ead?


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... ;-)


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消