macvim-dev / macvim-dev/macvim

Terminal mode keymap does not work if terminal is producing lots of output

Open
#735 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vim Script
Stars
7.9k
Forks
691
PR merge metrics
No merged PRs in 30d

Description

Steps to reproduce

  • Use the following vimrc:
set nocompatible
tnoremap <C-w>t <C-w>:tabnew<CR>
  • :terminal seq 1 10000000
  • Type <C-w>t

Expected behavior: A new tab is opened
Actual behavior: Doesn't work most of the time


It only happens if there's :terminal window producing lots of output.
Only MacVim GUI mode has this issue.


  • MacVim version: snapshot-151
  • macOS version: 10.13.6

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in MacVim GUI mode with the provided vimrc, then run :terminal seq 1 10000000 and test the mapped t input while output is active. Compare the expected new tab with the actual behavior and verify that the fix works under heavy terminal output.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, vim
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.