MacVim 设置为默认文本编辑器:如何设置文件在新选项卡而不是新窗口中打开?

发布于 2024-08-10 14:46:41 字数 66 浏览 1 评论 0原文

我已将 MacVim 设置为默认文本编辑器,当我双击文件时,它会打开一个新窗口。有没有办法将其设置为在新选项卡中打开?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

謸气贵蔟 2024-08-17 14:46:41

您还可以编辑 mvim 脚本并查找 opts 定义。将其更改为:

opts="--remote-tab"

opts="--remote-tab-silent"

opts="--remote-tab-wait"

当然,取决于您的口味......;-)

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

萌酱 2024-08-17 14:46:41

在首选项(菜单栏中的 MacVim 下)中,您可以将单选按钮“从应用程序打开文件”的选择从“在新窗口中”更改为“在当前窗口中”,然后选择“每个文件都有一个选项卡”从下面的下拉菜单。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文