When running vim on Windows from Powershell through ConEmu and using Ctrld and Ctrlu to scroll in vim the screen only draws part of the file.


enter image description here

After pressing Ctrld:

enter image description here

After pressing Ctrll to force a redraw the screen then renders correctly again:

Is there a fix to cause the screen to always draw everything when using these commands?

EDIT: Setting the 'scroll' option to 9 or less appears to fix the problem as well, but this is not ideal and doesn't solve the root problem.

EDIT2: Setting the 'tsl' option to equal 0 instead of the default 999 gives desired behavior, but I still would like to know why this solved the problem.

  • What version of Vim? Is it up to date?
    – Heptite
    Oct 9 '16 at 23:31
  • @Heptite I have updated to version 8 but I was still experiencing the same issue with 7.4.
    – walwb
    Oct 11 '16 at 14:48
  • same here and set tsl option solved it
    – Vince
    Oct 24 '16 at 11:52

Check the value of the TERM environment variable, Vim's terminal behaviour is set by this.

env | grep TERM

Ensure it is set to cygwin in order for vim to work correctly with ConEmu.

NB This also applies in Bash, where I had a similar redraw errors when TERM was incorrectly set to xterm.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.