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

constant flickering when entering normal mode commands #1365

Open
1 of 7 tasks
fs111 opened this issue Feb 10, 2023 · 8 comments
Open
1 of 7 tasks

constant flickering when entering normal mode commands #1365

fs111 opened this issue Feb 10, 2023 · 8 comments

Comments

@fs111
Copy link

fs111 commented Feb 10, 2023

Steps to reproduce

Whenever I do any normal mode command in the terminal the screen is flickering while it is being redrawn. This only started happening after the latest upgrade.

Attached is a scaled down gif that shows the behavior.

Screen Recording 2023-02-10 at 13 37 31

Expected behaviour

no flickering at all

Version of Vim and architecture

VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Feb 7 2023 12:17:42) macOS version - x86_64 Included patches: 1-1276 Compiled by GitHub Actions Huge version with MacVim GUI. Features included (+) or not (-):

Environment

macOS Monterey, X86_64 (Intel)
Terminal: iterm2 Build 3.4.19
xterm-256color
GNU bash, version 5.2.9(1)-release (x86_64-apple-darwin21.3.0)

How MacVim was installed

official installer

Logs and stack traces

No response

Vim configuration where issue is reproducable

https://github.com/fs111/dotvim/blob/master/vimrc

Issue has been tested with given configuration

  • by running MacVim.app from GUI macOS interface
  • by running vim/gvim/etc installed by MacVim
  • by running other versions of vim (e.g. /usr/bin/vim)

Issue has been tested with no configuration

  • by running mvim --clean (or gvim, supplied by MacVim distribution)
  • by running vim --clean (in terminal, supplied by MacVim distribution)
  • by running vim --clean (in terminal, other suppliers, e.g. /usr/bin/vim)

Other conditions

  • The both Homebrew packages "vim" and "macvim" are installed
@fs111
Copy link
Author

fs111 commented Feb 10, 2023

meh, I did build of upstream vim and the problem is there too. The problem must have started in between the current and latest upstream patches. Fun..

@ychin
Copy link
Member

ychin commented Feb 10, 2023

Hmm, I'm not quite seeing the flickering. I only tested on Apple Terminal and iTerm 3.5.0beta9 instead of iTerm 3.4.19 but I don't imagine the minor version difference matters.

I didn't test your vimrc fully because I didn't want to install all the plugins. I think it could be useful (you would get the same feedbacks as well if you file an issue at upstream Vim itself which you probably should do if you confirmed that this is an upstream issue) if you can isolate which command / plugin causes the flickering, since most people won't want to do the binary search themselves. (It would at least be useful to confirm that it's a plugin, because I don't think the flickering happens without the installed plugins)

@ychin
Copy link
Member

ychin commented Feb 22, 2023

Any update on this @fs111 ? I'm still not seeing this flickering so I'm wondering if you are still seeing this.

@fs111
Copy link
Author

fs111 commented Feb 22, 2023

@ychin ah, sorry no. Life got in the way. I will try to find some time to get to the bottom of it in the coming days

@fs111
Copy link
Author

fs111 commented Feb 23, 2023

@ychin Looks like it is the combination of the latest vim and https://github.com/gelguy/wilder.nvim I tried it with neovim and that works fine. I will check with the plugin author if something can be done at their end.

@ychin
Copy link
Member

ychin commented Feb 24, 2023

This may not be what you want to hear but I tried out wilder with a replicated setup similar to your vimrc and didn't quite see the flickering, in GUI, Apple Terminal, and iTerm. I'm using macOS Ventura though. But yeah maybe you may want to see if others have the same issue as you. I wonder if it's some interaction with some other plugins or some Vim features etc.

@ychin
Copy link
Member

ychin commented Feb 25, 2023

Hi @fs111 sorry I lied! I managed to repro it. I think I just didn't set it up properly. I did a quick Git bisect and found the issue was Vim v9.0.0993 (89469d157). I haven't taken a close look yet but seems like something changed in that commit where Vim tends to prefer to do full redraws which is why the screen flickers.

May want to follow up with either Vim or the plugin to see if there is a way to resole this.

@fs111
Copy link
Author

fs111 commented Feb 25, 2023

Thank you @ychin for spending the time. I will open an issue with the wilder project and see what they have to say.

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

2 participants