-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Strange Vim behaviour after Git for Windows upgrade #628
Comments
Parts of this could be fixed by this git-for-windows/git#364 |
When I issue vim --help in the console the output is briefly displayed and then immediately suppressed. Seems to be related. |
Can you guys try https://github.com/Stanzilla/cmder/releases/tag/1.2.6 please, it has updated Git and ConEmu versions which both claim to have vim fixes. |
@Stanzilla After a little fiddling around (it seems the newer vim loads files from Unfortunately the situation has not improved: the same configuration works fine with the vim included in msysGit 1.9.5, but fails on Git for Windows' vim. Curiously, I tried running vim from git-bash.exe (included in vendor\git-for-windows) which worked nicely: Could this mean that the problem lies somewhere within ConEmu/Cmder? |
Ah yes, it most certainly does. I never updated! Vim works perfectly fine (at least for me). When ConEmuHk.dll is not loaded. You can unload this by ensuring that it is unchecked under Settings > Features |
Nice investigation. Maybe @Maximus5 can chime in on this. |
Vim in git-for-windows v2.x do not post any ANSI sequences to WinApi (and ConEmu therefore). All ANSI codes are processed by msys2 kernel (same as cygwin's one) and all bugs, I believe, must be addressed to their maintainers. |
Another of the weird behavior (in PowerShell cmder) is after vim exits, it screws up the display of older entries and puts the input for new command at the top of terminal instead after last command (happens in like 80% of case). |
I have this problem when using {cmd}, and I also had this problem before trying out version 1.26 (Stan's) |
Try the new conemu. It seems to have fixed everything for me at least. |
@variab1e Which version? I am using the latest stable version. I am also having this problem when using my git bash task with the 1.4.1.1 build as well. |
There is no "latest stable" version at all, so you can't have it. |
@Maximus5 you are right. So I tried using the most recent alpha version with cmder 1.1.4.1 and 1.26. Right now on 1.1.4.1 Cmder works just fine. However when I open Git Bash (Git 2.5 something) as one of my tasks, I still have the same problem. Should I use the latest 'preview' version instead? |
@variab1e Can you confirm what was fixed for yourself? Are you seeing the correct colours within vim now? I've tried with the latest ConEmu 'alpha' build and still have the same issue. |
The appear to be right. As well as --help properly printing and not destroying previous output. I'm on git version 2.5.2.windows.2 Also though I upgraded vim independently as well if I remember right: ConEmu 151006 I did a few other things too, but I don't think that would have changed anything past base. I can make a full dump of everything if you think it'd help. |
@variab1e Do you have everything as a portable Cmder install? It'd be awesome if you could post a version somewhere so I can test with my own vim configuration. If not, I am happy to wait until Cmder updates to new releases of the relevant tools! 👍 |
@rmorrin We're working on it, watch this space. |
So are we simply waiting for a Git update to fix this VIM issues, or is there something can be changed in Cmder/Conemu? |
@DanielGGordon See @Maximus5's comment: #628 (comment) |
@rmorrin sorry for the delay, yep I am uploading my directory right now good idea anyways, because it took me about 2 weeks of tinkering to get it working the way I wanted it. I re-wrote a bunch of the scripts around powershell and cmd.exe as well as ssh-agent. Plus you'll probably find a bunch of ridiculous comments and backup files in there, sorry! It wasn't cleaned for public consumption. But if it helps it was worth it. |
@variab1e Unfortunately I was still seeing the same problem with your modified Cmder install. However, I have noticed that replacing the vim executable in |
What issues exactly? |
@rmorrin I would definitely recommend trying the updated repo I have, I've done 10-11 revisions since then. I believe I have that fixed pat. |
@Maximus5 I only tested briefly, but noticed the following:
@variab1e Thanks, I'll be sure to try it out! |
@rmorrin As for cursor, show the StatusBar which cmder hides. (yeah, it takes so many space and user do not need to know what happens with their terminal, grrr). |
@rmorrin Yes, I believe I have definitely fixed everything you are talking about. It is nothing with conemu - but rather settings and the associated suite of surrounding software. |
Upgrading the installed msysGit (1.9.5) to the newer Git for Windows (2.5.1) introduces a number of compatibility issues when the included Vim is used within Cmder.
Before (msysGit 1.9.5):
After (Git for Windows 2.5.1):
A couple things I've picked up on so far:
^M
for Windows CRLF line-endings (I couldn't reproduce this consistently, though).I do use a somewhat customised .vimrc (plugins, etc). I've managed to simplify it while still reproducing the issue here: https://gist.github.com/rmorrin/bdd79a716a9079060732
It's worth mentioning this occurs in both Windows cmd, as well as Git's included bash (both in Cmder). When using the Mintty terminal included with Git for Windows everything works as expected. My guess is that there is some difference between the Vim versions included within each Git installation.
The text was updated successfully, but these errors were encountered: