Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

MacVim opens from Terminal (mvim) but does not render interface from Finder

未关闭
#1,159 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
macos, vim
领域
desktop

调研方向

首先比较通过 mvim 脚本启动的 MacVim 与从 Finder 启动的 MacVim.app,并将报告中的 .vim/、.viminfo 和 .vimrc 自定义设置作为主要变量。使用用户的配置复现窗口缺失行为,然后确定是哪个自定义设置或启动上下文差异阻止编辑器窗口渲染,并验证从 Finder 启动能够正常工作,同时不删除无关设置。

由索引模型根据 Issue 内容生成。

描述

  • macOS Big Sur 11.1
  • MacVim Custom Version 8.2.2164 (169)
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Dec 19 2020 21:23:05)
macOS version
Included patches: 1-2164
Compiled by root@Mac-1608412769109.local
Huge version with MacVim GUI.

This is macvim: 8.2.2164,169 (auto_updates) installed as a cask from Homebrew.

When I launch MacVim using the mvim script from Terminal, it launches the app and renders a GUI window. Everything is as it should be.

But when launching from Finder (either Cmd-space and typing MacVim.app, or double clicking the app bundle from the Applications folder, the app runs; it creates an icon in the dock, it presents a menu, but it doesn't render a window for the editor. Cmd-O opens a dialog to select a file to open, but opening a file does not render an editor window for the file. The Window menu does not list any open app windows. It's running and responding appropriately, but not rendering a window when launched from Finder.

I've seen this behavior in several macOS releases now over the years. It's sporadic. When the issue occurs, it's frustrating and I move on, but at some point I switch back to the MacVim task and open a new window, and it just works as if there was never an issue.

As an experiment I backed up and removed my existing .vim/, .viminfo and .vimrc which are customized. Afterward, MacVim launched correctly (rendered windows) from Finder. I'll review settings but it's not clear to me why a customization would cause failures running from finder vs. running from start script in Terminal.

主要语言
Vim Script
星标
7.9k
派生
691
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

macvim-dev/macvim 的其他 Issue

查看 macvim-dev/macvim 的全部 Issue

相似的 Issue

更多 Desktop Dev Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。