Vim does not correctly draw screen when scrolling

6

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.

Normal:

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.

walwb

Posted 2016-10-07T22:27:47.740

Reputation: 61

What version of Vim? Is it up to date? – Heptite – 2016-10-09T23:31:18.070

@Heptite I have updated to version 8 but I was still experiencing the same issue with 7.4. – walwb – 2016-10-11T14:48:35.047

same here and set tsl option solved it – Vince – 2016-10-24T11:52:38.840

Answers

0

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.

79E09796

Posted 2016-10-07T22:27:47.740

Reputation: 255