Skip to content
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

VIM scrolling issue in git-bash.exe - terminal size does not seem to be correct #2595

Open
bjeong-tibco opened this issue Oct 25, 2024 · 1 comment

Comments

@bjeong-tibco
Copy link

Versions

ConEmu build: 230724/x64
OS version: Windows 11/x64
Used shell version: git-bash

Problem description

Vim scrolling (arrow keys up and down, Ctrl-F/Ctrl-B, etc...) messes up the screen with VIM status line getting relocated randomly along with the entire content in chaotic manner. One strange thing about it is that once you resize the ConEmu window (while the VIM in session), the issue seem get corrected. But once you exit and reedit the file, the same issue is observed. It almost seems like the initial terminal size (lines and columns) are not correctly deciphered for some reason.

Steps to reproduce

  1. Edit a file with sufficient lines (more than the screen can display) with VIM editor.
  2. Scroll down and up with arrow keys, Ctrl-F, Ctrl-B, got to top, bottom, etc...
  3. Observe the display gets messed up and get worse as you navigate up and down
  4. Resize ConEmu window, then the screen redraws itself, then all up and down navigation seems to work properly.
  5. Exit the editor, and restart the editor with the same file, and the same problem returned until you resize the ConEmnu window again.

I tried "run buffer height" on and off, which does not have any effects. All other settings remain as installed.

@bjeong-tibco
Copy link
Author

bjeong-tibco commented Oct 25, 2024

image
A sample screenshot. Relative line numbers are used, but I turned it off which did not help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant