-
Notifications
You must be signed in to change notification settings - Fork 8.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vi in Windows Terminal does not properly insert #12074
Comments
@theking2 Are you using vim in WSL, or vim.exe? If you're in WSL, which distro, and what's IIRC I saw this once before the break in WSL vim myself, but never had the chance to file formally. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
I have the same problem with vi (not vim as the question states) editor on Unix machine. In my case using Windows Terminal/CMD/ssh to connect to the unix machine with TERM=xterm |
My situation exactly: connecting to Linux janus 5.16.0-arch1-1 |
On same Win 11 host (with default SSH client) the issue is not observed when using Alacritty. The first line after inserting foo: Remote
|
Thanks, the issue does not present on many other terminals (putty, etc), but the question is specific for using windows terminal, why is this closed? |
i can reproduce this with windows terminal versions:
this with cygwin running in wt, as well as several wsl2 distros in wt. reproduced in vi, either a vi.exe running in a cygwin tab, vi on wsl, or vi via cygwin ssh or wsl ssh to real linux machines. when enabling debug mode in terminal 1.11.3471.0 however it just crashes (not just the new tab but all tabs). it does work in preview so i can get debug tap output from that. pasting a decent amount of lines is vi (haven't found upper or lower limits nor if linelight has any influence), but around 100 lines mostly get's at least a few lines which don't match the input. doing a whole bunch of lines (lets say 2500) almost always puts me in some kind of mode where vi seems to only get command characters no matter what i type. only way out is killin the process via another session. being that the debug output is quite big, and seems to include quite a few control characters, i wonder what the best way is to capture it and get it to you. (i thought i also mentioned this in a few other issues here but can't for the life of me find them)0 |
Windows Terminal version
1.11.3471.0
Windows build number
22000.376
Other Software
vi 1:070224-5
Steps to reproduce
in vi switch to insert mode ('i')
type text
esc
Expected Behavior
Existing text moves right new text is inserted.
Actual Behavior
Existing text is overwritten on screen but not on file

The text was updated successfully, but these errors were encountered: