macvim-dev / macvim-dev/macvim
Bad interaction between guioptions=! and TerminalOpen
未关闭
还没有人认领这个 Issue。
- 主要语言
- Vim Script
- 星标
- 7.9k
- 派生
- 691
- PR 合并指标
- 30 天内没有已合并 PR
描述
When external commands are executed in a terminal window and a TerminalOpen autocommand is defined, the command may affect the current window.
To Reproduce
- Run
mvim -N -i NONE -u vimrcwherevimrchas the following content:
set number
autocmd TerminalOpen * set nonumber
set guioptions=!
- Type
:!ls(or any other:!command) - You should see the line numbers have disappeared from the current window.
I am expecting that the external command is executed in a different window, hence options set in the terminal window shouldn't affect the current window, as is the case if you remove ! from guioptions.
- Vim 8.1.950
- OS: macOS 10.14
- Terminal: GUI
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用提供的 vimrc 和 :!ls 重现该问题,然后跟踪 guioptions=! 如何创建或使用终端窗口,以及 TerminalOpen autocommand 如何应用。完成的标准是 autocommand 只更改终端窗口,同时保持当前窗口的行号启用;验证 guioptions=! 和不带 ! 的对照情况。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- vim
- 领域
- desktop-dev
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100