Closed playgithub closed 5 months ago
I had this problem when I ran the git-bash from Total Commander on Windows 11 via a hotkey definition in usercmd.ini
- effectively, this was the command (I could have just written the same in the command line):
"C:\Program Files\ConEmu\ConEmu64.exe" -run "C:\Program Files\Git\git-bash.exe" --no-cd --command=usr/bin/bash.exe -l -i
For whatever reason, I've been using this for a long time, but -run
is obsolete now, I guess.
I noticed that another tab with "Git bash" task works fine, so I just changed the command to use "{Git bash}"
task instead of the whole -run ...
parameter list - and it works fine. This also fixed the newlines acting like pure LF instead of CRLF.
Still an issue in ConEmu 221218. I saw this on Windows 11 today but do not seem to have the issue on Windows 10 but I need to confirm this.
This is using a cmd.exe
, also same issue in bash
, session without the connector. Does not occur in bash
in mintty
.
The connector does not seem to support cmd.exe
but no one will confirm that. @Maximus5???
Ctrl-Win-Alt-Space
Shows same issue. Resizing ConEmu window resolves it until the next vim launch.
Is this an issue only some of us are encountering? Here's my config:
λ ver
Microsoft Windows [Version 10.0.22621.1702]
I've installed Git for Windows, so that's from where vim is running:
λ where vim
C:\Users\Steve\AppData\Local\Programs\Git\usr\bin\vim.exe
λ vim --version
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Mar 13 2023 19:52:41)
Included patches: 1-1403
Compiled by <https://www.msys2.org/>
λ ls %LOCALAPPDATA%\Programs\cmder_mini|grep Version
STDIN
Version 1.3.20.151
Conemu Help shows:
Your current ConEmu version is 221218 stable
λ env|grep -i term
STDIN
TERM=xterm-256color
If you have WSL enabled, you can run "wsl vim" and to run vim from an installed linux distribution. I'm using git bash in conemu with 'alias vim="wsl vim"' and it works nicely.
This is a nice workaround. I have wsl (Ubuntu), and that will suffice for now. When I do a git commit -m it still wants to use the vim from my path.
Resizing ConEmu window resolves it until the next vim launch.
That's another nice workaround ... kind of.
Is there anything else that can resolve this without needing workarounds?
I've given up and moved to cmder inside Windows Terminal (https://medium.com/talpor/windows-terminal-cmder-%EF%B8%8F-573e6890d143) it works like a charm
same here brand new install of git and cmder
@EdmundMorris
Workaround: I noticed that CTRL-Z redraws the page and makes vim functional again
Yes, this workaround works for me. thx
Hi everybody, here is a workaround that worked for me. In cmder press Win+Alt+P, then go to Features and uncheck Inject ConEmuHK. Start vim again. Enjoy :)
I hope this is going to help :)
it works!
Working for me too, although it sometimes leaves a couple of lines of corrupt text on my console after existing vim. Easy enough to ctrl+L to redraw or ignore the lines. This is good enough until we get a proper fix. thanks @elienFR
Just a small point, the arrow keys don't work for paging with the work-around. E.g. git diff
can only be used with the spacebar for the next page
I've seen the same issue here and managed to workaround this with neovim (which seems also have some more nice features). Here's what I did:
choco install neovim
vi=nvim $*
vim=nvim $*
git config --global core.editor nvim
Thanks for the info @drew-chien. Best solution so far..
I have started using unreleased Cmder that uses Windows Terminal instead of Conemu and it works prretty well also. FWIW I am a Cmder maintainer.
https://github.com/cmderdev/cmder/actions/runs/7805213995
*_wt*
builds use windows terminal.
it is possible to use previous cmder releases with windows terminal as well, as described in this reply. I've been working this way for a year now and I don't think I will ever return to the conemu based solution.
"cmder inside Windows Terminal" is a good a solution. BTW "git-bash inside Windows Terminal" also works fine.
I found a way to solve the black screen problem that is suitable for me:
Step 1:
This can solve the black screen problem when Vim or git commit, but this triggers another fatal problem: when git commit, the upper, lower left and right arrow keys will become ABCD
Step 2:
According to the method in the picture, add "set term=xterm" to the environment, this solves the problem of different direction keys
Versions
OS: Windows 11 21H2 22000.194 ConEmu Version: 210912
Problem description
vim
incmd::Cmder
display black screen but it works blindly, e.g.:q
leads to quit