MacVim 在现有窗口中打开文件 [英] MacVim Open File In Existing Window

查看:16
本文介绍了MacVim 在现有窗口中打开文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法设置 MacVim 在正在运行的 MacVim 实例的当前窗口中打开一个新文件?我目前设置了 MacVim 首选项在当前窗口的新选项卡中打开新文件",但理想情况下,我只想以:e new_file"的工作方式打开新文件,而不使用选项卡.

Is there a way to set up MacVim to open a new file in the current window in a running MacVim instance? I currently have the MacVim preference "Open new files in a new tab in the current window" set, but ideally I'd just like to open new files the way ":e new_file" works, without the tabs.

我的主要动机是我目前在我的工作流程中使用 NERDTree 和 Bufexplorer,根本不需要选项卡.我也在使用 PeepOpen,它非常棒,只是它总是根据 MacVim 的偏好打开文件,所以我能做的最好的就是让它在当前 MacVim 窗口中打开一个新选项卡.

My main motivation is that I currently use NERDTree and Bufexplorer for my workflow and don't need the tabs at all. I'm also using PeepOpen, which is awesome except it always opens files based on MacVim's preferences, so the best I can do is get it to open in the current MacVim window with a new tab.

推荐答案

  1. 更新到 MacVim 7.3
  2. 进入一般偏好设置
  3. 在从应用程序打开文件:"下选择在当前窗口中"
  4. 在此选项下方的下拉菜单中选择并设置参数列表"

这篇关于MacVim 在现有窗口中打开文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆