microsoft / microsoft/terminal

Terminal weirdness after using vim 9.1

Open
#17,186 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Output Issue-Bug Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Windows Terminal version

1.20.10822.0

### Windows build number

22631.3447

### Other Software

vim 9.1 with cmd.exe

### Steps to reproduce

Launch vim
Exit vim

### Expected Behavior

Terminal behaves normally

### Actual Behavior

After I exit vim, my cursor gets positioned 3 lines before the last line. Also, if I ever try to use cmd tab completion or backspace etc, my cursor moves up 3 lines above where I was typing, so I am now typing against some random text while my real command is 3 lines below. I have another machine with vim 9.0 installed and it does not repro there.

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 with Windows Terminal 1.20.10822.0, Windows build 22631.3447, Vim 9.1, and cmd.exe, then compare the behavior with Vim 9.0 on the other machine. Investigate cursor positioning and command-line editing after exiting Vim; done means cmd completion, backspace, and typing remain on the active line.

Written by the indexing model from the issue text.

Assessment

Tech stack
vim
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.